JP2007080116A - Duplex system - Google Patents

Duplex system Download PDF

Info

Publication number
JP2007080116A
JP2007080116A JP2005269412A JP2005269412A JP2007080116A JP 2007080116 A JP2007080116 A JP 2007080116A JP 2005269412 A JP2005269412 A JP 2005269412A JP 2005269412 A JP2005269412 A JP 2005269412A JP 2007080116 A JP2007080116 A JP 2007080116A
Authority
JP
Japan
Prior art keywords
program
tracking range
tracking
controller
variable
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
JP2005269412A
Other languages
Japanese (ja)
Other versions
JP4347839B2 (en
Inventor
Masahiro Nakamura
正博 中村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005269412A priority Critical patent/JP4347839B2/en
Publication of JP2007080116A publication Critical patent/JP2007080116A/en
Application granted granted Critical
Publication of JP4347839B2 publication Critical patent/JP4347839B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Hardware Redundancy (AREA)
  • Devices For Executing Special Programs (AREA)
  • Safety Devices In Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a duplex system which remarkably decreases the number of times of transferring, from an engineering tool to a controller, tracking information of whether to perform tracking for each variable set by the engineering tool. <P>SOLUTION: An engineering tool 11 which creates a program to be run by an active system controller 12 and a reserve system controller 13, includes: a program editor 16 for creating a program; a variable editor 17 for defining a variable to be used for the program; a tracking range setting function 18 for setting a tracking range of tracking from the active system controller 12 to the reserver system controller 13; a data memory management table for storing the set tracking range and data memory vacant information; and a compiler 19 which refers to the data memory management table to allocate a memory within the tracking range to the variable defined by the variable editor 17. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、プラント機器を制御するコントローラを二重化した二重化システムに関するものである。   The present invention relates to a duplex system in which controllers for controlling plant equipment are duplexed.

従来の二重化コントローラは、制御系から待機系へどのメモリをトラッキングするかの指定方法として、例えば、特許文献1では、変数単位に「トラッキングする、しない」の設定をコントローラのデータメモリに持つようにし、必要なエリアだけをトラッキングすることで、性能を上げる方法を提案している。
また、特許文献2では、エンジニアリングツールで、トラッキングする・しないの属性が指定されていないユーザプログラムを解析し、トラッキングが必要な変数にはトラッキングする属性を自動的に与え、それ以外の変数にはトラッキングしない属性を与えるようにし、ユーザプログラムでのユーザによるトラッキング指定を不要にする方法の記載がある。
これらによれば、指定された変数のメモリをトラッキングすることで、高速なトラッキングが可能となる。
As a method for specifying which memory is to be tracked from the control system to the standby system, the conventional duplex controller, for example, in Patent Document 1, has a setting of “tracking is not performed” for each variable unit in the data memory of the controller. It proposes a method to improve performance by tracking only the necessary area.
Further, in Patent Document 2, an engineering tool analyzes a user program in which an attribute to be tracked / not tracked is not specified, and automatically assigns a tracking attribute to a variable that requires tracking. There is a description of a method of giving an attribute not to be tracked and making the tracking specification by the user unnecessary in the user program.
According to these, high-speed tracking becomes possible by tracking the memory of the designated variable.

特開2003−131899号公報(第3〜7頁、図2)JP2003-131899 (pages 3-7, FIG. 2) 特開2002−268714号公報(第3〜4頁、図5)JP 2002-268714 A (3rd to 4th pages, FIG. 5)

特許文献1、2に示される従来の二重化コントローラは、以上のように構成されているので、以下のような問題点がある。
特許文献1の「トラッキングする・しない」の設定は、安全のためにコントローラを一旦ストップしてエンジニアリングツールから転送する必要がある。「トラッキングする・しない」の設定を、コントローラを動作させたまま変更すると、「トラッキングする・しない」の設定書換え中に通信路の障害で書換えエラーが発生した場合など、一部の変数だけが「トラッキングする」の指定になり、トラッキングされるべき変数が「トラッキングしない」の指定となった不整合な状態でプログラムが動作する可能性があり、この状態で制御系・待機系コントローラの切り替えが発生すると、ユーザが予期しない危険なメモリの状態で待機系が動作開始する可能性があるからである。
また、特許文献2では、ユーザプログラムの変数への「トラッキングする・しない」の設定が、エンジニアリングツールで自動的に行われ、ユーザプログラムをコンパイルするとき、トラッキングデータが生成されるため、ユーザはプログラムを書き換えてコントローラに転送する度に、トラッキングデータが転送されることになる。このため、トラッキングデータの転送時には、上述のように、コントローラをストップする必要があり、制御用のコントローラとしては使用できない。
これは、制御用コントローラは、制御系をストップせずにプログラムを書き換えることができる必要があるためである。因みに、エンジニアリングツールからコントローラへのプログラムだけの転送では、転送が失敗したときは、コントローラは古いプログラムで動作できるので、転送時にコントローラをストップする必要がない。
特許文献1、2は、このように変数の「トラッキングする・しない」の設定を変更するつど、コントローラをストップしてエンジニアリングツールからコントローラへ転送する必要があった。
Since the conventional duplex controllers shown in Patent Documents 1 and 2 are configured as described above, they have the following problems.
The setting of “tracking / not tracking” in Patent Document 1 requires that the controller be temporarily stopped and transferred from the engineering tool for safety. If you change the setting of “Do not track” while the controller is operating, only a part of the variables will be changed, such as when a rewrite error occurs due to a communication path failure while the setting of “Do not track” is changed. The program may operate in an inconsistent state in which the variable to be tracked is designated as “Do Not Track” and the control system / standby controller is switched in this state. This is because the standby system may start to operate in a dangerous memory state that is not anticipated by the user.
Further, in Patent Document 2, the setting of “tracking / not” to the variable of the user program is automatically performed by the engineering tool, and tracking data is generated when the user program is compiled. Tracking data is transferred each time the data is rewritten and transferred to the controller. For this reason, at the time of tracking data transfer, it is necessary to stop the controller as described above, and it cannot be used as a controller for control.
This is because the control controller needs to be able to rewrite the program without stopping the control system. Incidentally, in the case of transferring only the program from the engineering tool to the controller, if the transfer fails, the controller can operate with the old program, so there is no need to stop the controller during the transfer.
In Patent Documents 1 and 2, it is necessary to stop the controller and transfer the data from the engineering tool to the controller every time the setting of the variable “tracking / not tracking” is changed.

この発明は、上記のような課題を解決するためになされたものであり、エンジニアリングツールで設定される変数毎のトラッキングするかしないかのトラッキング情報を、エンジニアリングツールからコントローラに転送する回数を大幅に減少し、コントローラを停止する回数を減少することができる二重化システムを得ることを目的にしている。   The present invention has been made to solve the above-described problems, and greatly increases the number of times that tracking information on whether to track each variable set in the engineering tool is transferred from the engineering tool to the controller. The purpose is to obtain a duplex system which can be reduced and the number of times of stopping the controller can be reduced.

この発明に係わる二重化システムにおいては、プログラムを実行することによりプラント機器を制御する制御系コントローラとこの制御系コントローラが故障したとき制御系コントローラの動作を継続してプラント機器を制御する待機系コントローラとの二つのコントローラにより構成され、コントローラは、実行するプログラムで参照される変数の値を格納するデータメモリと、制御系コントローラのデータメモリのデータを待機系コントローラのデータメモリにコピーするトラッキング手段を有する二重化システムにおいて、
コントローラで実行されるプログラムを作成するとともにデータメモリのトラッキングするデータの範囲を設定するエンジニアリングツールを備え、
エンジニアリングツールは、ユーザがプログラムを作成するプログラムエディタと、ユーザがトラッキング対象の変数を定義する変数エディタと、制御系コントローラから待機系コントローラへトラッキングするデータメモリ上のデータの範囲であるトラッキング範囲をユーザが設定するトラッキング範囲設定手段と、このトラッキング範囲設定手段により設定されたトラッキング範囲及びデータメモリの空き情報を格納するデータメモリ管理テーブルと、データメモリ管理テーブルを参照して変数エディタにより定義された変数にトラッキング範囲にあるメモリを割付けるようにプログラムエディタによって作成されたプログラムをコンパイルするコンパイラと、このコンパイラによってコンパイルされたプログラム及びトラッキング範囲設定手段により設定されたトラッキング範囲設定をコントローラに転送する転送手段とを有するものである。
In the duplex system according to the present invention, a control system controller for controlling the plant equipment by executing a program, and a standby system controller for controlling the plant equipment by continuing the operation of the control system controller when the control system controller fails. The controller has a data memory for storing the value of a variable referred to in the program to be executed, and a tracking means for copying the data in the data memory of the control system controller to the data memory of the standby system controller. In a duplex system,
An engineering tool that creates a program to be executed by the controller and sets the range of data to be tracked in the data memory is provided.
The engineering tool includes a program editor for creating a program by the user, a variable editor for defining a variable to be tracked by the user, and a tracking range that is a range of data in the data memory tracked from the control system controller to the standby system controller. Tracking range setting means set by the tracking range, a data memory management table storing the tracking range set by the tracking range setting means and data memory free information, and a variable defined by the variable editor with reference to the data memory management table A compiler that compiles a program created by the program editor to allocate memory in the tracking range, and a program compiled by this compiler and the tracking range And it has a transfer means for transferring the tracking range setting set by the constant means to the controller.

この発明は、以上説明したように、プログラムを実行することによりプラント機器を制御する制御系コントローラとこの制御系コントローラが故障したとき制御系コントローラの動作を継続してプラント機器を制御する待機系コントローラとの二つのコントローラにより構成され、コントローラは、実行するプログラムで参照される変数の値を格納するデータメモリと、制御系コントローラのデータメモリのデータを待機系コントローラのデータメモリにコピーするトラッキング手段を有する二重化システムにおいて、
コントローラで実行されるプログラムを作成するとともにデータメモリのトラッキングするデータの範囲を設定するエンジニアリングツールを備え、
エンジニアリングツールは、ユーザがプログラムを作成するプログラムエディタと、ユーザがトラッキング対象の変数を定義する変数エディタと、制御系コントローラから待機系コントローラへトラッキングするデータメモリ上のデータの範囲であるトラッキング範囲をユーザが設定するトラッキング範囲設定手段と、このトラッキング範囲設定手段により設定されたトラッキング範囲及びデータメモリの空き情報を格納するデータメモリ管理テーブルと、データメモリ管理テーブルを参照して変数エディタにより定義された変数にトラッキング範囲にあるメモリを割付けるようにプログラムエディタによって作成されたプログラムをコンパイルするコンパイラと、このコンパイラによってコンパイルされたプログラム及びトラッキング範囲設定手段により設定されたトラッキング範囲設定をコントローラに転送する転送手段とを有するので、ユーザにて必要最低限なメモリをトラッキングするようにトラッキング範囲を設定でき、この設定したトラッキング範囲設定をエンジニアリングツールからコントローラへ転送するだけで、トラッキングに要する時間を短くすることができるとともに、コントローラをストップすることなく、作成したプログラムをエンジニアリングツールからコントローラに転送することができる。
As described above, the present invention provides a control system controller that controls a plant device by executing a program, and a standby system controller that controls the plant device by continuing the operation of the control system controller when the control system controller fails. The controller includes a data memory for storing values of variables referred to in the program to be executed, and tracking means for copying data in the data memory of the control system controller to the data memory of the standby system controller. In a duplex system having
An engineering tool that creates a program to be executed by the controller and sets the range of data to be tracked in the data memory is provided.
The engineering tool consists of a program editor for creating a program by the user, a variable editor for defining the variable to be tracked by the user, and a tracking range that is the range of data in the data memory tracked from the control system controller to the standby system controller. Tracking range setting means set by the tracking range, a data memory management table storing the tracking range set by the tracking range setting means and data memory free information, and a variable defined by the variable editor with reference to the data memory management table A compiler that compiles a program created by the program editor to allocate memory in the tracking range, and a program compiled by this compiler and the tracking range Since there is a transfer means for transferring the tracking range setting set by the setting means to the controller, the tracking range can be set by the user to track the minimum necessary memory, and this set tracking range setting can be set from the engineering tool. By simply transferring to the controller, the time required for tracking can be shortened, and the created program can be transferred from the engineering tool to the controller without stopping the controller.

実施の形態1.
以下、この発明の実施の形態1を図1と図2に基づいて説明する。
図1は、この発明の実施の形態1による二重化システムを示すシステム構成図である。
図1において、エンジニアリングツール11は、ユーザが制御用プログラムを作成するのに用いられる。コントローラ12、13は、制御用プログラムを実行してプラント機器を制御する。コントローラは、通常動作する制御系コントローラ12と、通常は止まっているが、制御系コントローラ12が故障などでダウンしたときに、瞬時に動作を開始する待機系コントローラ13から構成される。制御系コントローラ12と待機系コントローラ13は同じ構成であり、まとめてコントローラ12、13ということもある。
待機系コントローラ13は、制御系コントローラ12の状態を引き継いで動作を開始する必要がある。すなわち、待機系コントローラ13のデータメモリ1Bの値は、制御系コントローラ12のデータメモリ1Bと一致した状態から運転を開始する必要がある。待機系コントローラ13のデータメモリ1Bに、制御系コントローラ12のデータメモリ1Bの内容を一致させることをトラッキングという。
なお、一部のデータは、運転開始後、プログラムの演算結果から出力される。このデータについては、運転開始時に制御系と待機系で一致している必要は無い。つまり、一致する必要のあるデータと、そうでないデータがある。
Embodiment 1 FIG.
A first embodiment of the present invention will be described below with reference to FIGS.
1 is a system configuration diagram showing a duplex system according to Embodiment 1 of the present invention.
In FIG. 1, an engineering tool 11 is used by a user to create a control program. The controllers 12 and 13 execute the control program and control the plant equipment. The controller includes a control system controller 12 that normally operates, and a standby system controller 13 that normally stops but starts operation instantaneously when the control system controller 12 is down due to a failure or the like. The control system controller 12 and the standby system controller 13 have the same configuration, and may be collectively referred to as controllers 12 and 13.
The standby system controller 13 needs to start operation by taking over the state of the control system controller 12. That is, it is necessary to start the operation from a state in which the value of the data memory 1B of the standby controller 13 coincides with the data memory 1B of the control controller 12. Matching the contents of the data memory 1B of the control system controller 12 with the data memory 1B of the standby system controller 13 is called tracking.
A part of the data is output from the calculation result of the program after the operation is started. About this data, it is not necessary for the control system and the standby system to coincide at the start of operation. That is, there is data that needs to match and data that does not.

コントローラ12、13は、ユーザがエンジニアリングツール11で作成したプログラムを格納するプログラムメモリ1Cと、プログラムが参照する変数の値を格納するデータメモリ1Bと、エンジニアリングツール11で設定されたトラッキング範囲を記憶するトラッキング範囲1Dと、制御系コントローラ12のデータメモリ1Bの値を、待機系コントローラ13のデータメモリ1Bにトラッキングするトラッキング機能1F(トラッキング手段)から構成される。このトラッキング機能1Fは、ユーザがエンジニアリングツール11で設定するトラッキング範囲1Dのデータメモリ1Bのデータを、制御系コントローラ12から待機系コントローラ13に、トラッキングケーブル15経由でコピーする。
このトラッキング中は制御系コントローラ12でプログラムを実行できないので、高速周期で実行する必要のある制御用プログラムの場合は、できるだけトラッキング時間が短いことが望ましい。
The controllers 12 and 13 store a program memory 1C for storing a program created by the user with the engineering tool 11, a data memory 1B for storing a variable value referred to by the program, and a tracking range set by the engineering tool 11. The tracking function 1F (tracking means) that tracks the tracking range 1D and the value of the data memory 1B of the control system controller 12 to the data memory 1B of the standby system controller 13 is configured. The tracking function 1F copies the data in the data memory 1B in the tracking range 1D set by the user with the engineering tool 11 from the control system controller 12 to the standby system controller 13 via the tracking cable 15.
Since the control system controller 12 cannot execute the program during this tracking, it is desirable that the tracking time be as short as possible in the case of a control program that needs to be executed at a high speed.

エンジニアリングツール11は、コントローラ12、13に、メンテナンスLAN14を介して接続されている。
このエンジニアリングツール11は、ユーザがプラント制御用のプログラム(プログラム言語で記述したソースコード)を作成するプログラムエディタ16と、ユーザがトラッキング対象の変数を定義する変数エディタ17と、ソースコードを機械語コード(プログラムオブジェクト)に変換するとともに、変数にメモリを割付けるようなコンパイルを行うコンパイラ19と、制御系コントローラ12から待機系コントローラ13にデータメモリ1Bのトラッキングする範囲を設定するトラッキング範囲設定機能18(トラッキング範囲設定手段)と、コンパイル結果のプログラムオブジェクトと、設定されたトラッキング範囲設定をメンテナンスLAN14を介してコントローラ12、13に転送する転送機能1A(転送手段)とを有している。
The engineering tool 11 is connected to the controllers 12 and 13 via the maintenance LAN 14.
The engineering tool 11 includes a program editor 16 in which a user creates a plant control program (source code written in a program language), a variable editor 17 in which a user defines a variable to be tracked, and a source code as a machine language code. A compiler 19 that compiles the program to assign a memory to a variable, and a tracking range setting function 18 that sets a tracking range of the data memory 1B from the control system controller 12 to the standby system controller 13 ( Tracking range setting means), a program object as a compilation result, and a transfer function 1A (transfer means) for transferring the set tracking range setting to the controllers 12 and 13 via the maintenance LAN 14. That.

図2は、この発明の実施の形態1による二重化システムのエンジニアリングツールの詳細を示す構成図である。
図2において、16〜19は図1におけるものと同一のものである。図2では、図1の構成に加えて、エンジニアリングツールのさらに詳細な構成を示している。図1に加えて、コンパイラ19が変数にデータメモリのメモリを割付けるときに、データメモリのどこが空いているかの情報を格納するデータメモリ管理テーブル21と、コンパイラ19から要求され、変数に割当てるメモリがトラッキング範囲内にあるかどうかをチェックして返すトラッキング範囲チェック機能22と、トラッキングが不要な変数として、トラッキングされないメモリが割付けられている演算用テンポラリ変数23とを有している。
FIG. 2 is a block diagram showing details of the engineering tool of the duplex system according to Embodiment 1 of the present invention.
In FIG. 2, 16 to 19 are the same as those in FIG. FIG. 2 shows a more detailed configuration of the engineering tool in addition to the configuration of FIG. In addition to FIG. 1, when the compiler 19 allocates a memory of a data memory to a variable, a data memory management table 21 that stores information on where the data memory is free, and a memory requested from the compiler 19 and allocated to the variable Has a tracking range check function 22 that checks whether or not is within the tracking range, and an operation temporary variable 23 to which an untracked memory is allocated as a variable that does not require tracking.

次に、図2を用いてエンジニアリングツール11の基本動作について説明する。
ユーザは、変数エディタ17を用いて、トラッキング対象の変数を定義する。次に、プログラムエディタ16を用いて、プログラム(ソースコード)を作成する。ここで作成されるプログラムは、図2のように、ファンクションブロック形式のプログラム図を採用している。箱はファンクションブロックと呼ばれる命令である。なお、ラダーやテキスト形式のプログラム図でも本方式を採用できる。
プログラムを作成するときは、変数エディタ17で定義した変数を用いてプログラムを作成する。図2では、例示のように、PUMP_ON変数の値を入力として、TON命令(入力オンすると、指定された時間が経過した後に出力をオンする命令)を実行し、結果をVALVE_ON変数に格納し、次にVALVE_ON変数を入力として、TON命令を実行し、MOTOR_ON変数に値を格納している。このとき、ユーザには見えないが、TON命令を実行するために、演算用テンポラリ変数23が使用される。
図3は、この発明の実施の形態1による二重化システムのエンジニアリングツールのトラッキング範囲設定及び転送動作を示すフローチャートである。
Next, the basic operation of the engineering tool 11 will be described with reference to FIG.
The user uses the variable editor 17 to define a variable to be tracked. Next, a program (source code) is created using the program editor 16. The program created here employs a function block format program diagram as shown in FIG. A box is an instruction called a function block. Note that this method can also be used for ladder and text program diagrams.
When creating a program, the program is created using the variables defined in the variable editor 17. In FIG. 2, as illustrated, the value of the PUMP_ON variable is input, and a TON instruction (an instruction to turn on the output after a specified time elapses when the input is turned on) is executed, and the result is stored in the VALVE_ON variable. Next, with the VALVE_ON variable as an input, the TON instruction is executed, and the value is stored in the MOTOR_ON variable. At this time, although not visible to the user, the operation temporary variable 23 is used to execute the TON instruction.
FIG. 3 is a flowchart showing tracking range setting and transfer operations of the engineering tool of the duplex system according to the first embodiment of the present invention.

次に、図3のフローチャートを用いてエンジニアリングツールの動作についてさらに詳しく説明する。
ST31で、ユーザは、トラッキング範囲設定機能18により、必要最低限の範囲のメモリをトラッキングするように設定する。図2では、先頭メモリ番地0から100番地分のサイズをトラッキングするように設定している。これによって、最低限のサイズをトラッキングすることになるので、高速なトラッキングが可能となる。この値は、ユーザで調整することになるが、コントローラをストップできる出荷前の試験中は、小さめにとっておいて、コントローラをストップするのが困難になる工場での運用開始前に、実際の変数の使用量を見て、以降のプログラムの変更で変数を追加しても問題にならないように調整すればよい。このため、この調整作業がユーザの負担になることはない。
Next, the operation of the engineering tool will be described in more detail using the flowchart of FIG.
In ST31, the user sets the tracking range setting function 18 so as to track the minimum necessary range of memory. In FIG. 2, it is set to track the size of the first memory addresses 0 to 100. As a result, since the minimum size is tracked, high-speed tracking is possible. This value will be adjusted by the user, but during the pre-shipment test where the controller can be stopped, it should be kept small so that the actual variable Look at the usage and adjust it so that it doesn't matter if you add variables in subsequent program changes. For this reason, this adjustment work does not burden the user.

ST32で、作成したプログラム(ソースコード)を機械語コードにコンパイルすると、コンパイラ19は、データメモリ管理テーブル21を参照して、空きメモリから各変数に対してメモリを割付ける。割付けたメモリは、データメモリ管理テーブル21上で使用済みとする。
このとき、変数エディタ17で定義された変数に対しては、トラッキング範囲設定機能18で定義された範囲から割付け、それ以外の演算用テンポラリ変数23に対しては、ST42により、トラッキングメモリ範囲外から割付けを行う。
すなわち、ST33で、コンパイラは、変数エディタ17で定義された変数に、トラッキングされるメモリからメモリを割付ける場合かどうかチェックし、トラッキングされるメモリからメモリを割付ける場合は、ST34で、トラッキング範囲チェック機能22を使用して、割付けるメモリが範囲内に収まっているかどうかをチェックする。ST35で、範囲外の場合は、ST36で、コンパイルエラーとし、ユーザにトラッキング範囲設定を変更するようにメッセージを表示する。これによって、トラッキングされなければならない変数が、トラッキング範囲外のメモリを割付けられて、不正な状態で実行されることを防止できる。
When the created program (source code) is compiled into machine language code in ST32, the compiler 19 refers to the data memory management table 21 and allocates memory to each variable from the free memory. The allocated memory is assumed to be used on the data memory management table 21.
At this time, the variables defined in the variable editor 17 are allocated from the range defined by the tracking range setting function 18, and the other temporary variables 23 for computation are allocated from outside the tracking memory range by ST42. Perform the assignment.
That is, in ST33, the compiler checks whether or not to allocate memory from the tracked memory to the variable defined in the variable editor 17. If the memory is allocated from the tracked memory, the tracking range is determined in ST34. A check function 22 is used to check whether the memory to be allocated is within the range. If it is outside the range in ST35, a compilation error is determined in ST36, and a message is displayed to the user to change the tracking range setting. As a result, it is possible to prevent a variable that must be tracked from being allocated in a memory outside the tracking range and executed in an illegal state.

ユーザは、ST37で、コンパイルが正常終了すると、図1の転送機能1Aを使用して、プログラムとトラッキング範囲設定を、制御系コントローラ12と待機系コントローラ13とに転送する。ST38で、トラッキング範囲設定を転送するかどうかをユーザが判断し、トラッキング範囲設定を転送する場合は、ST39で、コントローラをストップしてから、ST310で転送する。
但し、トラッキング範囲は、トラッキング範囲設定機能18にて変更していた場合のみ転送すれば良い。従って、プログラムのみ転送する場合は、ST311でコントローラをストップすることなく、変更したプログラムのみを転送することができる。
なお、変数エディタ17により定義される変数を追加または削除しても、それがトラッキング範囲内のメモリへの割付または削除に対応するものであれば、トラッキング範囲を変更する必要がなく、したがって、トラッキング範囲設定をコントローラをストップして転送する必要もない。
When the compilation ends normally in ST37, the user transfers the program and the tracking range setting to the control system controller 12 and the standby system controller 13 using the transfer function 1A of FIG. In ST38, the user determines whether or not to transfer the tracking range setting. When the tracking range setting is transferred, the controller is stopped in ST39 and then transferred in ST310.
However, the tracking range may be transferred only when it is changed by the tracking range setting function 18. Therefore, when transferring only the program, only the changed program can be transferred without stopping the controller in ST311.
Note that even if a variable defined by the variable editor 17 is added or deleted, the tracking range does not need to be changed as long as it corresponds to the allocation or deletion of the memory within the tracking range. There is no need to transfer the range setting by stopping the controller.

実施の形態1によれば、トラッキングの範囲をユーザで設定可能なトラッキング範囲設定機能をエンジニアリングツールに備えるので、ユーザにて必要最低限なメモリをトラッキングするように設定できる。
また、コンパイル時、トラッキングが必要な変数にはトラッキング範囲の空きメモリからメモリを割付け、演算結果を一時的に格納するようなトラッキング不要な変数にはトラッキング範囲外のメモリを割付けるコンパイラを備えるので、ユーザでどの変数をトラッキングするかをプログラムで設定する必要が無い。
さらに、コンパイル時に、トラッキング範囲のメモリを変数に割付けるときに、トラッキング範囲内に収まったかどうかをチェックするトラッキング範囲チェック機能を備えるので、トラッキングされるべき変数がトラッキング範囲外のメモリを割付けられた不正な状態で、転送されることが防止される。
これらの機構により、通常はコントローラを止めることなくプログラムを転送できる。ユーザがトラッキングする範囲を変更した場合は、コントローラを止めて転送する必要があるが、プラントで運用が開始されたあとは、トラッキングの範囲を変更するようなケースは殆ど無いので、問題にはならない。
According to the first embodiment, the engineering tool is provided with a tracking range setting function capable of setting the tracking range by the user, so that the user can be set to track the minimum necessary memory.
Also, when compiling, there is a compiler that allocates memory from free memory in the tracking range for variables that require tracking, and allocates memory outside the tracking range for variables that do not require tracking, such as temporarily storing calculation results. There is no need to programmatically set which variables are tracked by the user.
In addition, at the time of compile, when allocating the memory of the tracking range to the variable, it has a tracking range check function that checks whether it is within the tracking range, so the variable to be tracked was allocated memory outside the tracking range It is prevented from being transferred in an illegal state.
With these mechanisms, programs can be transferred normally without stopping the controller. If the user changes the tracking range, it is necessary to stop the controller and transfer it. However, there is almost no case of changing the tracking range after the operation is started in the plant, so this is not a problem. .

実施の形態2.
以下、この発明の実施の形態2を図4に基づいて説明する。
図4は、この発明の実施の形態2による二重化システムを示すシステム構成図である。
図4において、1A〜1F、11〜19は図1におけるものと同一のものである。図4では、エンジニアリングツール11と同じ構成の他のエンジニアリングツール52がメンテナンスLAN14に接続され、各エンジニアリングツール11、52には、コントローラ12、13のトラッキング範囲1Dと、プログラムを転送するエンジニアリングツールのトラッキング範囲をチェックするコントローラパラメータチェック機能51(コントローラパラメータチェック手段)が設けられている。
Embodiment 2. FIG.
The second embodiment of the present invention will be described below with reference to FIG.
FIG. 4 is a system configuration diagram showing a duplex system according to Embodiment 2 of the present invention.
In FIG. 4, 1A to 1F and 11 to 19 are the same as those in FIG. In FIG. 4, another engineering tool 52 having the same configuration as the engineering tool 11 is connected to the maintenance LAN 14, and the tracking range 1D of the controllers 12 and 13 and the tracking of the engineering tool that transfers the program are connected to each engineering tool 11 and 52. A controller parameter check function 51 (controller parameter check means) for checking the range is provided.

実施の形態1では、エンジニアリングツール11が1台の場合について説明したが、実施の形態2は、エンジニアリングツール11と同じ構成の他のエンジニアリングツール52がメンテナンスLAN14に接続され、複数のユーザによってプログラムが作成される構成である。
複数のユーザによってプログラムが作成される場合には、他のエンジニアリングツール52で、エンジニアリングツール11で設定された範囲と異なるトラッキング範囲を設定され、コントローラ12、13に転送される可能性がある。
この後、エンジニアリングツール11でプログラムを変更してコンパイルし、コントローラ12、13に転送するとき、プログラムで使用する変数は、エンジニアリングツール11上のトラッキング範囲内には収まっているが、コントローラ12、13側の、他のエンジニアリングツール52で転送されたトラッキング範囲1Dには収まっていない可能性がある。
これを防止するために、エンジニアリングツール11、52にコントローラパラメータチェック機能51を設け、プログラムの転送前に、コントローラ12、13のトラッキング範囲1Dと、エンジニアリングツールのトラッキング範囲設定をチェックするようにし、このチェック結果、コントローラ12、13のトラッキング範囲1Dが小さい場合は、プログラムを転送しないようにする。
なお、コントローラ12、13のトラッキング範囲1Dが、プログラムを転送しょうとするエンジニアリングツールのトラッキング範囲と同じかまたは大きい場合は、プログラムを転送しても何ら問題はない。
In the first embodiment, the case where there is one engineering tool 11 has been described. However, in the second embodiment, another engineering tool 52 having the same configuration as that of the engineering tool 11 is connected to the maintenance LAN 14, and a program is executed by a plurality of users. This is the configuration that will be created.
When a program is created by a plurality of users, a tracking range different from the range set by the engineering tool 11 may be set by another engineering tool 52 and transferred to the controllers 12 and 13.
After that, when the program is changed by the engineering tool 11 and compiled, and transferred to the controllers 12 and 13, the variables used in the program are within the tracking range on the engineering tool 11, but the controllers 12, 13 The tracking range 1D transferred by the other engineering tool 52 may not be within the tracking range 1D.
In order to prevent this, the controller parameter check function 51 is provided in the engineering tools 11 and 52, and the tracking range 1D of the controllers 12 and 13 and the tracking range setting of the engineering tool are checked before transferring the program. If the tracking range 1D of the controllers 12 and 13 is small, the program is not transferred.
When the tracking range 1D of the controllers 12 and 13 is the same as or larger than the tracking range of the engineering tool to which the program is to be transferred, there is no problem even if the program is transferred.

実施の形態2によれば、コントローラパラメータチェック機能51を設けたことにより、複数のユーザによりプログラムが作成される場合にも、プログラムとトラッキング範囲設定が不一致の状態でプログラムがコントローラに転送されることを防止できる。   According to the second embodiment, since the controller parameter check function 51 is provided, even when a program is created by a plurality of users, the program is transferred to the controller in a state where the program and the tracking range setting do not match. Can be prevented.

実施の形態3.
以下、この発明の実施の形態3を、図5に基づいて説明する。
図5は、この発明の実施の形態3による二重化システムのエンジニアリングツールの詳細を示す構成図である。
図5において、16〜19、21〜23は図2におけるものと同一のものである。図5では、データメモリ1Bの使用量を表示するメモリ使用量表示機能61(メモリ使用量表示手段)が設けられている。
Embodiment 3 FIG.
The third embodiment of the present invention will be described below with reference to FIG.
FIG. 5 is a block diagram showing details of the engineering tool of the duplex system according to Embodiment 3 of the present invention.
In FIG. 5, reference numerals 16 to 19, 21 to 23 are the same as those in FIG. In FIG. 5, a memory usage display function 61 (memory usage display means) for displaying the usage of the data memory 1B is provided.

実施の形態3は、エンジニアリングツール11に、データメモリ管理テーブル21を参照して、トラッキングされるメモリの使用量と残量、及びトラッキングされないメモリの使用量と残量を表示するメモリ使用量表示機能61を設けたものである。   In the third embodiment, the engineering tool 11 refers to the data memory management table 21 and displays the memory usage and remaining amount to be tracked and the memory usage display function for displaying the memory usage and remaining amount that are not tracked. 61 is provided.

実施の形態3によれば、メモリの使用量と残量が表示されることにより、ユーザは、この情報を参照して、トラッキング範囲を容易に調整することができる。   According to the third embodiment, the usage amount and remaining amount of the memory are displayed, so that the user can easily adjust the tracking range with reference to this information.

実施の形態4.
以下、この発明の実施の形態4を、図6に基づいて説明する。
図6は、この発明の実施の形態4による二重化システムのエンジニアリングツールの詳細を示す構成図である。
図6において、16〜19、21〜23は図2におけるものと同一のものである。図6では、トラッキング範囲が狭められたことを検知し、再コンパイルの必要性を通知するとともにコンパイルが完了するまではコントローラに転送されないようにガードするトラッキング範囲変更通知機能71(トラッキング範囲変更通知手段)を設けている。
Embodiment 4 FIG.
A fourth embodiment of the present invention will be described below with reference to FIG.
FIG. 6 is a block diagram showing details of the engineering tool of the duplex system according to Embodiment 4 of the present invention.
In FIG. 6, 16 to 19, 21 to 23 are the same as those in FIG. In FIG. 6, a tracking range change notification function 71 (tracking range change notification means for detecting that the tracking range is narrowed, notifying the necessity of recompilation and guarding not to be transferred to the controller until the compilation is completed. ).

トラッキング範囲設定機能18にて、トラッキング範囲を狭められたとき、トラッキングされるメモリの内のすでに変数に割当てられたメモリ位置が、トラッキングされないメモリに変更されてしまう可能性がある。
もし、トラッキングされるメモリの内のすでに変数に割当てられたメモリ位置が、トラッキングされないメモリに変更されてしまった場合、これに気付かずにトラッキング範囲設定がコントローラに転送されると、トラッキングされるべき変数がトラッキングされないまま、コントローラが動作することになる。
実施の形態4は、これを防止するために、トラッキング範囲設定機能18でトラッキング範囲が狭められたとき、トラッキング範囲変更通知機能71は、これを検知し、ユーザにプログラムの再度のコンパイル(コンパイラ19による変数へのトラッキング範囲内のメモリの割付)が必要であることを通知するとともに、転送機能1Aに、コンパイルが完了するまでは、プログラムとトラッキング範囲がコントローラに転送されないようにガードする情報を通知する。再コンパイルすれば、トラッキングされないメモリに割付けられた変数を、トラッキングされるメモリの空きエリアに割付け直すことができる。
When the tracking range is narrowed by the tracking range setting function 18, the memory position already allocated to the variable in the tracked memory may be changed to a memory that is not tracked.
If a memory location already assigned to a variable in the tracked memory has been changed to an untracked memory, it should be tracked if the tracking range setting is transferred to the controller without noticing this. The controller will operate without the variables being tracked.
In the fourth embodiment, in order to prevent this, when the tracking range is narrowed by the tracking range setting function 18, the tracking range change notification function 71 detects this, and the user recompiles the program (compiler 19). Allocation of the memory within the tracking range to the variable) is required, and the transfer function 1A is notified of the guarding information so that the program and the tracking range are not transferred to the controller until the compilation is completed. To do. If recompiled, variables assigned to untracked memory can be reassigned to free areas of tracked memory.

