JP6672623B2 - Control system and its control device - Google Patents

Control system and its control device Download PDF

Info

Publication number
JP6672623B2
JP6672623B2 JP2015137320A JP2015137320A JP6672623B2 JP 6672623 B2 JP6672623 B2 JP 6672623B2 JP 2015137320 A JP2015137320 A JP 2015137320A JP 2015137320 A JP2015137320 A JP 2015137320A JP 6672623 B2 JP6672623 B2 JP 6672623B2
Authority
JP
Japan
Prior art keywords
control
control parameter
data
stored
storage 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.)
Active
Application number
JP2015137320A
Other languages
Japanese (ja)
Other versions
JP2017021498A (en
Inventor
吉晴 丸山
吉晴 丸山
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 JP2015137320A priority Critical patent/JP6672623B2/en
Publication of JP2017021498A publication Critical patent/JP2017021498A/en
Application granted granted Critical
Publication of JP6672623B2 publication Critical patent/JP6672623B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Safety Devices In Control Systems (AREA)

Description

本発明は、制御システムで使用される制御装置のデータのバックアップ方式に関する。   The present invention relates to a data backup method for a control device used in a control system.

監視制御システムは、様々な産業プラントにおいて使用されており、制御装置、監視操作装置、センサ/アクチュエータ等に対する入出力装置等によって成り立っている。
図5に、既存の監視制御システムの構成例を示す。
The monitoring control system is used in various industrial plants, and is composed of a control device, a monitoring operation device, an input / output device for a sensor / actuator, and the like.
FIG. 5 shows a configuration example of an existing monitoring and control system.

図示の制御システムは、制御装置110、監視操作装置120、入出力装置130等から成る。
制御装置110は、外部インターフェース(I/F)部111、制御演算部112、制御データ格納部113、プログラム格納部114等を有する。入出力装置130は、不図示の制御対象機器等と接続している。
The illustrated control system includes a control device 110, a monitoring operation device 120, an input / output device 130, and the like.
The control device 110 includes an external interface (I / F) unit 111, a control operation unit 112, a control data storage unit 113, a program storage unit 114, and the like. The input / output device 130 is connected to a device to be controlled (not shown).

制御装置110は、外部インターフェース(I/F)部111を介して、監視操作装置120、入出力装置130と接続しており、例えば入出力装置130から上記制御対象機器に係わるデータを随時取得する。このデータが制御データの一例である。制御データは、制御データ格納部113に格納される。   The control device 110 is connected to the monitoring operation device 120 and the input / output device 130 via the external interface (I / F) unit 111, and acquires data related to the control target device from the input / output device 130 as needed. . This data is an example of control data. The control data is stored in the control data storage unit 113.

監視操作装置120は、プラントの状態を監視・操作するため、制御装置110に対して設定データやコマンド等を送信し、あるいは制御装置110から制御データ等を取得する。   The monitoring and operating device 120 transmits setting data and commands to the control device 110 or acquires control data and the like from the control device 110 in order to monitor and operate the state of the plant.

制御装置110は、入出力装置130から収集した制御データ等を用いて、そのシステムに応じたプログラム(制御プログラム;例えばPLC用プログラム)によって演算を行い、演算結果等を入出力装置130に出力する。   The control device 110 performs an operation using a control data and the like collected from the input / output device 130 by a program (control program; for example, a PLC program) corresponding to the system, and outputs the operation result and the like to the input / output device 130. .

制御装置110には、この制御演算処理を高速に実行するために、制御データ格納部113として高速な記憶装置(メモリ)が実装される。また、プログラム(制御プログラム等)を保持するプログラム格納部114として、不揮発性記憶装置を備えている。   In the control device 110, a high-speed storage device (memory) is mounted as the control data storage unit 113 in order to execute the control arithmetic processing at high speed. In addition, a non-volatile storage device is provided as the program storage unit 114 that holds programs (such as control programs).

上述の通り、制御装置110を構成するには、高速なメモリと、プログラムを保持するための記憶装置が必要であるが、制御装置110の電力が絶たれた場合でも制御データやプログラムを保持するため、図6に示すように制御データ格納部113としてバッテリーバックアップ付きスタティックRAMを使用するケースがあった。   As described above, to configure the control device 110, a high-speed memory and a storage device for holding a program are required, but the control data and the program are held even when the power of the control device 110 is cut off. Therefore, in some cases, a static RAM with a battery backup is used as the control data storage unit 113 as shown in FIG.

近年では、図7に示すように、制御データを格納するメモリとして、高速ではあるがバッテリーバックアップができないダイナミックRAM(DRAM;高速揮発性記憶部144)を用いると共に、電源電圧低下検知部142を備える、図示の制御装置140のような構成も知られている。   In recent years, as shown in FIG. 7, as a memory for storing control data, a dynamic RAM (DRAM; high-speed volatile storage unit 144) which is high-speed but cannot be backed up by a battery is used, and a power supply voltage drop detection unit 142 is provided. Also, a configuration such as the illustrated control device 140 is known.

制御装置140には外部電源145から電力供給される。外部電源145は、例えば商用の交流電源であるが、ここではこれが直流電源に変換されて制御装置140に供給されるものとする。   The control device 140 is supplied with power from an external power supply 145. The external power supply 145 is, for example, a commercial AC power supply. Here, it is assumed that this is converted into a DC power supply and supplied to the control device 140.

電源電圧低下検知部142は、例えば、外部電源145から供給される直流電源の電圧を監視し、この電源電圧が例えば図8に示す“電圧低下検知電圧”未満となったら、電源断時の電圧の低下を検知したものとし、その旨を制御演算部141に通知する。   The power supply voltage drop detection unit 142 monitors, for example, the voltage of the DC power supply supplied from the external power supply 145, and when the power supply voltage becomes lower than the “voltage drop detection voltage” shown in FIG. Is detected, and the fact is notified to the control operation unit 141.

ここで、制御装置140は、上記直流電源の電圧が低下しても、この電圧が図8に示す“動作限界電圧”未満となるまでは、動作可能状態となっている。尚、上記“電圧低下検知電圧”は、図8に示すように、電源電圧の正常値より低いが、“動作限界電圧”よりは高い任意の値が、予め決められて設定されている。   Here, even if the voltage of the DC power supply is reduced, control device 140 is in an operable state until the voltage becomes less than “operation limit voltage” shown in FIG. As shown in FIG. 8, the "voltage drop detection voltage" is set to an arbitrary value which is lower than the normal value of the power supply voltage but higher than the "operation limit voltage".

そして、図8に示すように、電源断時の電圧低下の検知時から、動作出来なくなるまでに、言い換えれば動作限界電圧未満となるまでに、ある程度の時間が掛かる(例えば図示のメモリバックアップ時間がかかる)。換言すれば、電圧低下検知時点からの動作可能な時間が、メモリバックアップ時間であると言える。メモリバックアップ時間は、電源の特性によりゼロ‘0’ではないが、蓄電デバイスを設けることで長くすることができる。   Then, as shown in FIG. 8, it takes some time from the detection of the voltage drop when the power is turned off to the time when the operation becomes inoperable, in other words, until the voltage becomes lower than the operation limit voltage (for example, the memory backup time shown in the drawing). Take). In other words, it can be said that the operable time from the voltage drop detection point is the memory backup time. The memory backup time is not zero “0” due to the characteristics of the power supply, but can be lengthened by providing a power storage device.

尚、蓄電デバイスは、例えばコンデンサ等であるが、この例に限らない。上記蓄電デバイスは、上記電源電圧が正常のときにはこの電源によって充電され、電源電圧が低下すると放電状態となる。   The power storage device is, for example, a capacitor or the like, but is not limited to this example. The power storage device is charged by the power supply when the power supply voltage is normal, and is discharged when the power supply voltage decreases.

そして、メモリバックアップ時間の長さは、制御装置140に設けられた不図示の上記蓄電デバイスの容量によることになる。つまり、不図示の蓄電デバイスの容量が大きいほど、メモリバックアップ時間は長くなる。しかし、蓄電デバイスの容量が大きいほど、コスト高となる。   The length of the memory backup time depends on the capacity of the power storage device (not shown) provided in the control device 140. That is, the larger the capacity of the power storage device (not shown), the longer the memory backup time. However, the cost increases as the capacity of the power storage device increases.

何れにしても、制御演算部141は、上記メモリバックアップ時間内に、ダイナミックRAM(DRAM;高速揮発性記憶部144)の格納データを、フラッシュメモリ等の低速不揮発性記憶部143に退避させてデータを保存する必要がある。この為、メモリバックアップ時間は、“データ退避に要する時間”以上を確保する必要があり、蓄電デバイスの容量もそれに応じた大きさが必要となる。つまり、退避させるデータ量が多いほど、必要となる蓄電デバイスの容量も多く必要になり、以ってコスト高となる。   In any case, the control operation unit 141 saves the data stored in the dynamic RAM (DRAM; high-speed volatile storage unit 144) to the low-speed nonvolatile storage unit 143 such as a flash memory during the memory backup time, and Need to save. For this reason, it is necessary to secure the memory backup time longer than “the time required for data evacuation”, and the capacity of the power storage device needs to be large accordingly. In other words, the larger the amount of data to be saved, the greater the required capacity of the power storage device, and the higher the cost.

尚、上記蓄電デバイスは、放電時には例えば制御装置140全体に電力供給するものであるが、この例に限らず、上記データ退避を実現する為に必要な構成(例えば制御演算部141等)にのみ電力供給する構成であっても構わない。   Note that the power storage device supplies power to, for example, the entire control device 140 at the time of discharging, but is not limited to this example, and is provided only for a configuration (for example, the control operation unit 141 or the like) necessary to realize the data saving. A configuration for supplying power may be used.

尚、上記電源断後、制御装置140を起動する際の初期化処理として、上記フラッシュメモリ等の不揮発性記憶部143に記憶されている制御データやプログラムを、高速揮発性記憶部144に転送する。運用中は、高速揮発性記憶部144に記憶されているプログラムや制御データを用いて、制御処理を実行することになる。   After the power is turned off, control data and programs stored in the nonvolatile storage unit 143 such as the flash memory are transferred to the high-speed volatile storage unit 144 as initialization processing when the control device 140 is started. . During operation, control processing is executed using programs and control data stored in the high-speed volatile storage unit 144.

