JPH08272636A - Transfer method for equalization data on duplex controller - Google Patents

Transfer method for equalization data on duplex controller

Info

Publication number
JPH08272636A
JPH08272636A JP7077532A JP7753295A JPH08272636A JP H08272636 A JPH08272636 A JP H08272636A JP 7077532 A JP7077532 A JP 7077532A JP 7753295 A JP7753295 A JP 7753295A JP H08272636 A JPH08272636 A JP H08272636A
Authority
JP
Japan
Prior art keywords
equalization
time
processing
control
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7077532A
Other languages
Japanese (ja)
Inventor
Tetsuo Koyama
哲雄 小山
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP7077532A priority Critical patent/JPH08272636A/en
Publication of JPH08272636A publication Critical patent/JPH08272636A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

PURPOSE: To increase an equalization processing capacity to open it to the equalization processing of data of its own controller and also to an equalization processing of data of a system controller. CONSTITUTION: A control arithmetic unit MPU includes a time information file T, an elapsed time file Ti, an equalization FM reference time file TFM, a relative time file ΔT, and the equalization FM program P1 to P31. Then the unit MPU requests a 1st equalization processing P02 before execution of the control arithmetic processing programs P1 to P3 which cyclically operate. When a prescribed time elapsed, the unit MPU starts in sequence plural pairs of programs P1 to P3 to perform the control arithmetic processing. Then the unit MPU starts the programs P11 to P31 each time of programs P1 to P3 ends and calculates a relative time from the start and end times of programs P1 to P3. If this relative time is longer than the equalization processing time that is previously set, the unit MPU requests a 2nd and its subsequent equalization processing P12 to P32.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、高信頼性が要求される
二重化制御装置に関し、特に、二重化制御装置の等値化
データの転送方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a duplicated control device required to have high reliability, and more particularly to a method of transferring equalized data in the duplicated control device.

【0002】[0002]

【従来の技術】制御装置の信頼性・稼働率の向上のた
め、特に重要な制御システムに対して、制御装置の二重
化が行われている。図4に従来技術の二重化制御装置の
構成とその等値化データの転送方法を説明する説明図を
示す。図4の(A) は、二重化制御装置の構成を示し、二
重化制御装置は、複数組に分割された制御演算処理プロ
グラムP1〜P3を備える制御演算ユニットMPU と、等値化
処理プログラムを備えデータの等値化処理を行う等値化
ユニットSGM と、システムサービスとエンジニアリング
支援ツールとのインタフェースを行うエンジニアリング
サービスユニットESA と、を備えてなる2組の制御装置
1,2 と、この制御装置1,2 の等値化ユニットSGM 間の伝
送を行う伝送路3 と、を備えて構成される。
2. Description of the Related Art In order to improve the reliability and operating rate of a control device, the control device is duplicated for a particularly important control system. FIG. 4 shows an explanatory diagram for explaining the configuration of a duplex control device of the related art and a method for transferring the equalized data. FIG. 4 (A) shows the configuration of the duplication control device, and the duplication control device includes a control operation unit MPU including the control operation processing programs P1 to P3 divided into a plurality of sets, and a data including the equalization processing program. Two sets of control devices, including an equalization unit SGM that performs the equalization processing of the system and an engineering service unit ESA that interfaces the system service and the engineering support tool.
1, 2 and a transmission line 3 for transmission between the equalization units SGM of the control devices 1, 2.

【0003】かかる構成の二重化制御装置の等値化デー
タの転送方法を図4の(B) に図示する。図4の(B) にお
いて、縦軸に上から下へ時間軸をとり、図4に図示され
る例では、制御演算ユニットMPU は、200msec 毎にサイ
クリックに一連の制御演算処理プログラムP1〜P3が起動
され、制御演算処理が実行される。横軸方向には、左側
に制御演算ユニットMPU の処理プログラムP1〜P3を、右
側に等値化ユニットSGM の処理プログラムP02 を示す。
FIG. 4B shows a method of transferring equalized data in the duplex control device having such a configuration. In FIG. 4B, the vertical axis is a time axis from top to bottom, and in the example shown in FIG. 4, the control arithmetic unit MPU cyclically executes a series of control arithmetic processing programs P1 to P3 every 200 msec. Is started, and the control calculation process is executed. In the horizontal axis direction, the processing programs P1 to P3 of the control arithmetic unit MPU are shown on the left side, and the processing program P02 of the equalization unit SGM is shown on the right side.