実施の形態4によれば、トラッキング範囲が狭められたとき、トラッキングされるメモリの内のすでに変数に割当てられたメモリ位置が、トラッキングされないメモリに変更されたときでも、ユーザに、プログラムの再コンパイルが必要であることを通知するとともに、転送機能1Aに、コンパイルが完了するまでは、プログラムとトラッキング範囲がコントローラに転送されないようにガードする情報を通知することができ、トラッキングされるべき変数がトラッキングされないまま、コントローラが動作することを防ぐことができる。   According to the fourth embodiment, when the tracking range is narrowed, the user can recompile the program even when the memory location already assigned to the variable in the tracked memory is changed to the memory that is not tracked. Is required, and the transfer function 1A can be informed of guarding information so that the program and tracking range are not transferred to the controller until the compilation is completed. It is possible to prevent the controller from operating without being performed.

実施の形態5.
以下、この発明の実施の形態5を、図7に基づいて説明する。
図7は、この発明の実施の形態5による二重化システムのエンジニアリングツールの詳細を示す構成図である。
図7において、16〜19、21〜23は図2におけるものと同一のものである。図7では、トラッキング範囲が、ユーザにてトラッキング範囲設定機能18を用いて小さく変更されたとき、この変更を検知するトラッキング範囲変更チェック機能81(トラッキング範囲変更チェック手段)を設けている。
Embodiment 5. FIG.
A fifth embodiment of the present invention will be described below with reference to FIG.
FIG. 7 is a block diagram showing details of the engineering tool of the duplex system according to Embodiment 5 of the present invention.
In FIG. 7, reference numerals 16 to 19, 21 to 23 are the same as those in FIG. In FIG. 7, when the tracking range is changed by the user using the tracking range setting function 18, a tracking range change check function 81 (tracking range change check means) for detecting this change is provided.