図7の構成の場合、制御装置は図9に示す3つのモードで動作する。つまり、電源投入またはリセット直後の初期化モードと、通常の制御演算を行う運用モードと、電源低下を検知した時の電源断モードである。   In the case of the configuration of FIG. 7, the control device operates in the three modes shown in FIG. That is, there are an initialization mode immediately after power-on or reset, an operation mode for performing normal control calculation, and a power-off mode when a power drop is detected.

初期化モードでは、低速不揮発性記憶部143(フラッシュメモリ等)から高速揮発性記憶部144(DRAM等)へ、プログラム、制御データをコピーする。
運用モードでは、高速揮発性記憶部144のプログラムと制御データを用いて、制御演算を行う。
In the initialization mode, programs and control data are copied from the low-speed nonvolatile storage unit 143 (flash memory or the like) to the high-speed volatile storage unit 144 (DRAM or the like).
In the operation mode, a control operation is performed using a program and control data in the high-speed volatile storage unit 144.

そして、電源断モードでは高速揮発性記憶部144から低速不揮発性記憶部143に制御データをバックアップ(退避)する。制御データには、例えば制御対象機器の状態(温度、圧力、動作回数等)などのように運用中に随時変わるデータも含まれる場合が多いので、電源断時のデータ(最新のデータ)を低速不揮発性記憶部143に退避させる必要がある。一方、その意味でプログラムは基本的に変わらないのでバックアップ(退避)する必要はない。   Then, in the power-off mode, the control data is backed up (evacuated) from the high-speed volatile storage unit 144 to the low-speed nonvolatile storage unit 143. The control data often includes data that changes at any time during operation, such as the state of the controlled device (temperature, pressure, number of operations, etc.). It is necessary to save the data to the nonvolatile storage unit 143. On the other hand, there is no need to back up (save) the program in that sense because it is basically unchanged.

また、従来技術として、例えば、特許文献1に開示されている技術が、知られている。
特許文献1の発明は、プログラマブルコントローラに接続された機器に対して簡単な操作、最低限の機材でバックアップ処理を可能にするものである。
Further, as a conventional technique, for example, a technique disclosed in Patent Document 1 is known.
The invention of Patent Literature 1 enables a backup operation to be performed on a device connected to a programmable controller with a simple operation and with a minimum number of devices.

特許文献1の発明は、プログラマブルコントローラおよびその周辺機器を含むプログラマブルコントローラシステムにおけるバックアップ処理方法において、プログラマブルコントローラシステムに含まれる複数のバックアップ対象装置に対して該複数のバックアップ対象装置のバックアップデータを一括格納可能な記憶媒体を設ける。そして、この記憶媒体が設けられたバックアップ対象装置上のスイッチにより設定したバックアップ対象範囲にしたがって、上記複数のバックアップ対象装置に対するバックアップ処理をこの記憶媒体を用いて実行する。   The invention of Patent Literature 1 is a backup processing method in a programmable controller system including a programmable controller and its peripheral device, and collectively stores backup data of the plurality of backup target devices in a plurality of backup target devices included in the programmable controller system. Provide a possible storage medium. Then, according to the backup target range set by a switch on the backup target device provided with the storage medium, backup processing for the plurality of backup target devices is executed using the storage medium.

特開2002−297207号公報JP 2002-297207 A

上記図7の構成の場合、上述した電源断時の低速不揮発性記憶部143へのデータの退避は、退避するデータの量に応じて“データ退避に要する時間”が掛かることになり、この“データ退避に要する時間”以上の上記バックアップ時間を確保する必要がある。   In the case of the configuration shown in FIG. 7, saving the data to the low-speed nonvolatile storage unit 143 when the power is turned off requires "time required for data saving" according to the amount of data to be saved. It is necessary to secure the above backup time longer than "the time required for data backup".

そのため電源断後でも短時間の動作を可能とする蓄電デバイスを、制御装置140内に設ける必要があるが、当然、退避するデータ量が多くなれば、当該データを退避する時間が長くなるため蓄電デバイスの容量も増大させる必要があり、その分、コストも増大する。   Therefore, it is necessary to provide a power storage device capable of operating for a short time even after the power is turned off in the control device 140. Naturally, if the amount of data to be saved is large, the time for saving the data becomes long, so It is necessary to increase the capacity of the device, and the cost increases accordingly.

また、制御装置では、入出力装置により収集されたプラント(制御対象機器)の制御データだけでなく、監視操作装置より入力された制御パラメータ(PID演算のゲイン、目標値、時定数等)も使用して制御演算を行うが、演算を高速に行う為には、運用中はこの制御パラメータも高速揮発性記憶部に置く必要がある。   The control device uses not only the control data of the plant (control target device) collected by the input / output device, but also the control parameters (gain, target value, time constant, etc. of PID calculation) input from the monitoring and operation device. In order to perform the calculation at high speed, it is necessary to store these control parameters in the high-speed volatile storage unit during operation.

更に、運用中に、制御パラメータが更新される場合もある。これは、例えば、監視操作装置から新たな制御パラメータが送信されてきたら、これを高速揮発性記憶部に上書き記憶することで、高速揮発性記憶部の制御パラメータを更新する。これによって、その後は、新たな制御パラメータを用いて演算実行することになる。また、この場合には、上記電源断モードの処理では、制御データだけでなく制御パラメータも、低速不揮発性記憶部にバックアップ(退避)する必要があり、その分、退避させるデータの量が増大し以って上記“データ退避に要する時間”が増大することになる。これに対応する為に、上記バックアップ時間を増大させる必要があり、以って蓄電デバイスの容量が増大し、その分のコストも増大する。   Furthermore, control parameters may be updated during operation. For example, when a new control parameter is transmitted from the monitoring operation device, the control parameter in the high-speed volatile storage unit is updated by overwriting and storing the new control parameter in the high-speed volatile storage unit. As a result, after that, the calculation is executed using the new control parameters. In this case, in the processing in the power-off mode, not only the control data but also the control parameters need to be backed up (saved) in the low-speed nonvolatile storage unit, and the amount of saved data increases accordingly. As a result, the "time required for data saving" increases. In order to cope with this, it is necessary to increase the backup time, thereby increasing the capacity of the power storage device and the cost accordingly.

本発明の課題は、データのバックアップ時間の増大を防ぎ、以って蓄電デバイスの容量の増大を防ぐことができる制御装置等を提供することである。   An object of the present invention is to provide a control device or the like that can prevent an increase in data backup time and thereby prevent an increase in the capacity of a power storage device.

本発明の制御装置は、与えられた制御パラメータと制御対象機器から随時得られる制御データとを用いて所定のプログラムを実行し、前記制御対象機器を制御する制御装置であって、下記の各構成を有する。   The control device of the present invention is a control device that executes a predetermined program using given control parameters and control data obtained as needed from the control target device, and controls the control target device. Having.

・前記プログラムと、前記制御データと、前記制御パラメータとを記憶する不揮発性記憶手段;
・前記制御装置を動作させる電源の電圧の低下を検知する電源電圧低下検知手段;
・前記電源の電圧の低下時に放電することで前記制御装置に一時的に電力供給する蓄電手段;
・制御手段:
A non-volatile storage unit for storing the program, the control data, and the control parameters;
Power supply voltage drop detection means for detecting a voltage drop of a power supply for operating the control device;
Power storage means for temporarily supplying power to the control device by discharging when the voltage of the power supply drops;
・ Control means:

そして、該制御手段は、下記の各手段(処理機能部)を有する。
・起動時に、前記不揮発性記憶手段に記憶されている前記プログラム、前記制御データ、及び前記制御パラメータの全てもしくは1部分を、揮発性記憶手段にコピーする初期化手段;
・運用中、前記揮発性記憶手段に記憶された前記プログラム、前記制御データ、及び前記制御パラメータを用いて前記制御対象機器を制御するための演算処理を実行すると共に、前記制御対象機器から随時得られる制御データによって、前記揮発性記憶手段に記憶された制御データを更新する制御実行手段;
・運用中の任意のときに新たな制御パラメータが与えられた場合、該新たな制御パラメータによって、前記揮発性記憶手段に記憶された制御パラメータを更新すると共に前記不揮発性記憶手段に記憶された制御パラメータも更新する制御パラメータ更新手段;
・前記電源電圧低下検知手段によって前記電源電圧低下が検知された場合、前記揮発性記憶手段に記憶されている前記プログラム及び前記制御パラメータを前記不揮発性記憶手段に退避させずに、前記揮発性記憶手段に記憶されている前記制御データを前記不揮発性記憶手段に退避させる電源断処理手段
The control unit has the following units (processing function units).
Initialization means for copying all or a part of the program, the control data, and the control parameters stored in the nonvolatile storage means to the volatile storage means at the time of startup;
During operation, while executing an arithmetic process for controlling the controlled device using the program, the control data, and the control parameter stored in the volatile storage unit, the calculated process is obtained from the controlled device at any time. the control data is a control execution means for updating the control data stored in the volatile memory means;
When a new control parameter is given at any time during operation, the control parameter stored in the volatile storage unit is updated by the new control parameter, and the control stored in the nonvolatile storage unit is updated. Control parameter updating means for also updating parameters;
If the power supply voltage drop is detected by the power supply voltage drop detection means, the volatile storage is performed without saving the program and the control parameters stored in the volatile storage means to the nonvolatile storage means. power-off processing means Ru is evacuated before Symbol nonvolatile storage means said control data stored in the unit.

本発明の制御装置等によれば、運用中には制御データと制御パラメータを揮発性記憶部に記憶させて演算実行する制御装置に関して、バックアップ時間の増大を防ぎ、以って蓄電デバイスの容量の増大を防ぐことができる。   According to the control device of the present invention, for a control device that stores control data and control parameters in a volatile storage unit and performs an arithmetic operation during operation, it is possible to prevent an increase in backup time and thereby to reduce the capacity of the power storage device. An increase can be prevented.

本例の制御システムの構成図である。It is a block diagram of the control system of this example. 図1の制御システムの具体例を示す図である。FIG. 2 is a diagram illustrating a specific example of the control system in FIG. 1. 制御装置の構成の具体例である。It is a specific example of a configuration of a control device. (a)〜(c)は、図3の構成とする場合の制御装置の処理フローチャート図である。(A)-(c) is a processing flowchart figure of the control apparatus in the case of making it the structure of FIG. 既存の監視制御システムの構成例を示す図である。It is a figure showing the example of composition of the existing supervisory control system. バッテリーバックアップ付きSRAMを使用する構成例である。This is a configuration example using an SRAM with a battery backup. DRAMと電源電圧低下検知装置を備える構成例である。1 is a configuration example including a DRAM and a power supply voltage drop detection device. メモリバックアップ時間について説明する為の図である。It is a figure for explaining memory backup time. 3つのモードについて説明する為の図である。FIG. 7 is a diagram for describing three modes.