【0004】稼働系制御装置1 (以下、特に断らなけれ
ば、稼働系制御装置を1 とし、該当するユニットには、
ユニット符号に稼働系1 、待機系2 の添数字で区分す
る)の制御演算ユニットMPU1は、サイクリックに処理す
る制御演算処理プログラムP1〜P3の実行に先行して、両
制御装置1,2 が有するデータの等値化処理をプログラム
P0で稼働系等値化ユニットSGM1に依頼する。この依頼を
受けた稼働系等値化ユニットSGM1は、等値化処理プログ
ラムP02 で両等値化ユニットSGM1、SGM2間でデータの等
値化処理を30msec以内で行う。
Operation system control device 1 (Hereinafter, unless otherwise specified, the operation system control device is 1, and the corresponding unit is
The control arithmetic unit MPU1 (which is divided into the unit code by the subscripts of the active system 1 and the standby system 2) has both control devices 1 and 2 prior to the execution of the cyclic control processing programs P1 to P3. Program for equalization processing of data
Request to the active system equalization unit SGM1 at P0. In response to this request, the operating system equalization unit SGM1 performs data equalization processing between the two equalization units SGM1 and SGM2 within 30 msec by the equalization processing program P02.

【0005】稼働系制御演算ユニットMPU1は、稼働系等
値化ユニットSGM1に等値化処理を依頼した後、予め定め
られた一定時間、図示例では40msecの間隔をあけた後、
上述の複数組の制御演算処理プログラムP1,P2,P3を順次
起動し、制御演算処理A,B,Cを順次実行する。
The operating system control arithmetic unit MPU1 requests the operating system equalization unit SGM1 for equalization processing, and after a predetermined fixed time, for example, 40 msec in the illustrated example,
The plurality of sets of control arithmetic processing programs P1, P2, P3 described above are sequentially activated, and the control arithmetic processing A, B, C are sequentially executed.

【0006】[0006]

【発明が解決しようとする課題】この様な従来技術の二
重化制御装置の等値化データの転送方法には次の様な問
題がある。即ち、従来技術では、制御演算ユニットがサ
イクリックに一連の制御演算処理プログラムを起動し、
制御演算処理を実行する1サイクル当たりに、1回の等
値化処理しか行っておらず、等値化処理できる容量も限
られているため、等値化処理に拡張性がない。
The method of transferring equalized data in such a conventional duplexing control device has the following problems. That is, in the conventional technology, the control arithmetic unit cyclically activates a series of control arithmetic processing programs,
Only one equalization process is performed per cycle for executing the control calculation process, and the capacity for the equalization process is limited, so the equalization process is not expandable.

【0007】本発明は上記の点にかんがみてなされたも
のであり、その目的は前記した課題を解決して、等値化
処理および制御演算処理を小サイクル毎に複数回実行す
ることにより、等値化処理容量を増やし、二重化された
制御装置自身のデータの等値化処理以外に、この増やし
た等値化処理容量を制御装置が制御対象を制御する制御
システムのシステムデータの等値化処理などに開放する
ことにより、制御システムの最適化と高信頼化された二
重化制御装置の等値化データの転送方法を提供すること
にある。
The present invention has been made in view of the above points, and an object of the present invention is to solve the above-mentioned problems by performing equalization processing and control arithmetic processing a plurality of times for every small cycle. In addition to the equalization processing of the duplicated data of the control device itself by increasing the equalization processing capacity, the equalization processing of the system data of the control system in which the control device controls the control target of this increased equalization processing capacity It is intended to provide a method of transferring the equalized data of the duplicated control device, which is optimized for the control system and has a high reliability by opening to the public.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するため
に、本発明においては、複数組に分割された制御演算処
理プログラムを備える制御演算ユニットと,等値化処理
プログラムを備えデータの等値化処理を行う等値化ユニ
ットと,を備えてなる2組の制御装置と、この制御装置
の等値化ユニット間の伝送を行う伝送路と、を備え、両
制御装置を二重化構成する二重化制御装置の等値化デー
タの転送方法において、制御演算ユニットは、時間情報
ファイルと、経過時間ファイルと、等値化FM基準時間フ
ァイルと、相対時間ファイルと、等値化FMプログラム
と、を備え、稼働系制御演算ユニットは、該制御演算ユ
ニットがサイクリックに処理する制御演算処理プログラ
ムの実行に先行して、両制御装置が有するデータの等値
化を行う第1等値化処理を稼働系等値化ユニットに依頼
し、この依頼したときの時刻を等値化FM基準時間ファイ
ルにセットし、稼働系等値化ユニットは、両等値化ユニ
ット間でデータの等値化処理を行い、第1等値化処理を
稼働系等値化ユニットに依頼した後、予め定められた一
定時間経過後、複数組の制御演算処理プログラムを順次
起動して制御演算処理を行い、個別の各制御演算処理プ
ログラムが終了した時点毎に、等値化FMプログラムを起
動し、この制御演算処理プログラムが終了した時刻と等
値化FM基準時間ファイルにセットされた時刻との差より
FM相対時間を求め、このFM相対時間が予め定められた等
値化ユニットの等値化処理時間より大きいとき、第2回
目以降の当該等値化処理を稼働系等値化ユニットに依頼
し、この依頼したときの時間を等値化FM基準時間ファイ
ルにセットするものとする。
In order to achieve the above object, in the present invention, a control arithmetic unit having a control arithmetic processing program divided into a plurality of sets and an equal value of data having an equalization processing program are provided. Duplex control in which two sets of control devices each including an equalization unit that performs equalization processing and a transmission line that performs transmission between the equalization units of the control devices are provided, and both control devices are configured in a dual configuration In the equalized data transfer method of the device, the control operation unit includes a time information file, an elapsed time file, an equalized FM reference time file, a relative time file, and an equalized FM program, The operating system control arithmetic unit is a first equalization processing unit that equalizes data possessed by both control devices prior to execution of a control arithmetic processing program cyclically processed by the control arithmetic unit. To the active system equalization unit, set the time when this request was made in the equalization FM reference time file, and the active system equalization unit equalizes the data between the two equalization units. After performing the processing and requesting the first equalization processing to the operation system equalization unit, after a lapse of a predetermined fixed time, a plurality of sets of control calculation processing programs are sequentially activated to perform the control calculation processing, and individually. The equalization FM program is started each time each control calculation processing program of is finished, and the difference between the time when this control calculation processing program ends and the time set in the equalization FM reference time file is calculated.
When the FM relative time is calculated, and when this FM relative time is longer than the equalization processing time of the equalization unit set in advance, the second equalization processing and subsequent equalization processings are requested to the operating system equalization unit, The time when this request is made shall be set in the equalization FM reference time file.

【0009】また、制御演算ユニットは、等値化PG基準
時間ファイルと、等値化PGプログラムと、を備え、稼働
系制御演算ユニットは、該制御演算ユニットがサイクリ
ックに処理する制御演算処理プログラムの実行に先行し
て、両制御装置が有するデータの第1等値化処理を稼働
系等値化ユニットに依頼したときの時刻を等値化PG基準
時間ファイルにセットし、該制御演算ユニットがサイク
リックに処理する1サイクル分の制御演算処理プログラ
ムの処理が終了した時点で、等値化PGプログラムを起動
し、1サイクル分の制御演算処理プログラム処理が終了
した時刻と等値化PG基準時間ファイルにセットされた時
刻との差よりPG相対時間を求めるものとする。
Further, the control arithmetic unit comprises an equalization PG reference time file and an equalization PG program, and the operation control arithmetic unit is a control arithmetic processing program which the control arithmetic unit cyclically processes. Prior to the execution of, the time when the first equalization processing of the data of both control devices is requested to the operating system equalization unit is set in the equalization PG reference time file, and the control operation unit When the processing of the control arithmetic processing program for one cycle that is cyclically processed is completed, the equalization PG program is started, and the time when the control arithmetic processing program processing for one cycle ends and the equalization PG reference time The PG relative time is calculated from the difference from the time set in the file.

【0010】[0010]

【作用】上記構成により、制御演算処理プログラムが終
了した時刻と等値化FM基準時間ファイルにセットされた
時刻との差よりFM相対時間を求め、このFM相対時間が予
め定められた等値化ユニットの等値化処理時間より大き
いときは、制御演算処理プログラムが終了した時刻まで
に、制御演算処理プログラムと並行して処理されいる等
値化処理プログラムの処理が完了しているので、制御演
算ユニットは、等値化ユニットに対して続いて第2回目
以降の等値化処理を依頼し、両等値化ユニット間でデー
タの等値化処理を行う。
With the above configuration, the FM relative time is obtained from the difference between the time when the control calculation processing program ends and the time set in the equalization FM reference time file, and this FM relative time is equalized in advance. If it is longer than the equalization processing time of the unit, the processing of the equalization processing program, which is being processed in parallel with the control arithmetic processing program, has been completed by the time the control arithmetic processing program ends. The unit subsequently requests the equalization unit to perform the second and subsequent equalization processes, and performs the data equalization process between the two equalization units.

【0011】また、FM相対時間が予め定められた等値化
処理時間より小さいときは、等値化ユニットは、まだ、
先の等値化処理プログラムを継続実行処理中であるの
で、制御演算ユニットは、等値化ユニットに対して次の
等値化処理は依頼せずに、継続中の等値化処理プログラ
ムを継続実行させる。また、1サイクル分の制御演算処
理プログラム処理が終了した時刻と等値化PG基準時間フ
ァイルにセットされた時刻との差よりPG相対時間を求
め、このPG相対時間が制御演算ユニットに予め定められ
た処理時間より小さいとき、制御演算ユニットに割り付
けられた1サイクル分の処理時間に対して、等値化ユニ
ットがさらに等値化処理を実行するための時間が十分に
確保できているので、制御演算ユニットは、等値化ユニ
ットに対して更なる等値化処理を依頼し、両等値化ユニ
ット間でデータの等値化処理を行う。
Further, when the FM relative time is smaller than the predetermined equalization processing time, the equalization unit still has
Since the previous equalization processing program is being executed continuously, the control calculation unit continues the current equalization processing program without requesting the next equalization processing to the equalization unit. Let it run. Also, the PG relative time is obtained from the difference between the time when the control arithmetic processing program processing for one cycle is finished and the time set in the equalization PG reference time file, and this PG relative time is preset in the control arithmetic unit. When the processing time is shorter than the specified processing time, the equalization unit has sufficient time to execute further equalization processing with respect to the processing time for one cycle allocated to the control arithmetic unit. The arithmetic unit requests the equalization unit for further equalization processing, and performs the data equalization processing between the two equalization units.

【0012】[0012]

【実施例】図1は本発明による一実施例の二重化制御装
置の等値化データの転送方法を説明する説明図、図2は
一実施例の使用ファイルを説明する説明図、図3の(A)
は等値化FMプログラムのフローチャート、図3の(B) は
等値化PGプログラムのフローチャートであり、図4に対
応する同一機能部材には同じ符号が付してある。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is an explanatory diagram for explaining a method of transferring equalized data in a duplexing control device according to one embodiment of the present invention, FIG. 2 is an explanatory diagram for explaining a file used in one embodiment, and FIG. A)
3 is a flow chart of the equalization FM program, and FIG. 3B is a flow chart of the equalization PG program. The same functional members corresponding to FIG. 4 are designated by the same reference numerals.