実施の形態5は、トラッキング範囲が、ユーザにてトラッキング範囲設定機能18を用いて小さく変更されたとき、トラッキング範囲変更チェック機能81により、この変更を検知して、データメモリ管理テーブル21を参照して、トラッキング範囲が小さくされたことによって、トラッキングされるメモリを割付けられた変数のメモリが、トラッキングされないように変更されることになる場合は、エラーとし、トラッキング範囲設定を変更できないようにガードするようにした。   In the fifth embodiment, when the tracking range is changed by the user using the tracking range setting function 18, the tracking range change check function 81 detects this change and refers to the data memory management table 21. If the memory of the variable to which the tracked memory is allocated is changed so that it is not tracked due to the tracking range being reduced, an error is detected and the tracking range setting cannot be changed. I did it.

実施の形態5によれば、トラッキング範囲変更チェック機能81を設け、トラッキング範囲が小さくされたことによって、トラッキングされるメモリを割付けられた変数のメモリが、トラッキングされないように変更されることを防ぎ、トラッキング範囲を誤って変更できないようにすることができる。   According to the fifth embodiment, the tracking range change check function 81 is provided to prevent the memory of the variable assigned the memory to be tracked from being changed so as not to be tracked by reducing the tracking range. The tracking range cannot be changed by mistake.