以下、図面を参照して、本発明の実施の形態について説明する。
図1は、本例の制御システムの構成図である。
尚、本例の制御システムは、PLC(プログラマブルコントローラ)システムであってもよいし、分散制御システム(distributed control system;DCS)であってもよい。図示の制御システムは、制御装置10、監視操作装置2、入出力装置3等から成る。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a configuration diagram of the control system of the present example.
Note that the control system of this example may be a PLC (programmable controller) system or a distributed control system (DCS). The illustrated control system includes a control device 10, a monitoring operation device 2, an input / output device 3, and the like.

制御装置10は、外部電源5から電力供給を受けている。外部電源5は、例えば商用電源(交流)を直流に変換して制御装置10に供給する。例えば停電等によって、外部電源5からの制御装置10への電力供給が途絶える場合があり得る。   The control device 10 receives power supply from the external power supply 5. The external power supply 5 converts, for example, commercial power (AC) to DC and supplies the DC to the control device 10. For example, the power supply from the external power supply 5 to the control device 10 may be interrupted due to a power failure or the like.

制御装置10は、例えば一例としてはプログラマブルコントローラ本体(CPUモジュール等)であるが、上記の通り、この例に限らない。制御装置10は、監視操作装置2や入出力装置3と、通信線により接続されている。   The control device 10 is, for example, a programmable controller main body (CPU module or the like) as an example, but is not limited to this example as described above. The control device 10 is connected to the monitoring operation device 2 and the input / output device 3 via a communication line.

監視操作装置2や入出力装置3は、従来と同じであってよく、特に詳細には説明しないが、簡単に説明するならば、入出力装置3は、不図示の制御対象機器と接続されており、例えば制御対象機器の状態データ(温度、圧力、計数など)を随時収集する。また、監視操作装置2は、例えばプログラマブル表示器等であり、上記制御対象機器の状態をモニタリングしたり、ユーザが任意の設定を行えるものである。   The monitoring operation device 2 and the input / output device 3 may be the same as those in the related art, and will not be described in detail. However, for simplicity, the input / output device 3 is connected to a control target device (not shown). For example, state data (temperature, pressure, count, etc.) of the control target device is collected as needed. Further, the monitoring operation device 2 is, for example, a programmable display device or the like, which can monitor the state of the control target device and can perform arbitrary setting by a user.

上記状態データが上記制御データの一例であり、上記設定データが上記制御パラメータの一例であるが、これらの例に限らない。
制御装置10は、外部インターフェース(I/F)部11、制御演算部12、低速不揮発性記憶部13、高速揮発性記憶部14、電源電圧低下検知部15の各構成を有する。制御演算部12は、例えば、CPU/MPU等の演算ユニット等からなるが、この例に限らない。
The state data is an example of the control data, and the setting data is an example of the control parameter, but is not limited to these examples.
The control device 10 has the following components: an external interface (I / F) unit 11, a control operation unit 12, a low-speed nonvolatile storage unit 13, a high-speed volatile storage unit 14, and a power supply voltage drop detection unit 15. The control operation unit 12 includes, for example, an operation unit such as a CPU / MPU, but is not limited to this example.

低速不揮発性記憶部13は、リード・ライト可能な不揮発性メモリであり、例えばフラッシュメモリであるが、この例に限らない。高速揮発性記憶部14は、バッテリーバックの無い揮発性メモリであり、例えばダイナミックRAM(DRAM)であるが、この例に限らない。尚、“低速”、“高速”は、相対的なものと考えても構わない。つまり、高速揮発性記憶部14は、少なくとも低速不揮発性記憶部13に比べれば、高速でリード/ライト動作が行えるものである。   The low-speed nonvolatile storage unit 13 is a readable / writable nonvolatile memory, for example, a flash memory, but is not limited to this example. The high-speed volatile storage unit 14 is a volatile memory without a battery back and is, for example, a dynamic RAM (DRAM), but is not limited to this example. Note that “low speed” and “high speed” may be considered to be relative. That is, the high-speed volatile storage unit 14 can perform a read / write operation at a higher speed than at least the low-speed nonvolatile storage unit 13.

制御演算部12(上記CPU/MPU等)は、例えば予め所定のアプリケーションプログラムが記憶された不図示の内蔵メモリ等も有しており、上記CPU/MPU等がこのアプリケーションプログラムを実行することで、以下に説明する制御装置10(制御演算部12)の各種処理機能が実現される。尚、このアプリケーションプログラムは、後述するプログラム格納領域13a、14aに格納されるプログラム(制御プログラム)とは異なるものであり、制御装置10の動作を実現する為のプログラムである。尚、このアプリケーションプログラムは、上記の例に限らず、例えば低速不揮発性記憶部13に予め記憶されていてもよい。   The control operation unit 12 (the CPU / MPU or the like) also has, for example, an internal memory (not shown) in which a predetermined application program is stored in advance, and the CPU / MPU or the like executes the application program to execute the application program. Various processing functions of the control device 10 (control operation unit 12) described below are realized. Note that this application program is different from a program (control program) stored in the program storage areas 13a and 14a described later, and is a program for realizing the operation of the control device 10. The application program is not limited to the above example, and may be stored in the low-speed nonvolatile storage unit 13 in advance, for example.

また、制御装置10には、更に図示しない蓄電デバイス(蓄電手段)が、備えられている。この蓄電デバイスは、上述したように、例えばコンデンサ等であり、バッテリーに比べて、放電時間は短いが、安価である。尚、バッテリーも蓄電デバイスの一種であるとする考え方もあるが、ここでは、バッテリーは蓄電デバイスには含まれないものとする。   Further, the control device 10 is further provided with a power storage device (power storage means) not shown. As described above, this power storage device is, for example, a capacitor, and has a shorter discharge time than a battery, but is inexpensive. Note that there is a concept that a battery is also a kind of a power storage device, but here, the battery is not included in the power storage device.

上記コンデンサ等の蓄電デバイスによって、上述したように、例えば停電等の何等かの理由で外部電源5が喪失した場合でも、しばらくの間(上記メモリバックアップ時間の間)、制御装置10が動作可能な状態が続き(電力供給が続行されることになり)、その間に上述したデータバックアップ(退避)が行われることになる。既に述べたように、上記メモリバックアップ時間の長さは、蓄電デバイスの容量によるものであり、容量が大きいほど、メモリバックアップ時間が長くなる。   As described above, even when the external power supply 5 is lost for some reason, such as a power failure, the control device 10 can operate for a while (during the memory backup time) by the power storage device such as the capacitor. The state continues (power supply will be continued), during which the data backup (evacuation) described above will be performed. As described above, the length of the memory backup time depends on the capacity of the power storage device, and the larger the capacity, the longer the memory backup time.

尚、上述したように、蓄電デバイスは、一例としてはコンデンサであるが、この例に限らない。また、蓄電デバイスは、例えば、外部電源5によって充電され、外部電源5が喪失した場合(電圧低下した場合)には放電して制御装置10に電力供給する。   Note that, as described above, the power storage device is a capacitor as an example, but is not limited to this example. The power storage device is charged by, for example, the external power supply 5, and discharges and supplies power to the control device 10 when the external power supply 5 is lost (when the voltage drops).

本手法では、退避させるデータ量を削減することができ、それによって上記“データ退避に要する時間”を短縮でき、以って上記メモリバックアップ時間を短縮でき、以って上記蓄電デバイスの容量を低減させることができ、以ってコスト削減を図ることができる。詳しくは後述する。   In this method, the amount of data to be saved can be reduced, whereby the “time required for data saving” can be reduced, and thus the memory backup time can be shortened, thereby reducing the capacity of the power storage device. And cost reduction can be achieved. Details will be described later.

外部インターフェース(I/F)部11は、従来と同じであってよく、制御装置10は、外部インターフェース部11により、通信線を介して、監視操作装置2や入出力装置3との通信(データ送受信)を行う。電源電圧低下検知部15も、従来と同じであって良く、制御演算部12は、電源電圧低下検知部15によって電源電圧低下が検知されると(電源電圧が上記電圧低下検知電圧を下回ったことが検知されると)、上記電源断モードに移行する。   The external interface (I / F) unit 11 may be the same as the conventional one, and the control device 10 uses the external interface unit 11 to communicate with the monitoring operation device 2 and the input / output device 3 via the communication line (data). Transmission and reception). The power supply voltage drop detection unit 15 may be the same as the conventional one. When the power supply voltage drop detection unit 15 detects the power supply voltage drop (the power supply voltage falls below the voltage drop detection voltage) Is detected), the mode shifts to the power-off mode.

低速不揮発性記憶部13には、プログラム格納領域13a、制御データ格納領域13b、監視操作データ格納領域13cの各記憶領域が設けられる。プログラム格納領域13aには、プログラム(制御プログラムなど)が格納される。制御データ格納領域13bには、制御データが格納される。監視操作データ格納領域13cには、監視操作データが、格納される。尚、監視操作データは、上記制御パラメータ(一例としては、PID演算のゲイン、目標値、時定数等)に相当すると見做して構わない。   The low-speed nonvolatile storage unit 13 includes storage areas for a program storage area 13a, a control data storage area 13b, and a monitoring operation data storage area 13c. The program storage area 13a stores a program (such as a control program). Control data is stored in the control data storage area 13b. The monitoring operation data storage area 13c stores monitoring operation data. Note that the monitoring operation data may be regarded as corresponding to the above control parameters (for example, a gain, a target value, a time constant, and the like of the PID calculation).

低速不揮発性記憶部13は、不揮発性メモリ等であるので、電源断状態であっても、データは消失せずに保存される。一方、高速揮発性記憶部14は、揮発性メモリ等であるので、電源断状態になるとデータは消失する。この為、電源電圧低下が検知されると、動作可能状態である間に、高速揮発性記憶部14の格納データを低速不揮発性記憶部13に退避させる必要がある。そして、本手法では制御データのみを退避させれば済む。   Since the low-speed nonvolatile storage unit 13 is a nonvolatile memory or the like, data is stored without being lost even when the power is off. On the other hand, since the high-speed volatile storage unit 14 is a volatile memory or the like, data is lost when the power is turned off. For this reason, when the power supply voltage drop is detected, it is necessary to save the data stored in the high-speed volatile storage unit 14 to the low-speed nonvolatile storage unit 13 during the operable state. In this method, only the control data needs to be saved.