【0013】二重化制御装置のハードウェア構成は、図
4の(A) に図示されるものと同様に、複数組に分割され
た制御演算処理プログラムP1〜P3を備える制御演算ユニ
ットMPU と,等値化処理プログラム P02〜P42 を備えデ
ータの等値化処理を行う等値化ユニットSGM と,システ
ムサービスとエンジニアリング支援ツールとのインタフ
ェースを行うエンジニアリングサービスユニットESA
と、を備えてなる2組の制御装置1,2 と、この制御装置
1,2 の等値化ユニットSGM 間の伝送を行う伝送路3 と、
を備えて構成される。
The hardware configuration of the duplicated control device is similar to that shown in FIG. 4A, and a control operation unit MPU having control operation processing programs P1 to P3 divided into a plurality of sets and an equivalent value. Equalization unit SGM, which has equalization processing programs P02 to P42, that performs data equalization processing, and engineering service unit ESA that interfaces system services and engineering support tools
And two sets of control devices 1 and 2, and this control device
Transmission line 3 for transmission between 1 and 2 equalization units SGM,
It is configured with.

【0014】制御演算ユニットMPU には、時間情報ファ
イルTと、経過時間ファイルTiと、等値化FM基準時間フ
ァイルTFM と、等値化PG基準時間ファイルTPG と、相対
時間ファイルΔT と、等値化FMプログラム(P11〜P31)
と、等値化PGプログラムP4と、を備えて構成される。上
記構成において、二重化制御装置の等値化データの転送
方法の一実施例を図1に図示する。以下、従来技術とし
て図4の(B) で説明した等値化データの転送方法と、本
発明による等値化データの転送方法と、の相違点を中心
に説明する。図1において、稼働系制御演算ユニットMP
U1は、サイクリックに処理する制御演算処理プログラム
P1〜P3の実行に先行して、プログラムP0で両制御装置MP
U1,MPU2 が有するデータの等値化を行う第1等値化処理
P02 を稼働系等値化ユニットSGM1に依頼する。そして、
稼働系等値化ユニットSGM1は、両等値化ユニットSGM1、
SGM2間でデータの等値化処理を行う。ここまでの制御動
作は従来技術と同じ動作である。
The control arithmetic unit MPU includes a time information file T, an elapsed time file Ti, an equalization FM reference time file TFM, an equalization PG reference time file TPG, a relative time file ΔT, and an equalization file. FM program (P11-P31)
And an equalization PG program P4. FIG. 1 illustrates an embodiment of a method of transferring equalized data in the duplex control device in the above configuration. Hereinafter, the difference between the method of transferring equalized data described in FIG. 4B as a conventional technique and the method of transferring equalized data according to the present invention will be mainly described. In FIG. 1, the operating system control arithmetic unit MP
U1 is a control calculation processing program that processes cyclically
Prior to the execution of P1 to P3, both controllers MP with program P0
First equalization process for equalizing the data of U1 and MPU2
Request P02 to the active system equalization unit SGM1. And
The working system equalization unit SGM1 is a bi-equalization unit SGM1,
Performs data equalization processing between SGM2. The control operation up to this point is the same as that of the conventional technique.