実施の形態6.
以下、この発明の実施の形態6を、図8に基づいて説明する。
図8は、この発明の実施の形態6による二重化システムを示すシステム構成図である。
図8において、1A〜1F、11〜19は図1におけるものと同一のものである。図8では、コントローラ12、13に、エンジニアリングツール11から制御系コントローラにトラッキング範囲設定やプログラムが転送されると、これを検知するとともに、転送されたトラッキング範囲設定及びプログラムを待機系コントローラに転送するプログラム・パラメータトラッキング機能91(プログラム・パラメータトラッキング手段)を設けている。
Embodiment 6 FIG.
A sixth embodiment of the present invention will be described below with reference to FIG.
FIG. 8 is a system configuration diagram showing a duplex system according to Embodiment 6 of the present invention.
In FIG. 8, 1A to 1F and 11 to 19 are the same as those in FIG. In FIG. 8, when the tracking range setting or program is transferred from the engineering tool 11 to the control system controller to the controllers 12 and 13, this is detected, and the transferred tracking range setting and program are transferred to the standby system controller. A program parameter tracking function 91 (program parameter tracking means) is provided.

ユーザによって、トラッキング範囲設定機能18を利用してトラッキング範囲が変更され、プログラムエディタ16によってプログラムが変更され、転送機能1Aによって、コントローラ12、13にこれらを転送するときは、制御系コントローラ12と待機系コントローラ13の両コントローラに確実に転送する必要がある。制御系コントローラ12と待機系コントローラ13で一致していないと、切換え時に正常動作しないからである。
ところで、この転送時に、制御系コントローラ12への転送は正常終了したが、待機系コントローラ13には何らかのエラーで転送できなかった場合、これに気付かないで運用していると、制御系コントローラ12から待機系コントローラ13への切換え時に、予想していなかった動きとなり危険である。
実施の形態6は、これを防止するために、エンジニアリングツール11から制御系コントローラ12にのみプログラム及びトラッキング範囲設定を転送し、制御系コントローラ12のプログラム・パラメータトラッキング機能91が、プログラム及びトラッキング範囲設定が転送されたことを検知して、このエンジニアリングツール11から転送されたプログラム及びトラッキング範囲設定を、トラッキングケーブル15経由で待機系コントローラ13に転送するようにして、両コントローラにトラッキング範囲設定及びプログラムを転送する。
なお、制御系コントローラ12のプログラム・パラメータトラッキング機能91によるプログラム及びトラッキング範囲設定の待機系コントローラ13への転送が失敗(待機系コントローラ13からの応答を受信しないことにより)した場合(何回かのリトライの結果の失敗を含む)は、制御系コントローラ12でも、エンジニアリングツール11から転送されたプログラム及びトラッキング範囲設定を破棄し、これによるプログラムメモリ1Cまたはトラッキング範囲1Dの書換えを行わないようにする。
When the user changes the tracking range using the tracking range setting function 18, the program is changed by the program editor 16, and these are transferred to the controllers 12 and 13 by the transfer function 1 </ b> A, the control system controller 12 and the standby It is necessary to transfer to both controllers of the system controller 13 reliably. This is because if the control system controller 12 and the standby system controller 13 do not match, normal operation will not occur at the time of switching.
By the way, if the transfer to the control system controller 12 is normally completed at the time of this transfer, but cannot be transferred to the standby system controller 13 due to some error, if it is operated without noticing this, the control system controller 12 At the time of switching to the standby system controller 13, it is dangerous because of unexpected movement.
In the sixth embodiment, in order to prevent this, the program and tracking range setting are transferred only from the engineering tool 11 to the control system controller 12, and the program / parameter tracking function 91 of the control system controller 12 performs the program and tracking range setting. Is detected, and the program and tracking range setting transferred from the engineering tool 11 are transferred to the standby controller 13 via the tracking cable 15, and the tracking range setting and program are transferred to both controllers. Forward.
If the program / tracking function setting 91 of the control system controller 12 fails to transfer the program and the tracking range setting to the standby system controller 13 (by not receiving a response from the standby system controller 13) (some times) (Including failure of the result of the retry), the control system controller 12 also discards the program and tracking range setting transferred from the engineering tool 11, and does not rewrite the program memory 1C or tracking range 1D.