高速揮発性記憶部14には、運用中に、上記プログラム(上記制御プログラムなど)、制御データ、監視操作データが記憶される。制御演算部12は、運用中、これら高速揮発性記憶部14に記憶されているプログラム、制御データ、監視操作データを用いて、制御対象機器の制御処理等の為の演算を行うことになる。   The high-speed volatile storage unit 14 stores the above-mentioned program (the above-mentioned control program, etc.), control data, and monitoring operation data during operation. During operation, the control calculation unit 12 performs calculations for control processing of the control target device using the programs, control data, and monitoring operation data stored in the high-speed volatile storage unit 14.

その為に、制御演算部12は、起動時(初期化モード)に、上記低速不揮発性記憶部13に記憶されている上記プログラム、制御データ、監視操作データを読み出して、それぞれ、高速揮発性記憶部14の該当する記憶領域に書き込む。ここで、高速揮発性記憶部14には、プログラム格納領域14a、制御データ格納領域14b、監視操作データ格納領域14cの各記憶領域が設けられる。上記プログラムはプログラム格納領域14aに、制御データは制御データ格納領域14bに、監視操作データは監視操作データ格納領域14cに、それぞれ、書き込まれることになる。   For this purpose, the control operation unit 12 reads out the program, control data, and monitoring operation data stored in the low-speed nonvolatile storage unit 13 at the time of startup (initialization mode), and respectively reads the high-speed volatile storage. The data is written to the corresponding storage area of the unit 14. Here, the high-speed volatile storage section 14 is provided with storage areas of a program storage area 14a, a control data storage area 14b, and a monitoring operation data storage area 14c. The program is written in the program storage area 14a, the control data is written in the control data storage area 14b, and the monitoring operation data is written in the monitoring operation data storage area 14c.

そして、通常時(運用モード)中は、制御演算部12は、プログラム格納領域14aのプログラムを実行して制御演算を行うが、その際、制御データ格納領域14bの制御データと、監視操作データ格納領域14cの監視操作データを用いて、制御演算を行う。また、この制御演算結果や上記入出力装置3の収集データ等(制御データ)を、制御データ格納領域14bに書き込むことで、制御データ格納領域14bに格納される制御データを更新する。制御演算部12は、例えば、入出力装置3を介して、不図示の制御対象機器の現在の状態等を示すデータ(温度、圧力、カウント数)を随時取得して、これを制御データとして制御データ格納領域14bに記憶する。   During normal operation (operation mode), the control operation unit 12 executes a program in the program storage area 14a to perform control operation. At this time, control data in the control data storage area 14b and monitoring operation data storage The control operation is performed using the monitoring operation data in the area 14c. Further, the control data stored in the control data storage area 14b is updated by writing the control calculation result and the collected data of the input / output device 3 (control data) to the control data storage area 14b. The control calculation unit 12 acquires data (temperature, pressure, count number) indicating a current state of a control target device (not shown) at any time via the input / output device 3 and controls this as control data. The data is stored in the data storage area 14b.

従って、上記起動時(初期化モード)の処理後、一度でも制御データ格納領域14bに格納される制御データが更新されたならば、その後は、制御データ格納領域13bに格納される制御データと、制御データ格納領域14bに格納される制御データとは、同一では無くなることになる。基本的には、制御データ格納領域13bに古い制御データが格納され、制御データ格納領域14bには最新の制御データが格納された状態となる。   Therefore, if the control data stored in the control data storage area 14b is updated at least once after the processing at the time of startup (initialization mode), thereafter, the control data stored in the control data storage area 13b is: The control data stored in the control data storage area 14b is not the same as the control data. Basically, old control data is stored in the control data storage area 13b, and the latest control data is stored in the control data storage area 14b.

高速揮発性記憶部14に記憶されているデータは、電源OFFにより消去される。この為、上述したメモリバックアップ時間中に、制御データ格納領域14bに格納されている最新の制御データを、制御データ格納領域13bに退避させる必要がある。これによって、次の起動時には最新の制御データを用いて制御開始されることになり、問題なく制御が引き継がれることになる。   The data stored in the high-speed volatile storage unit 14 is erased by turning off the power. Therefore, it is necessary to save the latest control data stored in the control data storage area 14b to the control data storage area 13b during the memory backup time described above. As a result, at the next start-up, the control is started using the latest control data, and the control is taken over without any problem.

その為に、電源電圧低下検知部15は、随時、外部電源5の電源電圧を監視し、所定の電圧低下を検知したら、制御演算部12に電圧低下を通知する。通知を受けた制御演算部12は、電源断モードに移行し、制御データ格納領域14bの制御データを、制御データ格納領域13bに退避させて保存する。尚、言うまでも無いが、低速不揮発性記憶部13の格納データは、電源OFF状態でも消失しない。   For this purpose, the power supply voltage drop detection unit 15 monitors the power supply voltage of the external power supply 5 as needed, and when detecting a predetermined voltage drop, notifies the control operation unit 12 of the voltage drop. Upon receiving the notification, the control operation unit 12 shifts to the power-off mode, and saves the control data in the control data storage area 14b in the control data storage area 13b. Needless to say, the data stored in the low-speed nonvolatile storage unit 13 is not lost even when the power is off.

ここで、上記の通り、制御装置10では、入出力装置3により収集された制御対象(プラント等)の制御データだけでなく、監視操作装置2より入力された制御パラメータ(監視操作データ;PID演算のゲイン、目標値、時定数等)も使用して制御演算を行うが、演算を高速に行うため、この制御パラメータも高速揮発性記憶部14に置く必要がある。   Here, as described above, in the control device 10, not only the control data of the control target (plant or the like) collected by the input / output device 3 but also the control parameters (monitoring operation data; PID calculation) input from the monitoring operation device 2 The control calculation is also performed using the gain, the target value, the time constant, etc.). However, in order to perform the calculation at high speed, it is necessary to store the control parameter in the high-speed volatile storage unit 14 as well.

よって、装置の起動時(初期化モード)に低速不揮発性記憶部13から高速揮発性記憶部14にコピーする必要がある。しかしながら、監視操作データは、必ずしも電源断時(電源断モード)にバックアップする必要はない。   Therefore, it is necessary to copy from the low-speed nonvolatile storage unit 13 to the high-speed volatile storage unit 14 at the time of starting the apparatus (initialization mode). However, the monitoring operation data does not necessarily need to be backed up when the power is turned off (power-off mode).

本手法では、制御パラメータは制御データとは記憶領域を分けて管理し、電源断時(電源断モード)には、制御データはバックアップするが、制御パラメータはバックアップしないようにする。その一方で、運用モード中に監視操作装置2から新たな制御パラメータの書き込みが行われた際に、すなわち制御パラメータの更新時に、この新たな制御パラメータを、高速揮発性記憶部14に格納すると共に、低速不揮発性記憶部13にも格納する。これは、制御パラメータの格納領域である上記監視操作データ格納領域13c、監視操作データ格納領域14cに、新たな制御パラメータが格納されることになる。換言すれば、監視操作データに関しては、バックアップ処理を、電源断時ではなく、その更新時に行うようにする。   In this method, the control parameters are managed separately from the control data in the storage area, and when the power is turned off (power-off mode), the control data is backed up but the control parameters are not backed up. On the other hand, when a new control parameter is written from the monitoring operation device 2 during the operation mode, that is, when the control parameter is updated, the new control parameter is stored in the high-speed volatile storage unit 14 and , And also stored in the low-speed nonvolatile storage unit 13. This means that new control parameters are stored in the monitoring operation data storage area 13c and the monitoring operation data storage area 14c, which are storage areas for control parameters. In other words, with respect to the monitoring operation data, the backup processing is performed not when the power is turned off, but when the power supply is updated.

これによって、電源断時に監視操作データをバックアップする必要がなくなる分だけ、電源断時のバックアップデータ量を低減することが可能である。つまり、電源断時のバックアップデータ量を、制御データのデータ量のみとすることができる。   This makes it possible to reduce the amount of backup data when the power is turned off, as much as there is no need to back up the monitoring operation data when the power is turned off. That is, the amount of backup data when the power is turned off can be limited to the amount of control data.

上記処理は、例えば、外部インターフェース(I/F)部11が実行してもよいし、制御演算部12が実行してもよい。監視操作装置2は、例えば、上記新たな制御パラメータを、パラメータ更新要求と共に送信し、これを受信した外部インターフェース(I/F)部11は、例えば、当該新たな制御パラメータを監視操作データ格納領域14cに上書き格納すると共に、低速不揮発性記憶部13の該当領域(監視操作データ格納領域13c)にも上書き格納する。あるいは、外部インターフェース(I/F)部11は、上記監視操作装置2からの送信データを制御演算部12に渡し、制御演算部12が当該新たな制御パラメータを監視操作データ格納領域14cと監視操作データ格納領域13cに上書き格納するようにしてもよい。   The above process may be executed by, for example, the external interface (I / F) unit 11 or the control calculation unit 12. The monitoring operation device 2 transmits, for example, the new control parameter together with the parameter update request, and the external interface (I / F) unit 11 receiving the new control parameter stores the new control parameter, for example, in the monitoring operation data storage area. At the same time, the data is overwritten and stored in the corresponding area (monitoring operation data storage area 13c) of the low-speed nonvolatile storage unit 13 as well. Alternatively, the external interface (I / F) unit 11 passes the transmission data from the monitoring operation device 2 to the control calculation unit 12, and the control calculation unit 12 stores the new control parameter in the monitoring operation data storage area 14c and performs the monitoring operation. The data may be overwritten and stored in the data storage area 13c.

ここで、図2に、図1の制御システムの具体例を示す。
図2の制御システムは、PLCのシステムであり、PLCのコントローラ30、HCI装置40、I/Oモジュール50等から成る。HCI装置40、I/Oモジュール50は、それぞれ、任意の通信線を介して、コントローラ30に接続されている。
Here, FIG. 2 shows a specific example of the control system of FIG.
The control system in FIG. 2 is a PLC system, and includes a PLC controller 30, an HCI device 40, an I / O module 50, and the like. The HCI device 40 and the I / O module 50 are each connected to the controller 30 via an arbitrary communication line.