【0015】従来技術でのデータの等値化処理は、この
第1等値化処理P02 の1回だけであるのに対して、本発
明では可能な限り複数回の等値化処理(P12〜P42)の機会
を設け、稼働系制御演算ユニットMPU1が制御演算処理プ
ログラムP1〜P3を処理するのと並行して、等値化ユニッ
トSGM1、SGM2は、等値化処理(P12〜P42)を行うものであ
り、この等値化処理(P12〜P42)を制御システムのシステ
ムデータの等値化処理などに開放することである。この
ため、上述の稼働系制御演算ユニットMPU1が稼働系等値
化ユニットSGM1に第1等値化処理P02 を依頼した時刻t0
を等値化FM基準時間ファイルTFM および等値化PG基準時
間ファイルTPG にセットする。
In the prior art, data equalization processing is performed only once in the first equalization processing P02, whereas in the present invention, equalization processing (P12 to (P42) and the operating system control arithmetic unit MPU1 processes the control arithmetic processing programs P1 to P3, while the equalization units SGM1 and SGM2 perform the equalization processing (P12 to P42). This is to open the equalization processing (P12 to P42) to the equalization processing of the system data of the control system. Therefore, the time t0 at which the above-mentioned operating system control arithmetic unit MPU1 requests the operating system equalization unit SGM1 for the first equalization processing P02
Are set in the equalized FM reference time file TFM and the equalized PG reference time file TPG.

【0016】次に、稼働系制御演算ユニットMPU1は、プ
ログラムP0で稼働系等値化ユニットSGM1に第1等値化処
理P02 を依頼した後、予め定められた一定時間、図示例
では40msec経過後、複数組の制御演算処理プログラムP1
〜P3を順次起動して制御演算処理を行う。尚、この一定
時間40msecの意味は、第1等値化処理P02 の処理時間が
最大30msecに設定してあるので、余裕をとって40msecと
したものである。
Next, the operating system control arithmetic unit MPU1 requests the operating system equalization unit SGM1 for the first equalization processing P02 by the program P0, and after a predetermined time, 40 msec in the illustrated example, elapses. , Multiple sets of control calculation programs P1
~ P3 is sequentially activated to perform control calculation processing. The fixed time of 40 msec means 40 msec with a margin because the processing time of the first equalization process P02 is set to a maximum of 30 msec.

【0017】個別の各制御演算処理プログラムP1,P2,P3
が終了した各時点t1,t2,t3毎に、上述の等値化FMプログ
ラムP11,P21,P31 を起動する。この等値化FMプログラム
(P11〜P31)の処理内容の目的は、稼働系制御演算ユニッ
トMPU1が稼働系等値化ユニットSGM1に等値化処理を依頼
した後、該当する制御演算処理プログラムを実行し、こ
の処理プログラムが終了する時点までの経過時間を計測
することにより、等値化処理を依頼した等値化ユニット
SGM1、SGM2の等値化処理が終了したか否かを判定するも
のである。
Individual control arithmetic processing programs P1, P2, P3
The above-mentioned equalization FM programs P11, P21, P31 are started at each time point t1, t2, t3 after the completion of. This equalization FM program
The purpose of the processing contents in (P11 to P31) is that the operating system control arithmetic unit MPU1 requests the operating system equalization unit SGM1 for equalization processing and then executes the corresponding control arithmetic processing program. Equalization unit that requested equalization processing by measuring the elapsed time until the end
It is to determine whether or not the equalization processing of SGM1 and SGM2 is completed.

【0018】即ち、等値化FMプログラムP11(P21,P31)
は、該当する制御演算処理プログラムP1(P2,P3) が終了
した時刻t1(t2,t3) を時間情報ファイルTより読み取
り、この時間情報t1(t2,t3) を経過時間ファイルTiにセ
ットする。この経過時間ファイルTiにセットされた時間
情報t1(t2,t3) と、等値化ユニットが等値化処理を依頼
され、等値化FM基準時間ファイルにセットされた時間t0
(t1,t2) と、の差よりFM相対時間Δt を求め、相対時間
ファイルΔT にセットする。即ち、 FM相対時間=経過時間−等値化FM基準時間 この求めたFM相対時間Δt が予め定められた等値化ユニ
ットの等値化処理時間(図示例では30msec)より大きい
とき、第2回目以降の当該等値化処理P12(P22,P23)を稼
働系等値化ユニットSGM1に依頼し、両等値化ユニットSG
M1,SGM2 間でデータの等値化処理を行う。なお、次のFM
相対時間を求めるため、この依頼したときの時間t1(t2,
t3) を上記等値化FM基準時間ファイルTFM にセットす
る。
That is, the equalization FM program P11 (P21, P31)
Reads from the time information file T the time t1 (t2, t3) when the corresponding control operation processing program P1 (P2, P3) ends, and sets this time information t1 (t2, t3) in the elapsed time file Ti. The time information t1 (t2, t3) set in this elapsed time file Ti and the time t0 set in the equalization FM reference time file when the equalization unit is requested for equalization processing.
FM relative time Δt is obtained from the difference between (t1, t2) and set in the relative time file ΔT. That is, when the FM relative time = elapsed time−equalized FM reference time, the obtained FM relative time Δt is larger than the predetermined equalization processing time (30 msec in the illustrated example) of the equalization unit, the second time Subsequent relevant equalization processing P12 (P22, P23) is requested to the active system equalization unit SGM1, and the two equalization units SG
Data equalization processing is performed between M1 and SGM2. The next FM
Since the relative time is calculated, the time t1 (t2,
t3) is set in the equalized FM reference time file TFM.

【0019】また、このFM相対時間ΔT が予め定められ
た等値化処理時間30msecより小さいとき、等値化ユニッ
トSGM1,SGM2 間での等値化処理が未終了の可能性を有す
るので、当該等値化処理P11(P21,P31)を依頼することな
く、稼働系制御演算ユニットMPU1は、次の制御演算処理
プログラムP2(P3,P4) を処理する。また、1サイクル分
の最後の制御演算処理CのプログラムP3が終了した時点
t4で、この時刻t4を時間情報ファイルTより読み取り、
この時間情報t4を経過時間ファイルTiにセットする。こ
の経過時間ファイルTiにセットされた時間情報t4と、先
に稼働系制御演算ユニットMPU1が稼働系等値化ユニット
SGM1に第1等値化処理P02 を依頼し等値化PG基準時間フ
ァイルTPG にセット時刻t0と、の差よりPG相対時間を求
める。即ち、 PG相対時間=経過時間−等値化FM基準時間t0 このPG相対時間が制御演算ユニットに予め定められた処
理時間(一実施例では、120msec)より小さいとき、制御
演算ユニットMPU に割り付けられた1サイクル分の処理
時間(一実施例では、200msec)に対して、等値化ユニッ
トがさらに等値化処理を実行するための時間30msecと余
裕時間50msecとが十分に確保できている状態であるの
で、制御演算ユニットMPU1は、等値化ユニットSGM1に対
して更なる等値化処理P42 を依頼し、両等値化ユニット
SGM1,SGM2 間でデータの等値化処理を行う。
When the FM relative time ΔT is smaller than the predetermined equalization processing time of 30 msec, there is a possibility that the equalization processing between the equalization units SGM1 and SGM2 is not completed. The operating system control arithmetic unit MPU1 processes the next control arithmetic processing program P2 (P3, P4) without requesting the equalization processing P11 (P21, P31). When the program P3 of the last control operation processing C for one cycle is completed
At time t4, this time t4 is read from the time information file T,
This time information t4 is set in the elapsed time file Ti. The time information t4 set in this elapsed time file Ti and the operating system control arithmetic unit MPU1 are used first by the operating system equalization unit.
The first equalization process P02 is requested to SGM1 and the PG relative time is obtained from the difference between the set time t0 and the equalization PG reference time file TPG. That is, PG relative time = elapsed time−equalization FM reference time t0 When this PG relative time is shorter than the processing time (120 msec in one embodiment) predetermined in the control arithmetic unit, it is assigned to the control arithmetic unit MPU. With respect to the processing time for one cycle (200 msec in one embodiment), the time for the equalization unit to further perform the equalization process of 30 msec and the margin time of 50 msec are sufficiently secured. Therefore, the control arithmetic unit MPU1 requests the equalization unit SGM1 for further equalization processing P42, and
Performs data equalization processing between SGM1 and SGM2.

【0020】図2は制御演算ユニットMPU に構成された
上述の時間情報ファイルTと、経過時間ファイルTiと、
等値化FM基準時間ファイルTFM と、等値化PG基準時間フ
ァイルTPG と、相対時間ファイルΔT と、を示す。一実
施例では、時間情報ファイルTは、1msec 毎に時刻を計
時する時計機能が時間情報として格納される。経過時間
ファイルTiは、各イベント終了時点にそのときの時刻を
時間情報ファイルTより読み取りセットする領域であ
る。等値化FM基準時間ファイルTFM と等値化PG基準時間
ファイルTPG とは、相対時間を求めるため、各イベント
の開始時点の時刻を時間情報ファイルTより読み取りセ
ットする領域であり、等値化FM基準時間ファイルTFM に
は、制御演算ユニットMPU が等値化ユニットSGM に等値
化処理を依頼し当該制御演算処理プログラムを開始した
時刻がセットされ、等値化PG基準時間ファイルTPG に
は、サイクリックに処理する制御演算処理プログラムP1
〜P3の実行に先行して、プログラムP0で両制御装置MPU
1,MPU2 が有するデータの等値化を行う第1等値化処理P
02 を稼働系等値化ユニットSGM1に依頼した時刻t0がセ
ットされている。相対時間ファイルΔT には、それぞ
れ、経過時間ファイルTiの時刻から等値化FM基準時間フ
ァイルTFM の時刻を差し引いたFM相対時間と、経過時間
ファイルTiの時刻から等値化PG基準時間ファイルTPG の
時刻を差し引いたPG相対時間と、が格納される。
FIG. 2 shows the above-mentioned time information file T and the elapsed time file Ti which are constructed in the control arithmetic unit MPU.
An equalized FM reference time file TFM, an equalized PG reference time file TPG, and a relative time file ΔT are shown. In one embodiment, the time information file T stores, as time information, a clock function for measuring time every 1 msec. The elapsed time file Ti is an area in which the time at the end of each event is read from the time information file T and set. The equalization FM reference time file TFM and the equalization PG reference time file TPG are areas for reading and setting the time at the start time of each event from the time information file T in order to obtain the relative time. In the reference time file TFM, the time when the control arithmetic unit MPU requests the equalization unit SGM to perform the equalization processing and starts the control arithmetic processing program is set, and in the equalization PG reference time file TPG, the size is set. Control calculation processing program P1 for click processing
~ Prior to the execution of P3, both control units MPU
1st equalization process P that equalizes the data of 1 and MPU2
The time t0 when 02 was requested to the active system equalization unit SGM1 is set. The relative time file ΔT includes the FM relative time obtained by subtracting the time of the equalization FM reference time file TFM from the time of the elapsed time file Ti, and the time of the equalization PG reference time file TPG of the elapsed time file Ti. The PG relative time minus the time is stored.

【0021】図3は等値化FMプログラム(P11〜P31)と、
等値化PGプログラムP4のフローチャートを示すものであ
る。図3の(A) において、等値化FMプログラム(P11〜P3
1)は、ステップS1で等値化FMプログラム(P11〜P31)が呼
び出されると、ステップS2移行して上述のFM相対時間を
求め、このFM相対時間が予め定められた等値化処理時間
30msecより大きいとき、ステップS3に移行して、稼働系
等値化ユニットSGM1に当該等値化処理P12(P22,P23)を依
頼し、ステップS4で、この等値化処理を依頼したときの
時刻t1(t2,t3) を等値化FM基準時間ファイルTFM にセッ
トし、ステップS5で、等値化FMプログラム(P11〜P31)の
処理を終了する。ステップS2でFM相対時間が等値化処理
時間30msecより小さいとき、無処理でステップS5に移行
して、等値化FMプログラム(P11〜P31)の処理を終了す
る。
FIG. 3 shows an equalization FM program (P11 to P31),
It is a flowchart of an equalization PG program P4. In (A) of Fig. 3, the equalization FM program (P11 to P3
1), when the equalization FM program (P11 to P31) is called in step S1, the above-mentioned FM relative time is obtained by moving to step S2, and this FM relative time is a predetermined equalization processing time.
When it is larger than 30 msec, the process proceeds to step S3, and the operating system equalization unit SGM1 is requested to perform the equalization process P12 (P22, P23), and the time when the equalization process is requested in step S4. t1 (t2, t3) is set in the equalized FM reference time file TFM, and in step S5, the processing of the equalized FM program (P11 to P31) ends. When the FM relative time is smaller than the equalization processing time of 30 msec in step S2, the process shifts to step S5 without processing and the processing of the equalization FM program (P11 to P31) ends.

【0022】図3の(B) において、等値化PGプログラム
P4は、ステップS6で等値化PGプログラムP4が呼び出され
ると、ステップS7に移行して上述のPG相対時間を求め、
このPG相対時間が予め定められた処理時間120msec より
小さいとき、ステップS8に移行して、稼働系等値化ユニ
ットSGM1に当該等値化処理P42 を依頼し、ステップS9
で、等値化PGプログラムP4の処理を終了する。
In FIG. 3B, the equalization PG program
P4, when the equalization PG program P4 is called in step S6, moves to step S7 to obtain the PG relative time described above,
When the PG relative time is shorter than the predetermined processing time 120 msec, the process proceeds to step S8, and the operating system equalization unit SGM1 is requested to perform the equalization process P42, and step S9 is performed.
Then, the processing of the equalization PG program P4 ends.

【0023】本発明においては、制御演算ユニットMPU
の制御演算処理プログラムP1,P2,P3を積極的に細分化
し、各制御演算処理プログラムP1,P2,P3が終了した時点
でFM相対時間を求め、この時間より等値化プログラムの
処理が終了したか否かを判定し、等値化プログラムが終
了していれば、次の等値化処理を実行させる。また、制
御演算ユニットMPU の1サイクル分の制御演算処理プロ
グラムが終了し、余裕時間が十分とれるときは、さらに
次の等値化処理を実行させる。このことにより、従来技
術では、1サイクル当たり1回の等値化処理しか実行さ
れず、等値化ユニットの利用時間効率が悪かったものを
改善し、等値化処理時間を増すことができる。
In the present invention, the control arithmetic unit MPU
The control calculation processing programs P1, P2, P3 of No. 1 were positively subdivided, and the FM relative time was calculated when each control calculation processing program P1, P2, P3 ended, and the processing of the equalization program ended from this time. It is determined whether or not, and if the equalization program is completed, the next equalization process is executed. Further, when the control arithmetic processing program for one cycle of the control arithmetic unit MPU is completed and the margin time is sufficient, the following equalization processing is further executed. As a result, in the conventional technique, only one equalization process is executed per cycle, and it is possible to improve the problem that the utilization time efficiency of the equalization unit is poor and increase the equalization process time.

【0024】図1の図示例の第1等値化処理は、二重化
された両制御装置間で、制御演算処理プログラムP1,P2,
P3を実行する上で制御出力に重要な影響を与えるデー
タ、例えば、制御入力信号、目標値、制御出力、重要な
シーケンス条件など、が全てここで、前処理として実行
されて、次に制御装置の制御演算処理プログラムP1,P2,
P3が実行される。また、第2等値化処理以降の等値化処
理は、制御装置のサイクルとは非同期のデータ、例え
ば、制御システムのシステムデータの等値化処理などに
開放することにより、制御システムの最適化と高信頼化
をより一層向上した二重化制御装置の等値化データの転
送方法を提供することができる。
In the first equalization processing of the illustrated example of FIG. 1, the control arithmetic processing programs P1, P2,
All the data that has a significant effect on the control output in carrying out P3, such as control input signals, target values, control outputs, important sequence conditions, etc., are all executed here as pre-processing and then the controller. Control processing program P1, P2,
P3 is executed. Further, the equalization process after the second equalization process is optimized for the control system by opening the data that is asynchronous with the cycle of the control device, for example, the equalization process of the system data of the control system. Thus, it is possible to provide a method for transferring equalized data of the duplexing control device, which is further improved in reliability.

【0025】尚実施例では、制御演算処理プログラムを
P1,P2,P3の3分割で示したが、この分割数に制約される
必要性はない。
In the embodiment, the control calculation processing program is
Although it is shown by dividing into P1, P2, and P3, there is no need to be restricted by the number of divisions.

【0026】[0026]

【発明の効果】本発明により、等値化ユニットを最適に
制御し、従来利用していなかった時間帯を利用して等値
化処理を行える様にしたので、等値化処理能力が増え、
この増えた等値化処理能力を制御システムのアプリケー
ションに開放することにより、制御システムのより一層
の高信頼化に役立てることができる。
According to the present invention, since the equalization unit is optimally controlled and the equalization processing can be performed by utilizing the time zone which has not been conventionally used, the equalization processing capacity is increased.
By opening this increased equalization processing capacity to the application of the control system, it is possible to make use of it for further improving the reliability of the control system.

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

【図1】本発明による一実施例の二重化制御装置の等値
化データの転送方法を説明する説明図
FIG. 1 is an explanatory diagram illustrating a method of transferring equalized data in a duplexing control device according to an embodiment of the present invention.

【図2】一実施例の使用ファイルを説明する説明図FIG. 2 is an explanatory diagram illustrating a file used in one embodiment.

【図3】等値化処理の実行可否を判定するフローチャー
トであり、図3の(A) は等値化FMプログラムのフローチ
ャート、図3の(B) は等値化PGプログラムのフローチャ
ート
3A and 3B are flowcharts for determining whether or not equalization processing can be executed. FIG. 3A is a flowchart of an equalization FM program, and FIG. 3B is a flowchart of an equalization PG program.

【図4】従来技術の二重化制御装置の構成と等値化デー
タの転送方法を説明する説明図
FIG. 4 is an explanatory diagram for explaining a configuration of a conventional duplication control device and a transfer method of equalized data.

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

1、2 制御装置 MPU1,MPU2 制御演算ユニット SGM1,SGM2 等値化ユニット P1,P2,P3 制御演算処理プログラム P4 等値化PGプログラム P02,P12,P22,P32,P42 等値化処理プログラム P11,P21,P31 等値化FMプログラム t0〜t4 基準時間 T 時間情報ファイル Ti 経過時間ファイル TFM 等値化FM基準時間ファイル TPG 等値化PG基準時間ファイル ΔT 相対時間ファイル 1, 2 Controller MPU1, MPU2 Control operation unit SGM1, SGM2 Equalization unit P1, P2, P3 Control operation processing program P4 Equalization PG program P02, P12, P22, P32, P42 Equalization processing program P11, P21 , P31 equalization FM program t0 to t4 reference time T time information file Ti elapsed time file TFM equalization FM reference time file TPG equalization PG reference time file ΔT relative time file

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】複数組に分割された制御演算処理プログラ
ムを備える制御演算ユニットと,等値化処理プログラム
を備えデータの等値化処理を行う等値化ユニットと,を
備えてなる2組の制御装置と、この制御装置の等値化ユ
ニット間の伝送を行う伝送路と、を備え、両制御装置を
二重化構成する二重化制御装置の等値化データの転送方
法において、 制御演算ユニットは、 時間情報ファイルと、経過時間ファイルと、等値化FM基
準時間ファイルと、相対時間ファイルと、等値化FMプロ
グラムと、を備え、 稼働系制御演算ユニットは、 該制御演算ユニットがサイクリックに処理する制御演算
処理プログラムの実行に先行して、両制御装置が有する
データの等値化を行う第1等値化処理を稼働系等値化ユ
ニットに依頼し、この依頼したときの時刻を等値化FM基
準時間ファイルにセットし、稼働系等値化ユニットは、
両等値化ユニット間でデータの等値化処理を行い、 前記第1等値化処理を稼働系等値化ユニットに依頼した
後、予め定められた一定時間経過後、前記複数組の制御
演算処理プログラムを順次起動して制御演算処理を行
い、 個別の各制御演算処理プログラムが終了した時点毎に、
前記等値化FMプログラムを起動し、この制御演算処理プ
ログラムが終了した時刻と等値化FM基準時間ファイルに
セットされた時刻との差よりFM相対時間を求め、このFM
相対時間が予め定められた等値化ユニットの等値化処理
時間より大きいとき、第2回目以降の当該等値化処理を
稼働系等値化ユニットに依頼し、両等値化ユニット間で
データの等値化処理を行い、この依頼したときの時間を
前記等値化FM基準時間ファイルにセットし、 このFM相対時間が予め定められた等値化処理時間より小
さいとき、当該等値化処理を依頼することなく、次の制
御演算処理プログラムを処理する、 ことを特徴とする二重化制御装置の等値化データの転送
方法。
1. Two sets of control arithmetic units each having a control arithmetic processing program divided into a plurality of sets, and an equalization unit having an equalization processing program for equalizing data. In the method of transferring equalized data of a duplicated control device, which comprises a control device and a transmission line for performing transmission between the equalization units of this control device, and which configures both control devices in a duplicated manner, An information file, an elapsed time file, an equalization FM reference time file, a relative time file, and an equalization FM program are provided, and the operating system control arithmetic unit processes the control arithmetic unit cyclically. Prior to the execution of the control arithmetic processing program, the operating system equalization unit is requested to perform the first equalization process for equalizing the data of both control devices, and the time when this request is made. Set in the equalization FM reference time file, the operating system equalization unit,
Data equalization processing is performed between the two equalization units, and the first equalization processing is requested to the operating system equalization unit, and after a predetermined time elapses, the plurality of sets of control calculations are performed. The processing programs are sequentially started to perform control calculation processing, and each time each individual control calculation processing program ends,
Start the above-mentioned equalization FM program, find the FM relative time from the difference between the time when this control arithmetic processing program ends and the time set in the equalization FM reference time file.
When the relative time is longer than the preset equalization processing time of the equalization unit, the operating system equalization unit is requested to perform the second and subsequent equalization processing, and the data between both equalization units is transferred. The equalization processing is performed, and the time when this request is made is set in the equalization FM reference time file. When this FM relative time is smaller than the predetermined equalization processing time, the equalization processing is performed. A method for transferring equalized data of a redundant control device, characterized in that the following control arithmetic processing program is processed without requesting.
【請求項2】請求項1に記載の二重化制御装置の等値化
データの転送方法において、 制御演算ユニットは、 等値化PG基準時間ファイルと、等値化PGプログラムと、
を備え、 稼働系制御演算ユニットは、 該制御演算ユニットがサイクリックに処理する制御演算
処理プログラムの実行に先行して、両制御装置が有する
データの第1等値化処理を稼働系等値化ユニットに依頼
したときの時刻を等値化PG基準時間ファイルにセット
し、 該制御演算ユニットがサイクリックに処理する1サイク
ル分の制御演算処理プログラムの処理が終了した時点
で、等値化PGプログラムを起動し、1サイクル分の制御
演算処理プログラム処理が終了した時刻と前記等値化PG
基準時間ファイルにセットされた時刻との差よりPG相対
時間を求め、このPG相対時間が制御演算ユニットに予め
定められた処理時間より小さいとき、等値化処理を稼働
系等値化ユニットに依頼し、両等値化ユニット間でデー
タの等値化処理を行い、 このPG相対時間が予め定められた処理時間より大きいと
き、当該等値化処理を依頼することなく、等値化ユニッ
トは無処理とする、 ことを特徴とする二重化制御装置の等値化データの転送
方法。
2. The method of transferring equalized data of a duplexed control device according to claim 1, wherein the control arithmetic unit comprises: an equalized PG reference time file, an equalized PG program,
The operating system control arithmetic unit prioritizes the execution of the control arithmetic processing program cyclically processed by the control arithmetic unit, and performs the first equalization processing of the data of both control devices on the operating system equalizer. The time when the unit is requested is set in the equalization PG reference time file, and when the processing of the control arithmetic processing program for one cycle cyclically processed by the control arithmetic unit is completed, the equalization PG program Is started, and the time when the control arithmetic processing program processing for one cycle ends and the equalization PG
The PG relative time is calculated from the difference from the time set in the reference time file, and when this PG relative time is smaller than the processing time preset in the control calculation unit, the equalization processing is requested to the operating system equalization unit. However, data equalization processing is performed between both equalization units, and when this PG relative time is longer than the predetermined processing time, the equalization processing is not requested and the equalization unit is not used. A method of transferring equalized data of a duplexing control device, characterized in that the processing is performed.
JP7077532A 1995-04-03 1995-04-03 Transfer method for equalization data on duplex controller Pending JPH08272636A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7077532A JPH08272636A (en) 1995-04-03 1995-04-03 Transfer method for equalization data on duplex controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7077532A JPH08272636A (en) 1995-04-03 1995-04-03 Transfer method for equalization data on duplex controller

Publications (1)

Publication Number Publication Date
JPH08272636A true JPH08272636A (en) 1996-10-18

Family

ID=13636599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7077532A Pending JPH08272636A (en) 1995-04-03 1995-04-03 Transfer method for equalization data on duplex controller

Country Status (1)

Country Link
JP (1) JPH08272636A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009797A (en) * 2006-06-30 2008-01-17 Fujitsu Ltd Uninterruptible memory replication method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008009797A (en) * 2006-06-30 2008-01-17 Fujitsu Ltd Uninterruptible memory replication method

Similar Documents

Publication Publication Date Title
JP3287203B2 (en) External storage controller and data transfer method between external storage controllers
JPH08272636A (en) Transfer method for equalization data on duplex controller
JPH0388019A (en) Data processor
JP2786110B2 (en) Competitive operation test method
JPH0220188B2 (en)
JPS6151258A (en) Inter-controller interface
JPH02144749A (en) Data processor
JPH0132540B2 (en)
JPH01166153A (en) Steal control system
JP2002132698A (en) Method for controlling data transfer and device for the same
JPS63316252A (en) Multiprocessor system
JP2000347885A (en) Duplex process controller
JPS6368955A (en) Input/output controller
JPS61122743A (en) Selecting system of file device
JPH06250732A (en) Programmable controller
JPH0442633A (en) Line control system
JPS60254264A (en) Control system of plural devices
JPS61226839A (en) Event processing system
JPS63228254A (en) Dma controller
JPH04291544A (en) Data check method in data transmission system
JPS6214869B2 (en)
JPS63305440A (en) Data processing system
JPS62221723A (en) Disk controller
JPH0139137B2 (en)
JPH05225119A (en) Signal level detection system