実施の形態6によれば、トラッキング範囲設定及びプログラムをエンジニアリングツールから制御系コントローラにまず転送し、制御系コントローラから待機系コントローラへ転送するようにしたので、制御系及び待機系コントローラのプログラムとトラッキング範囲が不一致になることを防止できる。   According to the sixth embodiment, the tracking range setting and program are first transferred from the engineering tool to the control system controller, and then transferred from the control system controller to the standby system controller. It is possible to prevent the ranges from being inconsistent.

この発明の実施の形態1による二重化システムを示すシステム構成図である。1 is a system configuration diagram showing a duplex system according to Embodiment 1 of the present invention. FIG. この発明の実施の形態1による二重化システムのエンジニアリングツールの詳細を示す構成図である。It is a block diagram which shows the detail of the engineering tool of the duplex system by Embodiment 1 of this invention. この発明の実施の形態1による二重化システムのエンジニアリングツールの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the engineering tool of the duplex system by Embodiment 1 of this invention. この発明の実施の形態2による二重化システムを示すシステム構成図である。It is a system configuration | structure figure which shows the duplex system by Embodiment 2 of this invention. この発明の実施の形態3による二重化システムのエンジニアリングツールの詳細を示す構成図である。It is a block diagram which shows the detail of the engineering tool of the duplex system by Embodiment 3 of this invention. この発明の実施の形態4による二重化システムのエンジニアリングツールの詳細を示す構成図である。It is a block diagram which shows the detail of the engineering tool of the duplex system by Embodiment 4 of this invention. この発明の実施の形態5による二重化システムのエンジニアリングツールの詳細を示す構成図である。It is a block diagram which shows the detail of the engineering tool of the duplex system by Embodiment 5 of this invention. この発明の実施の形態6による二重化システムを示すシステム構成図である。It is a system block diagram which shows the duplex system by Embodiment 6 of this invention.