HCI装置40は、例えばプログラマブル表示器等であり、ユーザが任意の設定を行なったり、制御対象のモニタリングを行うことができる、既存の装置である。ユーザが、HCI装置40上で任意の設定値を入力すると、この設定値がコントローラ30に転送されて、コントローラ30側に記憶される。この設定値が、上記制御パラメータ(監視操作データ)に相当するものである。   The HCI device 40 is, for example, a programmable display device or the like, and is an existing device that allows a user to make arbitrary settings and monitor a control target. When the user inputs an arbitrary set value on the HCI device 40, the set value is transferred to the controller 30 and stored in the controller 30. This set value corresponds to the control parameter (monitoring operation data).

I/Oモジュール50は、各種制御対象機器51と接続しており、例えば定周期でこれら制御対象機器51の状態データ等を収集して、これを例えばコントローラ30が備えるI/Oメモリ32に格納する。このI/Oメモリ32が、高速揮発性記憶部14に相当する構成であってもよいし、I/Oメモリ32とは別に高速揮発性記憶部14が設けられた構成であっても良い。後者の構成の場合、コントローラ30は、例えば定周期で、I/Oメモリ32の格納データ(制御データ)を、高速揮発性記憶部14に転送して記憶することで制御データを更新する。   The I / O module 50 is connected to various control target devices 51, and collects, for example, status data of the control target devices 51 at regular intervals, and stores them in, for example, the I / O memory 32 provided in the controller 30. I do. The I / O memory 32 may have a configuration corresponding to the high-speed volatile storage unit 14, or a configuration in which the high-speed volatile storage unit 14 is provided separately from the I / O memory 32. In the case of the latter configuration, the controller 30 updates the control data by transferring and storing the data (control data) stored in the I / O memory 32 to the high-speed volatile storage unit 14, for example, at regular intervals.

コントローラ30は、記憶している制御プログラムを実行することで、例えばPID演算等を実行する。その際、上記設定値(制御パラメータ)や制御データ等を用いる。この例の場合、設定値は、例えばPID演算に用いる各種定数(ゲイン等)や目標値等である。   The controller 30 executes, for example, a PID operation by executing the stored control program. At this time, the set values (control parameters), control data, and the like are used. In the case of this example, the set values are, for example, various constants (such as gains) and target values used for the PID calculation.

また、ここでは図示しない上記外部電源5によって生成される直流電源が、コントローラ30に供給されている。そして、コントローラ30は、直流電源に並列に設けられた図示のコンデンサ31を備えている。このコンデンサ31が、上記蓄電デバイスの一例である。   A DC power generated by the external power source 5 (not shown) is supplied to the controller 30. The controller 30 includes the illustrated capacitor 31 provided in parallel with the DC power supply. The capacitor 31 is an example of the power storage device.

直流電源が供給されているときには、コンデンサ31は充電状態となっており、停電等で商用電源供給が停止する等の何等かの理由により直流電源供給がストップすると、コンデンサ31は放電状態となり、しばらくの間(上記メモリバックアップ時間;例えば数百ms程度;この時間は、コンデンサ31の容量によることになる)、コントローラ30に電力供給することができる。コントローラ30は、その間に、上述した制御データのバックアップ(退避)処理を行うことになる。   When DC power is supplied, the capacitor 31 is in a charged state, and when DC power supply is stopped for any reason, such as a stop of commercial power supply due to a power failure or the like, the capacitor 31 is in a discharged state. During this period (the memory backup time; for example, about several hundred ms; this time depends on the capacity of the capacitor 31), the controller 30 can be supplied with power. In the meantime, the controller 30 performs the above-mentioned control data backup (backup) processing.

尚、図2では図示を省略しているが、コントローラ30は、上記低速不揮発性記憶部13に相当するメモリ(フラッシュメモリ等)も備えている。
本手法では、電源断時のバックアップデータ量を、制御データのデータ量のみとすることができ、バックアップデータ量が少なくて済み、それによってバックアップに要する時間を短縮でき、以って上記メモリバックアップ時間が短くて済む(換言すればコンデンサ31の容量が少なくて済む)ようになる。
Although not shown in FIG. 2, the controller 30 also includes a memory (such as a flash memory) corresponding to the low-speed nonvolatile storage unit 13.
In this method, the amount of backup data when the power is turned off can be limited to the amount of control data, and the amount of backup data can be reduced, thereby reducing the time required for backup. Can be shortened (in other words, the capacity of the capacitor 31 can be reduced).

ここで、上述した図1の説明において、本手法では、制御パラメータ(監視操作データ)に関しては、その更新時に、低速不揮発性記憶部13と高速揮発性記憶部14の両方に書込みを行って両方とも更新するようにしている。しかしながら、この書込み処理の最中に、直流電源供給がストップした場合には、書込みが中断される。これより、制御パラメータの一部は更新されるが、残りは旧データのままという状態になる可能性がある。これは、操作監視データを構成する複数のデータ間の整合性を保てなくなるものと言うこともできる。この為、特に低速不揮発性記憶部13に記憶される制御パラメータが、新旧混在した状態となり、その後に起動しても、正常に動作しない可能性があった。   Here, in the description of FIG. 1 described above, in the present method, the control parameter (monitoring operation data) is written to both the low-speed nonvolatile storage unit 13 and the high-speed volatile storage unit 14 at the time of updating, and both are updated. I also try to update. However, if the DC power supply is stopped during the writing process, the writing is interrupted. As a result, there is a possibility that a part of the control parameters will be updated but the rest will remain old data. It can be said that this makes it impossible to maintain consistency between a plurality of data constituting the operation monitoring data. For this reason, the control parameters particularly stored in the low-speed nonvolatile storage unit 13 may be in a mixed state of old and new, and may not operate normally even if started later.

上記のような、運用モード時の監視操作データ書き込み途中に(操作監視データのバックアップ中)に電圧低下を検知した場合に、バックアップが中断され、操作監視データを構成する複数のデータ間の整合性を保てなくなる事態となることを防ぐため、本例では、例えば図3に示す構成・動作を更に有するようにしてもよい。   If a voltage drop is detected while monitoring operation data is being written in the operation mode (during backup of operation monitoring data) as described above, the backup is interrupted, and the consistency between a plurality of data constituting the operation monitoring data In this example, for example, in order to prevent the situation that the data cannot be maintained, the configuration and operation shown in FIG. 3 may be further provided.

すなわち、制御装置10において、上記低速不揮発性記憶部13における上記監視操作データ格納領域13cを、図3に示すように、2個有するように構成する。つまり、図示の監視操作データ格納領域13c−1と、監視操作データ格納領域13c−2の2つの記憶領域を備えるようにする。そして、監視操作データの更新毎にこの2つの記憶領域を切り替えて使用することにより、上記問題を解消できる。   That is, the control device 10 is configured to have two monitoring operation data storage areas 13c in the low-speed nonvolatile storage unit 13 as shown in FIG. That is, two storage areas, that is, the illustrated monitoring operation data storage area 13c-1 and the monitoring operation data storage area 13c-2 are provided. Then, by switching and using these two storage areas each time the monitoring operation data is updated, the above problem can be solved.

図4は、上記図3の構成とする場合の制御装置10(制御演算部12)の処理フローチャート図である。図4(a)は初期化、図4(b)は監視操作データ更新時、図4(c)は電源断時の処理フローチャート図である。   FIG. 4 is a process flowchart of the control device 10 (control operation unit 12) in the case of the configuration of FIG. FIG. 4A is a processing flowchart when initialization is performed, FIG. 4B is a processing flow when monitoring operation data is updated, and FIG. 4C is a processing flow chart when power is turned off.

尚、本例では、制御装置10(制御演算部12)は、任意の記憶領域にフラグを備えており、フラグを参照したり、フラグをON/OFF切換えするものとする。
まず、図4(a)の初期化処理では、まず、低速不揮発性記憶部13に記憶されている制御プログラムと制御データを、それぞれ、高速揮発性記憶部14の該当領域にコピーする(ステップS11)。
In this example, the control device 10 (the control calculation unit 12) has a flag in an arbitrary storage area, and refers to the flag and switches the flag ON / OFF.
First, in the initialization processing of FIG. 4A, first, the control program and the control data stored in the low-speed nonvolatile storage unit 13 are respectively copied to the corresponding areas of the high-speed volatile storage unit 14 (step S11). ).

更に、監視操作データも低速不揮発性記憶部13から高速揮発性記憶部14へコピーする。これはフラグを参照することで、上記監視操作データ格納領域13c−1、13c−2の2つの記憶領域の何れか一方から、監視操作データを読み出して高速揮発性記憶部14の該当領域にコピーする。これは、図示の例では、フラグがONであれば(ステップS12,YES)、監視操作データ格納領域13c−1から監視操作データを読み出して高速揮発性記憶部14の該当領域にコピーする(ステップS13)。その逆にフラグがOFFであれば(ステップS12,NO)、監視操作データ格納領域13c−2から監視操作データを読み出して高速揮発性記憶部14の該当領域にコピーする(ステップS14)。   Further, the monitoring operation data is also copied from the low-speed nonvolatile storage unit 13 to the high-speed volatile storage unit 14. In this case, by referring to the flag, the monitoring operation data is read from one of the two storage areas of the monitoring operation data storage areas 13c-1 and 13c-2 and copied to the corresponding area of the high-speed volatile storage unit 14. I do. In the illustrated example, if the flag is ON (step S12, YES), the monitoring operation data is read from the monitoring operation data storage area 13c-1 and copied to the corresponding area of the high-speed volatile storage unit 14 (step S12). S13). Conversely, if the flag is OFF (step S12, NO), the monitoring operation data is read from the monitoring operation data storage area 13c-2 and copied to the corresponding area of the high-speed volatile storage unit 14 (step S14).

尚、上記高速揮発性記憶部14の該当領域とは、制御プログラムの場合にはプログラム格納領域14aであり、制御データの場合には制御データ格納領域14bであり、監視操作データの場合には監視操作データ格納領域14cとなる。   The corresponding area of the high-speed volatile storage unit 14 is a program storage area 14a for a control program, a control data storage area 14b for control data, and a monitoring area for monitoring operation data. It becomes the operation data storage area 14c.

また、監視操作装置2から新たな制御パラメータ(監視操作データ)が入力されると、この新たな制御パラメータを高速揮発性記憶部14の該当領域に格納することで制御パラメータを更新すると共に、図4(b)の処理を実行することで新たな制御パラメータのバックアップを生成する。   When a new control parameter (monitoring operation data) is input from the monitoring operation device 2, the control parameter is updated by storing the new control parameter in a corresponding area of the high-speed volatile storage unit 14 and updating the control parameter. By executing the processing of 4 (b), a backup of a new control parameter is generated.

図4(b)の処理は、上記新たな制御パラメータを、低速不揮発性記憶部13の該当領域にも格納する処理であり、この該当領域は上記フラグを参照して判断する。
すなわち、図4の例の場合には、上記フラグがONであれば(ステップS21,YES)、上記新たな制御パラメータを監視操作データ格納領域13c−2に格納し(ステップS23)、格納完了したならばフラグを反転させることで(ステップS24)この場合にはフラグをOFFに切換えて、本処理を終了する。
The process of FIG. 4B is a process of storing the new control parameter also in a corresponding area of the low-speed nonvolatile storage unit 13. The corresponding area is determined by referring to the flag.
That is, in the example of FIG. 4, if the flag is ON (step S21, YES), the new control parameter is stored in the monitoring operation data storage area 13c-2 (step S23), and the storage is completed. Then, the flag is reversed (step S24), and in this case, the flag is switched to OFF, and this processing is ended.

これによって、その後、電源断に伴って図4(c)の処理を実行し、更にその後、初期化の際に図4(a)の処理を実行すると、監視操作データ格納領域13c−2に格納された最新の制御パラメータが高速揮発性記憶部14にコピーされて、これを用いて制御処理が実行されることになる。もし、ステップS23の処理の途中で、電源断となった場合には、監視操作データ格納領域13c−2は書込みの途中であり、旧データと新データとが混在した異常な状態となっている。しかしながら、この場合には、ステップS24の処理が行われないので、フラグはONのままとなっている。よって、後に初期化で図4(a)の処理が行われる際には、監視操作データ格納領域13c−1のデータが高速揮発性記憶部14にコピーされることになるので、特に問題ないことになる。   As a result, after that, the processing of FIG. 4C is executed after the power is turned off, and when the processing of FIG. 4A is further executed at the time of initialization, the processing is stored in the monitoring operation data storage area 13c-2. The latest control parameters obtained are copied to the high-speed volatile storage unit 14, and the control processing is executed using them. If the power is turned off during the processing in step S23, the monitoring operation data storage area 13c-2 is in the middle of writing and is in an abnormal state in which old data and new data are mixed. . However, in this case, since the process of step S24 is not performed, the flag remains ON. Therefore, when the processing of FIG. 4A is performed later by initialization, the data in the monitoring operation data storage area 13c-1 is copied to the high-speed volatile storage unit 14, and there is no particular problem. become.

尚、この場合には、上記初期化後、再度、監視操作装置2から新たな制御パラメータの入力が行われて、再度、図4(b)の処理が実行されるものとしてもよいが、この例に限らない。   In this case, after the initialization, a new control parameter may be input from the monitoring operation device 2 again, and the process of FIG. 4B may be executed again. It is not limited to the example.

また、上記ステップS21の判定がNOとなる場合には(フラグがOFFであれば)、上記新たな制御パラメータを監視操作データ格納領域13c−1に格納し(ステップS22)、格納完了したならばフラグを反転させることで(ステップS24)この場合にはフラグをONに切換えて、本処理を終了する。この場合も、上記ステップS21の判定がYESとなる場合と同様、たとえステップS22の処理中に電源断となった場合でも、問題無いことになる。   If the determination in step S21 is NO (if the flag is OFF), the new control parameter is stored in the monitoring operation data storage area 13c-1 (step S22). By inverting the flag (step S24), in this case, the flag is switched to ON, and this processing ends. In this case as well, as in the case where the determination in step S21 is YES, there is no problem even if the power is turned off during the processing in step S22.

そして、図4(c)の電源断モードの処理では、制御データの退避のみを実行する(ステップS31)。すなわち、高速揮発性記憶部14の制御データ格納領域14bに記憶されている制御データを、低速不揮発性記憶部13の制御データ格納領域13bにコピーする(退避させる)。 Then, in the processing in the power-off mode of FIG. 4C, only the control data is saved (step S31). That is, the control data stored in the control data storage area 14b of the high-speed volatile storage unit 14 is copied (evacuated) to the control data storage area 13b of the low-speed nonvolatile storage unit 13.

尚、上述した説明は、一例であり、この例に限らない。例えば、上述した説明では、監視操作データ格納領域13cとして2つの領域を設けているが、この例に限らず、3つ以上の領域を設けるようにしてもよい。上記2つの領域の場合、フラグのON/OFFによって管理していたが、3つ以上の領域の場合、フラグの代わりに、新たな制御パラメータをどの領域に記憶させたかを示す情報を、上記任意の記憶領域に書き込むようにする。 The above description is an example, and the present invention is not limited to this example. For example, in the above description, two areas are provided as the monitoring operation data storage area 13c . However, the present invention is not limited to this example, and three or more areas may be provided. In the case of the above two areas, the flag is managed by ON / OFF of the flag. However, in the case of three or more areas, information indicating in which area a new control parameter is stored instead of the flag is stored in the arbitrary area. Is written to the storage area.

尚、図4(a)、(c)の処理は、制御演算部12が実行する。図4(b)の処理は、制御演算部12が実行してもよいし、外部インターフェース(I/F)部11が実行してもよい。   The processing of FIGS. 4A and 4C is executed by the control calculation unit 12. The process of FIG. 4B may be executed by the control operation unit 12 or may be executed by the external interface (I / F) unit 11.

ここで、上記低速不揮発性記憶部13は、プログラム(制御プログラム等)と、制御データと、制御パラメータを格納する不揮発性メモリであると言える。また、上記高速揮発性記憶部14は、運用中に、上記プログラム(制御プログラム等)と、上記制御データと、上記制御パラメータを格納する為の揮発性メモリであると言える。また、上記蓄電デバイスは、電源電圧低下時に一時的に制御装置10(制御演算部12)に電源供給する為の構成であると言える。蓄電デバイスは、電源の電圧の低下時に放電することで、一時的に制御装置10(制御演算部12)に電源供給する。   Here, it can be said that the low-speed nonvolatile storage unit 13 is a nonvolatile memory that stores a program (such as a control program), control data, and control parameters. In addition, the high-speed volatile storage unit 14 can be said to be a volatile memory for storing the program (control program and the like), the control data, and the control parameters during operation. In addition, it can be said that the power storage device is configured to temporarily supply power to the control device 10 (control operation unit 12) when the power supply voltage drops. The power storage device temporarily supplies power to the control device 10 (the control operation unit 12) by discharging when the voltage of the power supply decreases.

そして、制御装置10(制御演算部12)は、上述した不図示のCPU/MPUが上述したアプリケーションプログラムを実行することで、不図示の下記の各処理機能部(初期化部、制御実行部、制御パラメータ更新部、電源断処理部)の処理を実現するものであると言うこともできる。また、制御装置10は、制御の為の設定データである制御パラメータと、運用中に随時得られる制御データとを用いて、所定のプログラム(制御プログラム等)を実行することで、制御対象機器の制御を行う装置であると言うこともできる。   The control device 10 (control operation unit 12) executes the following processing function units (initialization unit, control execution unit, It can be said that the processing of the control parameter updating unit and the power cutoff processing unit) is realized. In addition, the control device 10 executes a predetermined program (control program or the like) using control parameters, which are setting data for control, and control data obtained as needed during operation, so that the control target device is controlled. It can also be said that the device performs control.

・起動時に、上記不揮発性メモリに記憶されている上記プログラム(制御プログラム等)、制御データ、制御パラメータの全てもしくは一部分を、上記揮発性メモリにコピーする初期化部;
初期化部による上記制御パラメータのコピー処理は、不揮発性メモリに記憶されている制御パラメータ全てをコピー対象にしても良が、必要とされるパラメータのみを揮発性メモリにコピーしても良い。尚、必要とされるパラメータは、例えば開発者等が予め任意に決めて設定しておく。例えば、演算が頻繁に行われる処理タスクに関わる制御パラメータのみを、揮発性メモリにコピーし高速化する方法等が考えられる。
An initialization unit for copying all or a part of the program (control program or the like), control data, and control parameters stored in the nonvolatile memory to the volatile memory at the time of startup;
Copying process of the control parameter by the initialization unit, yet good to all control parameters stored in the nonvolatile memory to be copied, but may be copied only parameters that are required in the volatile memory. The necessary parameters are arbitrarily determined and set in advance by a developer or the like. For example, a method is conceivable in which only control parameters related to processing tasks in which calculations are frequently performed are copied to a volatile memory to increase the speed.

・運用中、上記揮発性メモリに記憶された上記プログラム、制御データ、制御パラメータを用いて制御演算処理を実行すると共に、該揮発性メモリに記憶される制御データを随時更新する制御実行部;
・運用中に任意のときに外部装置(例えば監視操作装置2)から新たな制御パラメータが与えられた場合、該新たな制御パラメータによって、上記揮発性メモリに記憶された制御パラメータを更新すると共に上記不揮発性メモリに記憶された制御パラメータも更新する制御パラメータ更新部;
・上記電源電圧低下検知部15によって電源電圧低下が検知された場合、上記蓄電デバイスよる一時的な電源供給によって制御装置10(制御演算部12)が動作可能状態となっている間に、上記揮発性メモリに格納されている制御データを、上記不揮発性メモリに退避させる電源断処理部;
そして、例えば、上記蓄電デバイスの容量は、制御データの上記不揮発性メモリへの退避が完了するまで上記動作可能状態とする為に必要な容量となっている。
A control execution unit that, during operation, executes control arithmetic processing using the program, control data, and control parameters stored in the volatile memory, and updates the control data stored in the volatile memory as needed;
When a new control parameter is given from an external device (for example, the monitoring operation device 2) at any time during operation, the control parameter stored in the volatile memory is updated with the new control parameter, and the new control parameter is updated. A control parameter updating unit that also updates the control parameters stored in the nonvolatile memory;
When the power supply voltage drop is detected by the power supply voltage drop detection unit 15, the volatilization is performed while the control device 10 (control calculation unit 12) is in an operable state due to temporary power supply by the power storage device. A power-off processing unit for saving control data stored in the nonvolatile memory to the nonvolatile memory;
Then, for example, the capacity of the power storage device is a capacity necessary to make the operable state until the saving of the control data to the nonvolatile memory is completed.