符号の説明Explanation of symbols

1A 転送機能、1B データメモリ、1C プログラムメモリ、
1D トラッキング範囲、1F トラッキング機能、
11 エンジニアリングツール、12 制御系コントローラ、
13 待機系コントローラ、14 メンテナンスLAN、
15 トラッキングケーブル、16 プログラムエディタ、17 変数エディタ、
18 トラッキング範囲設定機能、19 コンパイラ、
21 データメモリ管理テーブル、22 トラッキング範囲チェック機能、
23 演算用テンポラリ変数、51 コントローラパラメータチェック機能、
52 他のエンジニアリングツール、61 メモリ使用量表示機能、
71 トラッキング範囲変更通知機能、
81 トラッキング範囲変更チェック機能、
91 プログラム・パラメータトラッキング機能。
1A transfer function, 1B data memory, 1C program memory,
1D tracking range, 1F tracking function,
11 Engineering tool, 12 Control system controller,
13 Standby controller, 14 Maintenance LAN,
15 tracking cable, 16 program editor, 17 variable editor,
18 Tracking range setting function, 19 compiler,
21 Data memory management table, 22 Tracking range check function,
23 Temporary variables for computation, 51 Controller parameter check function,
52 Other engineering tools, 61 Memory usage display function,
71 Tracking range change notification function,
81 Tracking range change check function,
91 Program parameter tracking function.