また、例えば、不揮発性メモリには、制御パラメータを格納するための記憶領域が2つ設けられており、上記制御パラメータ更新部は、上記新たな制御パラメータを不揮発性メモリに記憶する毎に、上記2つの記憶領域を切換えて使用する。この使用方法の具体例が、上記図4(a)、(b)の処理であるが、この例に限らない。例えば、上記のように、3つ以上の記憶領域を切換えて使用するようにしてもよい。何れにしても、複数の記憶領域を切換えて使用することになる。   Also, for example, the nonvolatile memory is provided with two storage areas for storing control parameters, and the control parameter updating unit stores the new control parameter in the nonvolatile memory every time the new control parameter is stored in the nonvolatile memory. The two storage areas are switched and used. A specific example of this usage method is the processing of FIGS. 4A and 4B, but is not limited to this example. For example, as described above, three or more storage areas may be switched and used. In any case, a plurality of storage areas are switched and used.

また、上記制御パラメータ更新部は、例えば、上記新たな制御パラメータが与えられたとき、上記揮発性メモリに該新たな制御パラメータを転送して記憶させた後、該揮発性メモリに記憶された新たな制御パラメータを上記不揮発性メモリに転送して記憶させることで、上記揮発性メモリと不揮発性メモリに記憶された制御パラメータを更新する。   Also, the control parameter updating unit, for example, when the new control parameter is given, transfers the new control parameter to the volatile memory and stores the same, and then stores the new control parameter stored in the volatile memory. The control parameters stored in the volatile memory and the non-volatile memory are updated by transferring and storing such control parameters to the non-volatile memory.

あるいは、上記制御パラメータ更新部は、例えば、上記新たな制御パラメータが与えられたとき、該新たな制御パラメータを上記揮発性メモリに転送すると共に上記不揮発性メモリにも転送して、該揮発性メモリと不揮発性メモリとに該新たな制御パラメータを記憶させることで、上記揮発性メモリと不揮発性メモリに記憶された制御パラメータを更新する。   Alternatively, for example, when the new control parameter is given, the control parameter updating unit transfers the new control parameter to the volatile memory and also transfers the new control parameter to the non-volatile memory. By storing the new control parameter in the volatile memory and the nonvolatile memory, the control parameter stored in the volatile memory and the nonvolatile memory is updated.

また、例えば、上記制御実行部は、上記制御演算処理を実行することで制御対象機器の制御を行う。また、例えば、制御データには、該制御対象機器の現在状態を示すデータが含まれる。   Further, for example, the control execution unit controls the control target device by executing the control arithmetic processing. Further, for example, the control data includes data indicating the current state of the controlled device.

また、例えば、不揮発性メモリは、上記プログラムを格納する第1のプログラム格納領域と、制御データを格納する第1の制御データ格納領域と、制御パラメータを格納する第1の制御パラメータ格納領域を有する。   In addition, for example, the nonvolatile memory has a first program storage area for storing the program, a first control data storage area for storing control data, and a first control parameter storage area for storing control parameters. .

また、例えば、揮発性メモリは、運用中に上記プログラムを格納する為の第2のプログラム格納領域と、運用中に制御データを格納する為の第2の制御データ格納領域と、運用中に制御パラメータを格納する為の第2の制御パラメータ格納領域を有する。   Further, for example, the volatile memory includes a second program storage area for storing the program during operation, a second control data storage area for storing control data during operation, and a control area during operation. It has a second control parameter storage area for storing parameters.

また、本発明は、上記制御装置10自体に限らず、この制御装置10を含む制御システムとして構成することもできる。すなわち、制御装置10と監視操作装置2と入出力装置3を有し、該制御装置10が、該監視操作装置2から任意のときに入力される制御パラメータと、運用中に随時得られる制御データとを用いて、所定のプログラムを実行することで、制御対象機器の制御を行う制御システムとして構成することもできる。   Further, the present invention is not limited to the control device 10 itself, and may be configured as a control system including the control device 10. That is, the control device 10 includes the control device 10, the monitoring operation device 2, and the input / output device 3. The control device 10 controls the control parameters input at any time from the monitoring operation device 2 and the control data obtained at any time during operation. By executing a predetermined program using the above, a control system for controlling the control target device can be configured.

本手法により、監視制御システムの制御装置において、電源断時のメモリバックアップ容量を低減することが可能となり、メモリバックアップのための蓄電デバイス等のコストを低減することが可能となる。   According to this method, in the control device of the monitoring and control system, it is possible to reduce the memory backup capacity when the power is turned off, and it is possible to reduce the cost of the power storage device and the like for the memory backup.

また、新たな監視操作データの書き込み動作中に(電源断等により)電源電圧が低下した場合でも、問題が生じないようにでき、例えば監視操作データを構成する複数のデータ間の整合性を、保つことが出来る。   Further, even when the power supply voltage is reduced during the writing operation of the new monitoring operation data (due to power supply cutoff or the like), it is possible to prevent a problem from occurring. For example, the consistency between a plurality of data constituting the monitoring operation data can be improved. Can be kept.

2 監視操作装置
3 入出力装置
5 外部電源
10 制御装置
11 外部インターフェース(I/F)部
12 制御演算部
13 低速不揮発性記憶部
13a プログラム格納領域
13b 制御データ格納領域
13c 監視操作データ格納領域
14 高速揮発性記憶部14
14a プログラム格納領域
14b 制御データ格納領域
14c 監視操作データ格納領域
15 電源電圧低下検知部
30 コントローラ
31 コンデンサ
32 I/Oメモリ
40 HCI装置
50 I/Oモジュール
51 制御対象機器
13c−1 監視操作データ格納領域
13c−2 監視操作データ格納領域

2 monitoring operation device 3 input / output device 5 external power supply 10 control device 11 external interface (I / F) unit 12 control operation unit 13 low-speed nonvolatile storage unit 13a program storage area 13b control data storage area 13c monitoring operation data storage area 14 high speed Volatile storage unit 14
14a Program storage area 14b Control data storage area 14c Monitoring operation data storage area 15 Power supply voltage drop detector 30 Controller 31 Capacitor 32 I / O memory 40 HCI device 50 I / O module 51 Control target device 13c-1 Monitoring operation data storage area 13c-2 Monitoring operation data storage area

Claims (8)