Claims (6)

プログラムを実行することによりプラント機器を制御する制御系コントローラとこの制御系コントローラが故障したとき上記制御系コントローラの動作を継続して上記プラント機器を制御する待機系コントローラとの二つのコントローラにより構成され、上記コントローラは、実行するプログラムで参照される変数の値を格納するデータメモリと、上記制御系コントローラのデータメモリのデータを待機系コントローラのデータメモリにコピーするトラッキング手段を有する二重化システムにおいて、
上記コントローラで実行されるプログラムを作成するとともに上記データメモリのトラッキングするデータの範囲を設定するエンジニアリングツールを備え、
上記エンジニアリングツールは、ユーザが上記プログラムを作成するプログラムエディタと、ユーザがトラッキング対象の変数を定義する変数エディタと、上記制御系コントローラから上記待機系コントローラへトラッキングする上記データメモリ上のデータの範囲であるトラッキング範囲をユーザが設定するトラッキング範囲設定手段と、このトラッキング範囲設定手段により設定されたトラッキング範囲及び上記データメモリの空き情報を格納するデータメモリ管理テーブルと、上記データメモリ管理テーブルを参照して上記変数エディタにより定義された変数に上記トラッキング範囲にあるメモリを割付けるように上記プログラムエディタによって作成されたプログラムをコンパイルするコンパイラと、このコンパイラによってコンパイルされたプログラム及び上記トラッキング範囲設定手段により設定されたトラッキング範囲設定を上記コントローラに転送する転送手段とを有することを特徴とする二重化システム。
It consists of two controllers: a control system controller that controls the plant equipment by executing the program and a standby system controller that controls the plant equipment by continuing the operation of the control system controller when this control system controller fails. In the duplex system, the controller has a data memory for storing a value of a variable referred to in a program to be executed, and a tracking unit for copying the data in the data memory of the control system controller to the data memory of the standby system controller.
An engineering tool for creating a program to be executed by the controller and setting a range of data to be tracked by the data memory is provided.
The engineering tool includes a program editor for creating the program by the user, a variable editor for defining a variable to be tracked by the user, and a range of data on the data memory to be tracked from the control system controller to the standby system controller. Refer to the tracking range setting means for setting a certain tracking range by the user, the data memory management table for storing the tracking range set by the tracking range setting means and the free information of the data memory, and the data memory management table. A compiler that compiles the program created by the program editor so as to allocate the memory within the tracking range to the variable defined by the variable editor, and the compiler Duplex system, characterized in that it comprises a transfer means for transferring the set tracking range set by Le program and the tracking range setting means to the controller.
上記エンジニアリングツールは、上記プログラムを変更し、コンパイルしたとき、上記転送手段により上記コンパイルされたプログラムを転送する直前に、上記コントローラの保有するトラッキング範囲と、上記エンジニアリングツールのトラッキング範囲設定機能により設定されているトラッキング範囲をチェックして、上記コントローラの保有するトラッキング範囲が小さい場合は、上記プログラムを転送しないようにするコントローラパラメータチェック手段を有することを特徴とする請求項1記載の二重化システム。   The engineering tool is set by the tracking range held by the controller and the tracking range setting function of the engineering tool immediately before transferring the compiled program by the transfer means when the program is changed and compiled. 2. The duplex system according to claim 1, further comprising controller parameter check means for checking a tracking range that is not transferred when the tracking range held by the controller is small. 上記エンジニアリングツールは、上記コントローラのデータメモリの使用量を表示するメモリ使用量表示手段を有することを特徴とする請求項1記載の二重化システム。   2. The duplex system according to claim 1, wherein the engineering tool has a memory usage display means for displaying a data memory usage of the controller. 上記エンジニアリングツールは、上記トラッキング範囲設定手段によりトラッキング範囲が小さく変更されたときに、ユーザに上記変数エディタにより定義された変数への上記トラッキング範囲にあるメモリの割付けを上記コンパイラにより行う必要があることを警告するとともに、上記コンパイラによるメモリの割付が完了するまで上記プログラム及びトラッキング範囲設定を転送しないよう、上記転送手段に通知するトラッキング範囲変更通知手段を有することを特徴とする請求項1記載の二重化システム。   The engineering tool requires that the compiler allocate the memory in the tracking range to the variable defined by the variable editor when the tracking range is changed to a small value by the tracking range setting means. And a tracking range change notifying means for notifying the transfer means of not transferring the program and the tracking range setting until the memory allocation by the compiler is completed. system. 上記エンジニアリングツールは、上記トラッキング範囲設定手段によりトラッキング範囲が小さく変更されるときに、上記データメモリ管理テーブルを参照して、上記小さくされるトラッキング範囲に上記変数エディタにより定義された変数が入らなくなる場合には、エラーとして、上記トラッキング範囲を変更できないようにするトラッキング範囲変更チェック手段を有することを特徴とする請求項1記載の二重化システム。   The engineering tool refers to the data memory management table when the tracking range is changed by the tracking range setting means, and the variable defined by the variable editor does not enter the tracking range to be reduced. 2. The duplex system according to claim 1, further comprising tracking range change checking means for preventing the tracking range from being changed as an error. 上記コントローラは、上記エンジニアリングツールから上記プログラム及び上記トラッキング範囲設定が転送されたことを検知し、待機系コントローラに上記転送されたプログラム及びトラッキング範囲設定を転送するプログラム・パラメータトラッキング手段を有し、
上記エンジニアリングツールの転送手段は、上記コンパイルされたプログラム及び上記トラッキング範囲設定手段により設定されたトラッキング範囲設定を上記制御系コントローラに転送するとともに、上記制御系コントローラは、上記転送されたプログラム及びトラッキング範囲設定を上記プログラム・パラメータトラッキング手段により上記待機系コントローラに転送することを特徴とする請求項1記載の二重化システム。
The controller has a program and parameter tracking means for detecting that the program and the tracking range setting have been transferred from the engineering tool, and transferring the transferred program and the tracking range setting to a standby controller.
The transfer means of the engineering tool transfers the compiled program and the tracking range setting set by the tracking range setting means to the control system controller, and the control system controller transmits the transferred program and tracking range. 2. The duplex system according to claim 1, wherein the setting is transferred to the standby controller by the program parameter tracking means.
JP2005269412A 2005-09-16 2005-09-16 Redundant system Active JP4347839B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005269412A JP4347839B2 (en) 2005-09-16 2005-09-16 Redundant system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005269412A JP4347839B2 (en) 2005-09-16 2005-09-16 Redundant system