与えられた制御パラメータと制御対象機器から随時得られる制御データとを用いて所定のプログラムを実行し、前記制御対象機器を制御する制御装置であって、
前記プログラムと、前記制御データと、前記制御パラメータとを記憶する不揮発性記憶手段と、
前記制御装置を動作させる電源の電圧の低下を検知する電源電圧低下検知手段と、
前記電源の電圧の低下時に放電することで前記制御装置に一時的に電力供給する蓄電手段と、
制御手段と、を有し、
該制御手段は、
起動時に、前記不揮発性記憶手段に記憶されている前記プログラム、前記制御データ、及び前記制御パラメータの全てもしくは1部分を、揮発性記憶手段にコピーする初期化手段と、
運用中、前記揮発性記憶手段に記憶された前記プログラム、前記制御データ、及び前記制御パラメータを用いて前記制御対象機器を制御するための演算処理を実行すると共に、前記制御対象機器から随時得られる制御データによって、前記揮発性記憶手段に記憶された制御データを更新する制御実行手段と、
運用中の任意のときに新たな制御パラメータが与えられた場合、該新たな制御パラメータによって、前記揮発性記憶手段に記憶された制御パラメータを更新すると共に前記不揮発性記憶手段に記憶された制御パラメータも更新する制御パラメータ更新手段と、
前記電源電圧低下検知手段によって前記電源電圧低下が検知された場合、前記揮発性記憶手段に記憶されている前記プログラム及び前記制御パラメータを前記不揮発性記憶手段に退避させずに、前記揮発性記憶手段に記憶されている前記制御データを前記不揮発性記憶手段に退避させる電源断処理手段と、
を有することを特徴とする制御装置。
A control device that executes a predetermined program using given control parameters and control data obtained as needed from the control target device, and controls the control target device,
A nonvolatile storage unit that stores the program, the control data, and the control parameter;
Power supply voltage drop detection means for detecting a drop in the voltage of the power supply that operates the control device,
Power storage means for temporarily supplying power to the control device by discharging when the voltage of the power supply decreases,
Control means,
The control means includes:
At startup, the program stored in the non-volatile storage means, the control data, and all or a portion of the control parameters, initialization means to copy to a volatile storage means,
During operation, the program, the control data, and the control parameters stored in the volatile storage unit are used to execute arithmetic processing for controlling the controlled device using the control parameters, and are obtained from the controlled device as needed. the control data, a control execution means for updating the control data stored in the volatile memory means,
When a new control parameter is given at any time during operation, the control parameter stored in the volatile storage unit is updated by the new control parameter, and the control parameter stored in the nonvolatile storage unit is updated. Control parameter updating means for also updating
When the power supply voltage drop is detected by the power supply voltage drop detection unit, the volatile storage unit does not save the program and the control parameters stored in the volatile storage unit to the nonvolatile storage unit. and power-off processing means for the control data stored Ru is retracted before Symbol nonvolatile storage means,
A control device comprising:
前記制御パラメータ更新手段は、
前記新たな制御パラメータが与えられたとき、前記揮発性記憶手段に該新たな制御パラメータを転送して記憶させた後、該揮発性記憶手段に記憶された新たな制御パラメータを前記不揮発性記憶手段に転送して記憶させ、
あるいは、前記新たな制御パラメータが与えられたとき、該新たな制御パラメータを前記揮発性記憶手段に転送すると共に前記不揮発性記憶手段にも転送して、該揮発性記憶手段と不揮発性記憶手段とに該新たな制御パラメータを記憶させることを特徴とする請求項1記載の制御装置。
The control parameter updating means,
When the new control parameter is given, the new control parameter is transferred to and stored in the volatile storage unit, and then the new control parameter stored in the volatile storage unit is stored in the nonvolatile storage unit. Transfer to and memorize,
Alternatively, when the new control parameter is given, the also transferred to the non-volatile memory means, said volatile storage means and said nonvolatile memory means and transfers the new control parameter in the volatile memory means 2. The control device according to claim 1, wherein the new control parameter is stored at the same time.
前記不揮発性記憶手段には、前記制御パラメータを記憶する制御パラメータ記憶領域が複数設けられており、
前記制御パラメータ更新手段は、前記新たな制御パラメータが与えられる毎に、該新たな制御パラメータを前記複数の制御パラメータ記憶領域のいずれかに切換えて記憶させ
前記初期化手段は、起動時に、前記複数の制御パラメータ記憶領域に記憶完了された制御パラメータのうちの最新の制御パラメータを前記揮発性記憶手段にコピーする、ことを特徴とする請求項1または2記載の制御装置。
The nonvolatile storage means is provided with a plurality of control parameter storage areas for storing the control parameters ,
The control parameter updating means switches and stores the new control parameter in any of the plurality of control parameter storage areas each time the new control parameter is provided ,
3. The method according to claim 1 , wherein the initialization unit copies the latest control parameter among the control parameters stored in the plurality of control parameter storage areas to the volatile storage unit at the time of startup. The control device as described.
前記不揮発性記憶手段には、前記制御パラメータ記憶領域が2つ設けられており、The nonvolatile storage means is provided with two control parameter storage areas,
前記制御パラメータ更新手段は、前記新たな制御パラメータが与えられる毎に、該新たな制御パラメータを前記2つの制御パラメータ記憶領域に交互に切換えて記憶させると共に、該新たな制御パラメータの記憶が完了した場合に所定のフラグを反転させ、The control parameter updating means alternately stores the new control parameter in the two control parameter storage areas each time the new control parameter is provided, and completes the storage of the new control parameter. Invert the predetermined flag in case
前記初期化手段は、起動時に、前記フラグを参照して、前記2つの制御パラメータ記憶領域に記憶完了された制御パラメータのうちの最新の制御パラメータを前記揮発性記憶手段にコピーする、ことを特徴とする請求項3記載の制御装置。The initialization means refers to the flag at the time of startup and copies the latest control parameter of the control parameters stored in the two control parameter storage areas to the volatile storage means. The control device according to claim 3, wherein
前記不揮発性記憶手段には、前記制御パラメータ記憶領域が3つ以上設けられており、The nonvolatile storage means is provided with three or more control parameter storage areas,
前記制御パラメータ更新手段は、前記新たな制御パラメータが与えられる毎に、該新たな制御パラメータを前記3つ以上の制御パラメータ記憶領域のいずれかに切換えて記憶させると共に、該新たな制御パラメータの記憶が完了した場合に、該新たな制御パラメータが前記3つ以上の制御パラメータ記憶領域のいずれに記憶されたかを示す情報を任意の記憶領域に書き込み、Each time the new control parameter is provided, the control parameter updating means switches the new control parameter to one of the three or more control parameter storage areas to store the new control parameter, and stores the new control parameter. Is completed, the information indicating which of the three or more control parameter storage areas the new control parameter is stored in is stored in an arbitrary storage area,
前記初期化手段は、起動時に、前記情報を参照して、前記3つ以上の制御パラメータ記憶領域に記憶完了された制御パラメータのうちの最新の制御パラメータを前記揮発性記憶手段にコピーする、ことを特徴とする請求項3記載の制御装置。The initialization means refers to the information at the time of startup, and copies the latest control parameter of the control parameters stored in the three or more control parameter storage areas to the volatile storage means, The control device according to claim 3, wherein:
前記制御データには、該制御対象機器の現在状態を示すデータが含まれることを特徴とする請求項1記載の制御装置。   2. The control device according to claim 1, wherein the control data includes data indicating a current state of the control target device. 前記不揮発性記憶手段は、前記プログラムを格納する第1のプログラム格納領域と、前記制御データを格納する第1の制御データ格納領域と、前記制御パラメータを格納する第1の制御パラメータ格納領域を有し、
前記揮発性記憶手段は、運用中に前記プログラムを格納する為の第2のプログラム格納領域と、運用中に前記制御データを格納する為の第2の制御データ格納領域と、運用中に前記制御パラメータを格納する為の第2の制御パラメータ格納領域を有することを特徴とする請求項1記載の制御装置。
The nonvolatile storage unit has a first program storage area for storing the program, a first control data storage area for storing the control data, and a first control parameter storage area for storing the control parameters. And
The volatile storage means includes: a second program storage area for storing the program during operation; a second control data storage area for storing the control data during operation; The control device according to claim 1, further comprising a second control parameter storage area for storing parameters.
与えられた制御パラメータと制御対象機器から随時得られる制御データとを用いて所定のプログラムを実行して前記制御対象機器を制御する制御装置と、監視操作装置を有する制御システムにおいて、
前記制御装置は、
前記プログラムと、前記制御データと、前記制御パラメータとを記憶する不揮発性記憶手段と、
前記制御装置を動作させる電源の電圧の低下を検知する電源電圧低下検知手段と、
前記電源の電圧の低下時に放電することで前記制御装置に一時的に電力供給する蓄電手段と、
制御手段と、を有し、
該制御手段は、
起動時に、前記不揮発性記憶手段に記憶されている前記プログラム、前記制御データ、及び前記制御パラメータの全てもしくは1部分を、揮発性記憶手段にコピーする初期化手段と、
運用中、前記揮発性記憶手段に記憶された前記プログラム、前記制御データ、及び前記制御パラメータを用いて前記制御対象機器を制御するための演算処理を実行すると共に、前記制御対象機器から随時得られる制御データによって、前記揮発性記憶手段に記憶された制御データを更新する制御実行手段と、
運用中の任意のときに前記監視操作装置から新たな制御パラメータが与えられた場合、該新たな制御パラメータによって、前記揮発性記憶手段に記憶された制御パラメータを更新すると共に前記不揮発性記憶手段に記憶された制御パラメータも更新する制御パラメータ更新手段と、
前記電源電圧低下検知手段によって前記電源電圧低下が検知された場合、前記揮発性記憶手段に記憶されている前記プログラム及び前記制御パラメータを前記不揮発性記憶手段に退避させずに、前記揮発性記憶手段に記憶されている前記制御データを前記不揮発性記憶手段に退避させる電源断処理手段と、
を有することを特徴とする制御システム。
A control device that controls a control target device by executing a predetermined program using given control parameters and control data obtained as needed from the control target device , and a control system including a monitoring operation device,
The control device includes:
A nonvolatile storage unit that stores the program, the control data, and the control parameter;
Power supply voltage drop detection means for detecting a drop in the voltage of the power supply that operates the control device,
Power storage means for temporarily supplying power to the control device by discharging when the voltage of the power supply decreases,
Control means,
The control means includes:
At startup, the program stored in the non-volatile storage means, the control data, and all or a portion of the control parameters, initialization means to copy to a volatile storage means,
During operation, the program, the control data, and the control parameters stored in the volatile storage unit are used to execute arithmetic processing for controlling the controlled device using the control parameters, and are obtained from the controlled device as needed. the control data, a control execution means for updating the control data stored in the volatile memory means,
When a new control parameter is given from the monitoring operation device at any time during operation, the control parameter stored in the volatile storage unit is updated by the new control parameter, and the nonvolatile storage unit is updated. Control parameter updating means for also updating the stored control parameters,
When the power supply voltage drop is detected by the power supply voltage drop detection unit, the volatile storage unit does not save the program and the control parameters stored in the volatile storage unit to the nonvolatile storage unit. and power-off processing means for the control data stored Ru is retracted before Symbol nonvolatile storage means,
A control system comprising:
JP2015137320A 2015-07-08 2015-07-08 Control system and its control device Active JP6672623B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015137320A JP6672623B2 (en) 2015-07-08 2015-07-08 Control system and its control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015137320A JP6672623B2 (en) 2015-07-08 2015-07-08 Control system and its control device

Publications (2)

Publication Number Publication Date
JP2017021498A JP2017021498A (en) 2017-01-26
JP6672623B2 true JP6672623B2 (en) 2020-03-25

Family

ID=57889566

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015137320A Active JP6672623B2 (en) 2015-07-08 2015-07-08 Control system and its control device

Country Status (1)

Country Link
JP (1) JP6672623B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6874814B2 (en) * 2019-10-30 2021-05-19 株式会社安川電機 Industrial equipment control device, industrial equipment control device setting system, industrial equipment control device setting method, and program
JP2023007659A (en) * 2021-07-02 2023-01-19 オムロン株式会社 Control device, system program, and method

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02171802A (en) * 1988-12-23 1990-07-03 Matsushita Electric Works Ltd Programmable controller
JPH04118705A (en) * 1990-09-10 1992-04-20 Fuji Electric Co Ltd Programmable controller
JP2848739B2 (en) * 1992-05-20 1999-01-20 横河電機株式会社 Indicating controller
JP2002297207A (en) * 2001-03-30 2002-10-11 Omron Corp Backup processor
JP2005339151A (en) * 2004-05-26 2005-12-08 Hitachi Industrial Equipment Systems Co Ltd Programmable controller
WO2011099117A1 (en) * 2010-02-09 2011-08-18 三菱電機株式会社 Programmable controller
JP6091334B2 (en) * 2013-05-27 2017-03-08 三菱電機株式会社 Plant control system and manufacturing method of plant control device

Also Published As

Publication number Publication date
JP2017021498A (en) 2017-01-26

Similar Documents

Publication Publication Date Title
JP5623593B2 (en) Rack and method for simultaneously updating a basic input / output system
CN107885305B (en) Control device, control method, and recording medium
JP5981906B2 (en) Image forming apparatus
JP2012058879A (en) Operating system boot management device
JP5581577B2 (en) Data processing device
JP4641443B2 (en) Log information management apparatus, log information management method, and log information management program
JP6672623B2 (en) Control system and its control device
WO2014174546A1 (en) Programmable logic controller system and programmable logic controller
JP2016103114A (en) Inverter and update method of firmware program in inverter
WO2011099117A1 (en) Programmable controller
JP2004338883A (en) Elevator controller
JP5445572B2 (en) Computer system, standby power reduction method, and program
JP2009223687A (en) Information processing system and control method thereof
JP2008262426A (en) Duplex controller system and controller
JP6113374B1 (en) Programmable logic controller
CN110275797B (en) Controller and data storage method
US20170168757A1 (en) Semiconductor device and memory access control method
JP2007087269A (en) Software update system, update method and program
JP2018109907A (en) FPGA configuration device
JP6091334B2 (en) Plant control system and manufacturing method of plant control device
WO2020004300A1 (en) Image storage device and power supply method
JP5660010B2 (en) Information processing apparatus and data restoration method
JP2008225922A (en) Nonvolatile storage device
WO2019104479A1 (en) Method for determining loading program and electronic system
JP2007179094A (en) Information processing apparatus and power consumption control method executed therein

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190625

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190821

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20190821

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200217

R150 Certificate of patent or registration of utility model

Ref document number: 6672623

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250