Publications (2)

Publication Number Publication Date
JP2007080116A true JP2007080116A (en) 2007-03-29
JP4347839B2 JP4347839B2 (en) 2009-10-21

Family

ID=37940338

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005269412A Active JP4347839B2 (en) 2005-09-16 2005-09-16 Redundant system

Country Status (1)

Country Link
JP (1) JP4347839B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128514A (en) * 2008-11-25 2010-06-10 Mitsubishi Electric Corp Plant control system
JP2011227597A (en) * 2010-04-16 2011-11-10 Hitachi Ltd Method for monitoring and operating programmable display device, monitoring and operating program and programmable display device
JP2012133610A (en) * 2010-12-22 2012-07-12 Hitachi Ltd Dual process controller and control data coincidence method
JP2013235311A (en) * 2012-05-07 2013-11-21 Mitsubishi Electric Corp Engineering device
JP2016057911A (en) * 2014-09-10 2016-04-21 株式会社東芝 Duplex control system
WO2016157362A1 (en) * 2015-03-30 2016-10-06 三菱電機株式会社 Computation unit, engineering tool, and engineering tool program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010128514A (en) * 2008-11-25 2010-06-10 Mitsubishi Electric Corp Plant control system
JP2011227597A (en) * 2010-04-16 2011-11-10 Hitachi Ltd Method for monitoring and operating programmable display device, monitoring and operating program and programmable display device
JP2012133610A (en) * 2010-12-22 2012-07-12 Hitachi Ltd Dual process controller and control data coincidence method
JP2013235311A (en) * 2012-05-07 2013-11-21 Mitsubishi Electric Corp Engineering device
JP2016057911A (en) * 2014-09-10 2016-04-21 株式会社東芝 Duplex control system
WO2016157362A1 (en) * 2015-03-30 2016-10-06 三菱電機株式会社 Computation unit, engineering tool, and engineering tool program
JP6099846B2 (en) * 2015-03-30 2017-03-22 三菱電機株式会社 Arithmetic unit, engineering tool and engineering tool program
JPWO2016157362A1 (en) * 2015-03-30 2017-04-27 三菱電機株式会社 Arithmetic unit, engineering tool and engineering tool program
CN107430385A (en) * 2015-03-30 2017-12-01 三菱电机株式会社 Arithmetic element, engineering tools and engineering tools program

Also Published As

Publication number Publication date
JP4347839B2 (en) 2009-10-21

Similar Documents

Publication Publication Date Title
JP4347839B2 (en) Redundant system
US5319645A (en) Method for debugging and testing the correctness of programs
JP5093259B2 (en) Communication path strengthening method between BIOS and BMC, apparatus and program thereof
US8108852B2 (en) Online modification of CIL code programs for industrial automation
US7096456B2 (en) Method and apparatus for providing dynamically scoped variables within a statically scoped computer programming language
EP3647942B1 (en) Engineering apparatus, control method of engineering apparatus, and program
EP3159792B1 (en) Method of optimally compiling plc command
JP2005063435A (en) Method and system for containing software fault
JP2009157533A (en) Programmable controller system
JP5849592B2 (en) Programmable controller system, programming device thereof, programmable controller, program, and debugging method
CN103902383A (en) Method for designing resource managers on basis of inheritance mechanisms
US5136698A (en) Method for selective back-tracking in a hierarchical system containing a flag which indicates the validity of a choice-point
WO2019230262A1 (en) Support device, control system, and development assistance program
US8893127B2 (en) Method and system for loading application to a local memory of a co-processor system by using position independent loader
KR102434126B1 (en) Apparatus for processing programmable logic controller program
JP5832368B2 (en) Engineering equipment
JP2000163109A (en) Ladder programming device and its method
JP3682050B2 (en) Embedded software development equipment
JP7446537B1 (en) Programmable logic controller, control method and program
KR100382355B1 (en) Method of Alternating Text Areas of the Shared Library
CN109445831B (en) Welding machine system upgrading method and welding machine
JP2006085209A (en) Deployment method of computer system
CN106066638B (en) Method and apparatus for flexible process control
JP3019330B2 (en) Compiling device
CN115756551A (en) Software upgrading method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070419

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090316

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090324

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090421

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: 20090707

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090716

R151 Written notification of patent or utility model registration

Ref document number: 4347839

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20120724

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120724

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130724

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250