JP2008310640A - Control device and control program switching method - Google Patents
Control device and control program switching method Download PDFInfo
- Publication number
- JP2008310640A JP2008310640A JP2007158633A JP2007158633A JP2008310640A JP 2008310640 A JP2008310640 A JP 2008310640A JP 2007158633 A JP2007158633 A JP 2007158633A JP 2007158633 A JP2007158633 A JP 2007158633A JP 2008310640 A JP2008310640 A JP 2008310640A
- Authority
- JP
- Japan
- Prior art keywords
- control program
- control
- stored
- change
- changed
- 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
Links
Images
Landscapes
- Programmable Controllers (AREA)
- Safety Devices In Control Systems (AREA)
Abstract
Description
本発明は、プラントに影響を与えることなく、変更後の動作確認を行うことができる制御装置及び制御プログラム切り替え方法に関する。 The present invention relates to a control device and a control program switching method capable of performing an operation check after change without affecting a plant.
プラントを制御する一般的な制御装置において、制御装置の提供者はプラントを安定かつ安全に制御するための各種機器の起動、停止信号等からなる制御回路を制御プログラムとして制御装置に組み込み、プラント操業者へ提供する。 In a general control device for controlling a plant, the control device provider incorporates a control circuit including start and stop signals for various devices for controlling the plant stably and safely into the control device as a control program, and operates the plant. To provide
しかし、制御装置提供後に、提供者又はプラント操業者等の利用者は、運転条件の変更等何らかの理由により、組み込まれた制御プログラムを変更する場合がある。このような場合、利用者は保守装置を用いて制御プログラムの変更を行い、変更後の制御プログラムを制御装置にダウンロードさせて制御装置へ組み込んでいた。 However, after providing the control device, a provider or a user such as a plant operator may change the incorporated control program for some reason, such as a change in operating conditions. In such a case, the user changes the control program using the maintenance device, downloads the changed control program to the control device, and incorporates the control program into the control device.
図9は、従来の保守装置を用いて制御プログラムを制御装置へ組み込む手順を説明した模式図である。 FIG. 9 is a schematic diagram illustrating a procedure for incorporating a control program into a control device using a conventional maintenance device.
図9に示すように、従来は、制御装置101に保守装置102を制御LAN103を介して接続し、保守装置102によって変更された変更後制御プログラムを制御装置101にダウンロードすることにより、変更後制御プログラムを制御装置101に組み込んでいた。
As shown in FIG. 9, conventionally, the
例えば、利用者が、保守装置102上で制御プログラム104の一部を変更(ADD命令をDIV命令へ修正)する場合、保守装置102は変更後制御プログラムを保守装置102内に記憶し、コンパイル後に変更後制御プログラムを制御装置101へダウンロードする。そして、制御装置101は、ダウンロードされた変更後制御プログラムを実行する。
For example, when the user changes a part of the control program 104 on the maintenance device 102 (ADD command is modified to DIV command), the
しかし、図9に示すように、プラントのセンサからの入力変数Aの値が“0”であると、変更後制御プログラムの実行結果としてゼロ割が生じ、出力変数Zの値が無限大になる等プラント機器へ異常値が出力される場合がある。これにより、プラントが緊急停止してしまう等重大な影響が出る場合もあった。 However, as shown in FIG. 9, when the value of the input variable A from the sensor of the plant is “0”, a zero division occurs as a result of executing the control program after the change, and the value of the output variable Z becomes infinite. An abnormal value may be output to plant equipment. As a result, there was a case where a serious influence such as an emergency stop of the plant occurred.
そこで、このような異常値が出力された場合、保守装置102で変更後制御プログラムをUndoなどにより変更前の制御プログラムに戻し、変更前の制御プログラムを保守装置102から再度ダウンロードを行うことが考えられる。
Therefore, when such an abnormal value is output, the
しかしながら、このように再ダウンロードする場合、保守装置102は再度制御プログラムの保存・コンパイル・ダウンロードを行う必要があり、制御装置101を変更前の状態に復旧するためには相当の時間を要していた。
However, when re-downloading in this way, the
そこで、例えば、入力模擬信号を生成するシミュレータを備えたオフラインシステムを用いて、利用者が変更後制御プログラムが正常に動作することを事前に確認した後、実機の制御装置101に変更後制御プログラムをダウンロードすることが考えられる。
Therefore, for example, after the user confirms in advance that the changed control program operates normally using an offline system including a simulator that generates an input simulation signal, the changed control program is stored in the
図10は、変更後制御プログラムが組み込まれた制御装置が正常に動作するか否かを事前確認するためのオフラインシステムの概要を説明した模式図である。 FIG. 10 is a schematic diagram illustrating an outline of an offline system for confirming in advance whether or not the control device in which the control program after change is installed normally operates.
図10に示すように、従来技術のオフラインシステム110は制御プログラムを実行する制御プログラム実行部111と、プラント機器を模擬するシミュレーション実行部112と、シミュレーション実行部112及び制御プログラム実行部111とで用いられる入出力データを記憶するシミュレーションデータ記憶部113とを備えている。
As shown in FIG. 10, the
シミュレーション実行部112は、シミュレーションプログラムを実行することによって、シミュレーションデータ記憶部113に記憶された出力信号に基づいて、プラントをシミュレートする。そして、シミュレーション実行部112は、シミュレーションプログラムの実行結果として入力信号を生成し、シミュレーションデータ記憶部113へ記憶させる。
The
制御プログラム実行部111は、シミュレーションデータ記憶部113に記憶された入力信号に基づいて、制御プログラムを実行する。そして、制御プログラムの実行結果として出力信号を生成し、シミュレーションデータ記憶部113に記憶させる。
The control program execution unit 111 executes the control program based on the input signal stored in the simulation
そして、利用者は、制御プログラム実行部111の実行結果を確認した後、実機の制御装置101に変更後制御プログラムを反映させる。
Then, after confirming the execution result of the control program execution unit 111, the user reflects the changed control program in the
しかしながら、上記のような入力信号を生成させるためのシミュレーションプログラムを作成するためには、利用者は、通常運転時及び予想外の事象発生時における全てのプラント機器の応答特性などを想定して作成する必要があり、これには多大なノウハウが必要になっていた。そのため、利用者がこのようなシミュレーションプログラムを作成するのは非常に困難であった。 However, in order to create a simulation program for generating the input signal as described above, the user assumes the response characteristics of all plant equipment during normal operation and when an unexpected event occurs. This required a great deal of know-how. Therefore, it has been very difficult for a user to create such a simulation program.
また、特許文献1には、ソフトウェアプログラムの動作異常時を検出し、検出したときに異常時処理プログラムを起動し、異常の種類と異常時の処理を記憶する数値制御装置が提案されている。
しかしながら、特許文献1に記載の数値制御装置をプラントの制御装置に適用したとしても、ソフトウェアプログラム(制御プログラム)の異常が発生した場合、異常時処理プログラムを起動し、異常の種類と異常時の処理を記憶するが、制御装置を復旧するためには、再度ソフトウェアプログラムの保存・コンパイル・ダウンロードを行う必要があった。また、制御装置から異常値が出力されることによりプラントが緊急停止してしまう等重大な影響が出る場合もあった。
However, even if the numerical control device described in
本発明は、上記課題に鑑みてなされたものであり、シミュレーションプログラムを用いることなく、利用者によって正常に動作することが確認された変更後制御プログラムを制御プログラムに替えて組み込むことができる制御装置及び制御プログラム切り替え方法を提供することを目的とする。 The present invention has been made in view of the above-described problems, and a control device that can incorporate a control program after change, which has been confirmed to operate normally by a user, without using a simulation program, in place of the control program. It is another object of the present invention to provide a control program switching method.
上記目的を達成するため、本発明に係る制御装置の第1の特徴は、制御プログラムを実行することによって機器の制御を行うと共に、接続された保守装置から制御プログラムに基づいて生成された変更後制御プログラムを受信し、受信した変更後制御プログラムと制御プログラムとを切り替える制御装置であって、保守装置からテスト実行が要求された場合に、保守装置から受信した変更後制御プログラムを機器への出力を禁止しつつ実行するテスト実行手段と、保守装置から制御プログラムの切り替えが要求された場合に、変更後制御プログラムを制御プログラムとして実行するために、変更後制御プログラムと制御プログラムとを切り替える制御プログラム切り替え手段とを備えたことにある。 In order to achieve the above object, the first feature of the control device according to the present invention is that the device is controlled by executing the control program, and after the change generated based on the control program from the connected maintenance device A control device that receives a control program and switches between the received modified control program and the control program, and outputs the modified control program received from the maintenance device to equipment when a test execution is requested from the maintenance device Test execution means for executing the control program, and a control program for switching the control program after the change and the control program in order to execute the control program after the change as a control program when the maintenance device requests the switching of the control program And switching means.
上記目的を達成するため、本発明に係る制御装置の第2の特徴は、制御プログラムと変更後制御プログラムとを少なくとも記憶する制御プログラム記憶手段と、制御プログラム記憶手段に記憶された制御プログラムのアドレスをオフセット領域に記憶すると共に、少なくとも変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、保守装置によりテスト実行が要求された場合に、保守装置から変更後制御プログラムを受信し、受信した変更後制御プログラムの出力命令を機器へ出力しないように変更し、この変更後のプログラムを出力変更後制御プログラムとして制御プログラム記憶手段に記憶させると共に、記憶させた該出力変更後制御プログラムのアドレスを制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを更に備え、テスト実行手段は、記憶制御手段によりテストオフセット記憶領域に記憶されたアドレスに基づいて、制御プログラム記憶手段に記憶された出力変更後制御プログラムを新たな変更後制御プログラムとして実行し、制御プログラム切り替え手段は、保守装置により制御プログラムの切り替えが要求された場合に、保守装置から再度、変更後制御プログラムを受信し、記憶制御手段により記憶された出力変更後制御プログラムをこの再度受信した変更後制御プログラムで上書きさせると共に、この上書きした変更後制御プログラムを制御プログラムとして切替えて実行するためにオフセット記憶領域に記憶されたアドレスを記憶制御手段によってテストオフセット記憶領域に記憶されたアドレスで上書きさせることにある。 In order to achieve the above object, a second feature of the control device according to the present invention is that control program storage means for storing at least a control program and a changed control program, and an address of the control program stored in the control program storage means Is stored in the offset area, and at least the address of the changed control program is stored in the test offset area, and when the maintenance device requests a test execution, the maintenance device sends the changed control program. Receive and change the output instruction of the received changed control program so that it is not output to the device, and store the changed program in the control program storage means as the output changed control program, and store the changed output The control program management information is recorded in the control program address. Storage control means for storing in the test offset storage area of the means, the test execution means after the output change stored in the control program storage means based on the address stored in the test offset storage area by the storage control means The control program is executed as a new changed control program, and the control program switching means receives the changed control program again from the maintenance apparatus when the maintenance apparatus requests switching of the control program, and the storage control means The stored control program after changing the output is overwritten by the received control program after the change again, and the address stored in the offset storage area is stored and controlled so that the overwritten control program after the change is switched as the control program and executed. Test offset by means It is to be overwritten with the address stored in the area.
上記目的を達成するため、本発明に係る制御装置の第3の特徴は、制御プログラムと変更後制御プログラムとを少なくとも記憶する制御プログラム記憶手段と、制御プログラム記憶手段に記憶された制御プログラムのアドレスをオフセット領域に記憶すると共に、少なくとも変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、保守装置によりテスト実行が要求された場合に、保守装置から受信した変更後制御プログラムを制御プログラム記憶手段に記憶させると共に、受信した変更後制御プログラムの出力命令を機器へ出力しないように変更し、この変更後のプログラムを出力変更後制御プログラムとして新たに制御プログラム記憶手段に記憶させ、この記憶させた該出力変更後制御プログラムのアドレスを制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを更に備え、テスト実行手段は、記憶制御手段によりテストオフセット記憶領域に記憶されたアドレスに基づいて、制御プログラム記憶手段に記憶された出力変更後制御プログラムを新たな変更後制御プログラムとして実行し、制御プログラム切り替え手段は、保守装置により制御プログラムの切り替えが要求された場合に、記憶制御手段により記憶された出力変更後制御プログラムを記憶制御手段により記憶された変更後制御プログラムで上書きさせると共に、この上書きした変更後制御プログラムを制御プログラムとして実行するためにオフセット記憶領域に記憶されたアドレスを記憶制御手段によってテストオフセット記憶領域に記憶されたアドレスで上書きさせることにある。 In order to achieve the above object, a third feature of the control device according to the present invention is that control program storage means for storing at least a control program and a changed control program, and an address of the control program stored in the control program storage means Is stored in the offset area, and at least the address of the control program after change is stored in the test offset area, and the control after change received from the maintenance apparatus when a test execution is requested by the maintenance apparatus The program is stored in the control program storage means, and the received output instruction of the changed control program is changed so as not to be output to the device, and the changed program is newly stored in the control program storage means as the output change control program. The stored control program after the output change is stored. Storage control means for storing the address of the program in the test offset storage area of the control program management information storage means, the test execution means based on the address stored in the test offset storage area by the storage control means The control program after output change stored in the storage means is executed as a new control program after change, and the control program switching means outputs the output stored by the storage control means when the maintenance device requests switching of the control program. The changed control program is overwritten by the changed control program stored by the storage control means, and the address stored in the offset storage area is tested by the storage control means in order to execute the overwritten changed control program as the control program. Offset It is to be overwritten with the address stored in the area.
上記目的を達成するため、本発明に係る制御装置の第4の特徴は、制御プログラムと変更後制御プログラムとを記憶する制御プログラム記憶手段と、制御プログラム記憶手段に記憶された制御プログラムのアドレスをオフセット領域に記憶すると共に、変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、保守装置によりテスト実行が要求された場合に、変更後制御プログラムを受信し、この受信した変更後制御プログラムを制御プログラム記憶手段に記憶させると共に、記憶させた変更後制御プログラムのアドレスを制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを備え、テスト実行手段は、記憶制御手段によりテストオフセット記憶領域に記憶されたアドレスに基づいて、前記制御プログラム記憶手段に記憶された変更後制御プログラムを機器へ出力しないように切り離して実行し、制御プログラム切り替え手段は、保守装置により制御プログラムの切り替えが要求された場合に、制御プログラム記憶手段に記憶された変更後制御プログラムを制御プログラムとして実行するために、オフセット記憶領域に記憶されたアドレスとテストオフセット記憶領域に記憶されたアドレスとを入れ替えることにある。 In order to achieve the above object, a fourth feature of the control device according to the present invention is that control program storage means for storing the control program and the changed control program, and the address of the control program stored in the control program storage means are stored. Control program management information storage means for storing the address of the changed control program in the test offset area as well as storing in the offset area, and receiving the changed control program when a test execution is requested by the maintenance device. Storage control means for storing the changed control program in the control program storage means and storing the address of the stored changed control program in the test offset storage area of the control program management information storage means, the test execution means , To the test offset storage area by storage control means Based on the stored address, the changed control program stored in the control program storage means is separated and executed so as not to be output to the device. The control program switching means is requested to switch the control program by the maintenance device. In this case, in order to execute the changed control program stored in the control program storage means as the control program, the address stored in the offset storage area and the address stored in the test offset storage area are exchanged.
上記目的を達成するため、本発明に係る制御プログラム切り替え方法の第1の特徴は、制御プログラムを実行することによって機器の制御を行う制御装置に接続された保守装置から、制御プログラムに基づいて生成された変更後制御プログラムを受信し、受信した変更後制御プログラムと制御プログラムとを切り替える制御プログラム切り替え方法であって、保守装置からテスト実行が要求された場合に、保守装置から受信した変更後制御プログラムを機器への出力を禁止しつつ実行するテスト実行ステップと、保守装置から制御プログラムの切り替えが要求された場合に、変更後制御プログラムを制御プログラムとして実行するために、変更後制御プログラムと前記制御プログラムとを切り替える制御プログラム切り替えステップとを有することにある。 In order to achieve the above object, a first feature of the control program switching method according to the present invention is generated based on a control program from a maintenance device connected to a control device that controls the device by executing the control program. Is a control program switching method for switching a received control program after change and switching between the received control program after change and the control program, and the control after change received from the maintenance device when a test execution is requested from the maintenance device. A test execution step for executing the program while prohibiting output to the device, and a control program after change to execute the control program after change as a control program when switching of the control program is requested from the maintenance device; A control program switching step for switching between control programs Lies in the fact.
本発明に係る制御装置及び制御プログラム切り替え方法によれば、シミュレーションプログラムを用いることなく、利用者によって正常に動作することが確認された変更後制御プログラムを制御プログラムに替えて制御装置に組み込むことができる。 According to the control device and the control program switching method according to the present invention, it is possible to incorporate the control program after change confirmed to operate normally by the user into the control device instead of the control program without using the simulation program. it can.
以下、本発明を実施するための最良の形態について図面を参照して説明する。 The best mode for carrying out the present invention will be described below with reference to the drawings.
<第1の実施形態>
図1は、本発明の第1の実施形態である制御装置1を適用した制御システム10の構成を示した構成図である。
<First Embodiment>
FIG. 1 is a configuration diagram showing a configuration of a
図1に示すように、制御システム10はプラント機器3と接続されており、プラント機器3は制御システム10からの制御信号に基づいて制御されると共に、センサ等によりプラント機器の状態信号等を制御システム10へ送信する。
As shown in FIG. 1, the
また、制御システム10は、制御装置1及び保守装置2とを備えており、これら制御装置1と保守装置2とは、ネットワーク4を介して接続されている。
The
制御装置1は、装置全体の制御中枢となるCPU11と、CPU11が実行するオペレーションシステムや保守制御プログラム等を記憶するプログラム記憶部12と、制御装置1を動作させるために必要な各種データを記憶するデータメモリ13とを備え、これらCPU11、プログラム記憶部12及びデータメモリ13はバス14を介して接続されている。また、このバス14には、更にプラント機器3と接続するための入出力インタフェース15と、保守装置2と接続するための通信インタフェース16とが接続されている。
The
プログラム記憶部12は、ハードディスク等で構成され、オペレーティングシステムなどのプログラムの他に、保守制御プログラムが記憶されている。
The
データメモリ13には、保守制御プログラムの他にCPU11が各種の処理を実行する上において必要なデータなども適宜記憶される。
In addition to the maintenance control program, the
通信インタフェース16は、LANカードやシリアルポートなどの通信装置であり、この通信インタフェース16を介して保守装置2が接続される。
The
また、CPU11には、制御プログラム管理情報記憶手段17と、制御プログラム記憶部18とがバス19を介して接続されている。
In addition, a control program management
制御プログラム管理情報記憶部17は、オフセット記憶領域174とテストオフセット記憶領域175とを有している。そして、制御プログラム記憶部18に記憶された制御プログラムのアドレスをオフセット領域174に記憶すると共に、制御プログラムに基づいて変更された変更後制御プログラム、又は変更後制御プログラムに基づいて出力命令が変更された出力変更後制御プログラムのアドレスをテストオフセット領域175に記憶する。
The control program management
図2は、制御プログラム管理情報記憶部17に記憶された制御プログラム管理情報の一例を示した説明図である。
FIG. 2 is an explanatory diagram showing an example of the control program management information stored in the control program management
図2に示すように、制御プログラム管理情報は、「プログラムNO」(符号171)と、「登録フラグ」(符号172)と、「名称」(符号173)と、オフセット記憶領域に記憶する「オフセットアドレス」(符号174)と、テストオフセット記憶領域に記憶する「テストオフセットアドレス」(符号175)とが関連付けて記憶されている。 As shown in FIG. 2, the control program management information includes “program NO” (reference numeral 171), “registration flag” (reference numeral 172), “name” (reference numeral 173), and “offset” stored in the offset storage area. The “address” (reference numeral 174) and the “test offset address” (reference numeral 175) stored in the test offset storage area are stored in association with each other.
ここで、「プログラムNO」(符号171)は、N個まで管理されており、制御プログラムの実行される通し番号(1〜N)を示している。また、「登録フラグ」(符号172)は、制御プログラムが制御装置1に登録されているか否かを示しており、「名称」(符号173)は、保守装置2にて設定した制御プログラムの名称を示している。さらに、「オフセットアドレス」(符号174)は、制御プログラムの機械語が記憶された制御プログラム記憶部18のアドレスを示しており、「テストオフセットアドレス」(符号175)は、変更後制御プログラム又は出力変更後制御プログラムの機械語が記憶された制御プログラム記憶部18のアドレスを示している。なお、アドレスの値が、「FFFF」であれば、アドレスが記憶されていないことを示す。
Here, “program NO” (reference numeral 171) is managed up to N and indicates serial numbers (1 to N) in which the control program is executed. The “registration flag” (reference numeral 172) indicates whether or not the control program is registered in the
制御プログラム記憶部18は、制御プログラムと変更後制御プログラム又は出力変更後制御プログラムとを記憶する。
The control
図3は、制御プログラム記憶部18に記憶された制御プログラム、変更後制御プログラム、又は出力変更後制御プログラムの一例を示した説明図である。
FIG. 3 is an explanatory diagram showing an example of a control program, a changed control program, or an output changed control program stored in the control
図3に示すように、制御プログラム、変更後制御プログラム、又は出力変更後制御プログラムは、各種命令等が記述された「オペコード」(符号181)と、変数等が記述された「オペランド」(符号182)が関連付けて記憶されている。 As shown in FIG. 3, the control program, the control program after change, or the control program after output change includes an “opcode” (reference numeral 181) in which various instructions are described and an “operand” (reference numeral in which variables are described). 182) are stored in association with each other.
CPU11は、プログラム記憶部12に記憶されている保守制御プログラムを読み出し、読み出した保守制御プログラムを実行することによって記憶制御手段11aとテスト実行手段11bと制御プログラム切り替え手段11cとを実装する。
The
記憶制御手段11aは、保守装置2によりテスト実行が要求された場合に、保守装置2から変更後制御プログラムを受信し、受信した変更後制御プログラムの出力命令を機器へ出力しないように変更し、この変更後のプログラムを出力変更後制御プログラムとして制御プログラム記憶手段18に記憶させると共に、記憶させた出力変更後制御プログラムのアドレスを制御プログラム管理情報記憶手段17のテストオフセット記憶領域に記憶させる。
The storage control means 11a receives the changed control program from the
テスト実行手段11bは、記憶制御手段11aによりテストオフセット記憶領域に記憶されたアドレスに基づいて、制御プログラム記憶手段18に記憶された出力変更後制御プログラムを新たな変更後制御プログラムとして実行する。
The
制御プログラム切り替え手段11cは、保守装置2により制御プログラムの切り替えが要求された場合に、保守装置2から再度、変更後制御プログラムを受信し、記憶制御手段11aによって記憶された出力変更後制御プログラムをこの受信した変更後制御プログラムで上書きさせると共に、この上書きした変更後制御プログラムを制御プログラムとして実行するためにオフセット記憶領域に記憶されたアドレスを記憶制御手段11aによってテストオフセット記憶領域に記憶されたアドレスで上書きさせる。
The control program switching unit 11c receives the changed control program from the
保守装置2は、制御装置1が実行する制御プログラムの保守用の端末であり、CPU21、メインメモリ22、記憶部23、及び通信インタフェース24を備え、各々はバス25を介して相互に接続されている。
The
CPU21は、利用者の入力操作により制御プログラムの変更等やコンパイル等を行い、コンパイルした変更後制御プログラムを制御装置1へ送信する。
The
メインメモリ22には、CPU21が各種の処理を実行する上において必要なデータなども適宜記憶される。
The main memory 22 appropriately stores data necessary for the
記憶部23は、ハードディスク等で構成され、オペレーティングシステムなどのプログラムの他に、制御プログラム等が記憶されている。
The
通信インタフェース24は、LANカードやシリアルポートなどの通信装置であり、この通信インタフェース24を介して保守装置2が制御装置1に接続される。
The communication interface 24 is a communication device such as a LAN card or a serial port, and the
<作用>
次に、本発明の第1の実施形態である制御装置1を適用した制御システム10の作用について説明する。
<Action>
Next, the operation of the
図4は、制御システム10の保守装置2の処理手順を示したフローチャートである。
FIG. 4 is a flowchart showing a processing procedure of the
まず、保守装置2のCPU21は、利用者の入力操作により制御プログラムのテスト実行が要求されると、(ステップS101)、テスト実行要求信号を通信インタフェース24を介して制御装置1に送信する。さらに、CPU21は、記憶部23に記憶された制御プログラムを読み出し、読み出した制御プログラムを新たな制御プログラムとして生成し、記憶部23に記憶する(ステップS102)。
First, when the
そして、利用者の入力操作により、CPU21は、ステップS102において生成された新たな制御プログラムを記憶部23から読み出す。そして、利用者の入力操作により、読み出した制御プログラムが変更されると、CPU21は、この変更後制御プログラムを記憶部23に記憶すると共に、この変更後制御プログラムを通信インタフェース24を介して、制御装置1へ送信する(ステップS103)。
And CPU21 reads the new control program produced | generated in step S102 from the memory |
次に、CPU21は、利用者の入力操作により制御プログラムの切り替えが要求されると(ステップS104)、切り替え要求信号を通信インタフェース24を介して、制御装置1へを送信する(ステップS105)。さらに、CPU21は、記憶部23に記憶された変更後制御プログラムを読み出し、読み出した変更後制御プログラムを通信インタフェース24を介して、制御装置1へ送信する(ステップS106)。
Next, when switching of the control program is requested by the user's input operation (step S104), the
そして、CPU21は、記憶部23に記憶されている変更前の制御プログラムをステップS106において送信した変更後制御プログラムで上書きする(ステップS107)。
Then, the
図5は、制御システム10の制御装置1の処理手順を示したフローチャートである。
FIG. 5 is a flowchart showing a processing procedure of the
制御装置1のCPU11の記憶制御手段11aは、保守装置2から要求信号を受信すると、受信した要求信号が書き換え要求信号かテスト実行要求信号かを判定する(ステップS201)。
When the storage control unit 11a of the
そして、記憶制御手段11aは、受信した要求信号が書き換え要求信号である場合には、保守装置2から通信インタフェース16を介して制御プログラムを受信し、受信した制御プログラムを制御プログラム記憶部18に記憶させる(ステップS202)。さらに、記憶制御手段11aは、制御プログラム記憶部18に記憶させた制御プログラムのアドレスを制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶させる(ステップS203)。
When the received request signal is a rewrite request signal, the storage control unit 11a receives a control program from the
次に、CPU11は、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスに示される制御プログラム記憶部18に記憶された制御プログラムを実行する(ステップS204)。具体的には、CPU11は、制御プログラム管理情報のプログラムNO(符号171)の“1”から“N”までの登録フラグ(符号172)の値が“Yes”であるオフセットアドレス(符号174)を順に読み込み、読み込んだオフセットアドレス(符号174)に対応する制御プログラムを制御プログラム記憶部18から読み込み、実行する。
Next, the
一方、ステップS201において、受信した要求信号がテスト実行要求信号であると判定された場合、記憶制御手段11aは、変更後制御プログラムを保守装置2から通信インタフェース16を介して受信する(ステップS205)。
On the other hand, if it is determined in step S201 that the received request signal is a test execution request signal, the storage control unit 11a receives the changed control program from the
そして、記憶制御手段11aは、受信した変更後制御プログラムを制御プログラム記憶部18に記憶させると共に(ステップS206)、制御プログラム記憶部18に記憶させた変更後制御プログラムのアドレスを制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶させる(ステップS207)。
The storage control unit 11a stores the received changed control program in the control program storage unit 18 (step S206), and stores the address of the changed control program stored in the control
次に、記憶制御手段11aは、変更後制御プログラムの出力命令をプラント機器3へ出力しないように変更する(ステップS208)。具体的には、記憶制御手段11aは、制御プログラム記憶部18に記憶させた変更後制御プログラムを読み出す。そして、プラント機器へ出力しないように、読み出した変更後制御プログラムに記述されたオペコード181のうち出力命令を“NOP”に変更し、出力変更後制御プログラムとして制御プログラム記憶部18に記憶させる。
Next, the storage control unit 11a changes so as not to output the output command of the changed control program to the plant equipment 3 (step S208). Specifically, the storage control unit 11 a reads out the changed control program stored in the control
次に、CPU11は、変更前の制御プログラムを実行する(ステップS209)。具体的には、CPU11は、制御プログラム管理情報のプログラムNO(符号171)の“1”から“N”までの登録フラグ(符号172)の値が“Yes”であるオフセットアドレス(符号174)を順に読み込み、読み込んだオフセットアドレス(符号174)に対応する制御プログラムを制御プログラム記憶部18から読み込み、実行する。
Next, the
そして、CPU11のテスト実行手段11bは、制御プログラム管理情報記憶部17のテストオフセット記憶領域175にアドレスが記憶されている場合(ステップS210)、このテストオフセット記憶領域175に記憶されたアドレスが示す出力変更後制御プログラムを制御プログラム記憶部18から読み出し、実行する(ステップS211)。具体的には、CPU11のテスト実行手段11bは、制御プログラム管理情報記憶部17に記憶された制御プログラム管理情報のテストオフセットアドレス(符号175)の値を読み込み、この値が“FFFF”ではないテストオフセットアドレス(符号175)に対応する出力変更後制御プログラムを制御プログラム記憶部18から読み込み、実行する。
When the address is stored in the test offset
次に、CPU11の制御プログラム切り替え手段11cが、保守装置2から通信インタフェース16を介して切り替え要求信号を受信した場合(ステップS212)、記憶制御手段11aは、再度、変更後制御プログラムを保守装置2から通信インタフェース16を介して受信する(ステップS213)。
Next, when the control program switching unit 11c of the
そして、制御プログラム切り替え手段11cは、ステップS208において制御プログラム記憶部18が記憶した出力変更後制御プログラムを、ステップS213において受信した変更後制御プログラムで上書きさせる(ステップS214)。さらに、制御プログラム切り替え手段11cは、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスを、テストオフセット記憶領域175に記憶されたアドレスで上書きさせる(ステップS215)。
Then, the control program switching unit 11c overwrites the post-change control program stored in the control
次に、制御プログラム切り替え手段11cは、制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶されたアドレスを削除させる(ステップS216)。
Next, the control program switching unit 11c deletes the address stored in the test offset
図6は、制御システム10の処理の一例を説明した模式図である。
FIG. 6 is a schematic diagram illustrating an example of processing of the
図6に示すように、まず、保守装置2は、利用者の入力操作により制御プログラムのテスト実行が要求されると、記憶部23に記憶された変更前の制御プログラム26をコピーして新たな制御プログラムを生成する。
As shown in FIG. 6, first, when the
そして、利用者の入力操作により、生成された新たな制御プログラムが変更されて変更後制御プログラムが生成される。図6に示した例では、制御プログラム26の「ADD」命令が「DIV」命令に変更されて変更後制御プログラム27が生成される。保守装置2は、この変更された変更後制御プログラム27を記憶部23に記憶する。
And the new control program produced | generated is changed by a user's input operation, and the control program after a change is produced | generated. In the example shown in FIG. 6, the “ADD” instruction of the
次に、保守装置2は、テスト実行要求信号と変更後制御プログラム27とをネットワーク4を介して制御装置1へ送信する。
Next, the
制御装置1は、テスト実行要求信号を受信した場合には、保守装置2から受信した変更後制御プログラム27を制御プログラム記憶部18に記憶させると共に、制御プログラム記憶部18に記憶させた制御プログラム27のアドレスを制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶させる。
When receiving the test execution request signal, the
次に、制御装置1は、変更後制御プログラム27の出力変数を機器へ出力しないように、例えば“ST”等の出力命令であるオペコード181を “NOP”に変更した後、出力変更後制御プログラム28として制御プログラム記憶部18の同じアドレスに記憶する。
Next, the
そして、制御装置1は、制御プログラム記憶部18に記憶された制御プログラム26を実行し、制御プログラム管理情報記憶部17のテストオフセット領域175にデータが記憶されている場合は、このテストオフセット領域175に記憶されたアドレスに対応する出力変更後制御プログラム28を実行する。
Then, the
次に、保守装置2は、利用者の入力操作により制御プログラムの切り替えが要求されると、切り替え要求信号を制御装置1へを送信すると共に、記憶部23に記憶された変更後制御プログラム27を読み出し、読み出した変更後制御プログラム27を制御装置1へ送信する。
Next, when switching of the control program is requested by the user's input operation, the
次に、切り替え要求信号と変更後制御プログラム27とを受信した制御装置1は、制御プログラム記憶部18に記憶された出力変更後制御プログラム28を、受信した変更後制御プログラム27で上書きする。さらに、制御装置1は、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスを、テストオフセット記憶領域175に記憶されたアドレスで上書きする。図6に示した例では、例えば、制御プログラム管理情報記憶部17の「プログラムNO」(符号171)が“1”の「オフセットアドレス」(符号174)の値“offset1”を、「テストオフセットアドレス」(符号175)の値“offset_x”で上書きする。
Next, the
そして、制御装置1は、制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶されたアドレスを削除する。
Then, the
以上のように、第1の実施形態である制御装置1によれば、制御プログラム26を変更した場合、利用者はプラント機器3からの入力信号を用いて出力変更後制御プログラム28に基づいて実行された実行結果を確認した後、制御装置1に変更後制御プログラム27を制御装置1に反映することができる。そのため、プラント機器3に悪影響を与えることなく、変更後制御プログラム27に基づいて制御装置1を正常に動作させることができる。
As described above, according to the
なお、第1の実施形態である制御装置1では、保守装置2によりテスト実行が要求された場合に、変更後制御プログラムを出力変更後制御プログラムで上書きさせる記憶制御手段11aと、保守装置2により制御プログラムの切り替えが要求された場合に、保守装置2から再度、変更後制御プログラムを受信する制御プログラム切り替え手段11cとを有する構成としたが、本発明に係る制御装置はこれに限らない。
In the
例えば、保守装置2によりテスト実行が要求された場合に、保守装置2から受信した変更後制御プログラムを制御プログラム記憶手段18に記憶させると共に、出力変更後制御プログラムを新たに制御プログラム記憶手段18に記憶させる記憶制御手段11aと、保守装置2により制御プログラムの切り替えが要求された場合に、再度、変更後制御プログラムを受信することなく、出力変更後制御プログラムを記憶された変更後制御プログラムで上書きさせると共に、この上書きした変更後制御プログラムを制御プログラムとして実行するためにオフセット記憶領域に記憶されたアドレスを記憶制御手段11aによってテストオフセット記憶領域に記憶されたアドレスで上書きさせる制御プログラム切り替え手段11cとを備える構成としても良い。
For example, when a test execution is requested by the
<第2の実施形態>
本発明の第1の実施形態である制御装置1は、切り替え要求信号を受信した場合に、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスを、テストオフセット記憶領域175に記憶されたアドレスで上書きすることにより、変更後制御プログラムを制御装置1に反映したが、本発明に係る制御装置はこれに限らない。
<Second Embodiment>
When receiving the switching request signal, the
例えば、本発明の第2の実施形態である制御装置5では、切り替え要求信号を受信した場合に、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスと、テストオフセット記憶領域175に記憶されたアドレスとを入れ替えることにより、変更後の制御プログラムを制御装置5に反映する。
For example, in the control device 5 according to the second embodiment of the present invention, the address stored in the offset
図7は、本発明の第2の実施形態である制御装置5の処理手順を示したフローチャートである。 FIG. 7 is a flowchart showing a processing procedure of the control device 5 according to the second embodiment of the present invention.
制御装置5のCPU11の記憶制御手段11aは、保守装置2から要求信号を受信すると、受信した要求信号が書き換え要求信号かテスト実行要求信号かを判定する(ステップS301)。
When the storage control unit 11a of the
そして、記憶制御手段11aは、受信した要求信号が書き換え要求信号である場合には、保守装置2から通信インタフェース16を介して制御プログラムを受信し、受信した制御プログラムを制御プログラム記憶部18に記憶させる(ステップS302)。さらに、記憶制御手段11aは、制御プログラム記憶部18に記憶させた制御プログラムのアドレスを制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶させる(ステップS303)。
When the received request signal is a rewrite request signal, the storage control unit 11a receives a control program from the
次に、CPU11は、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスに示される制御プログラム記憶部18に記憶された制御プログラムを実行する(ステップS304)。具体的には、CPU11は、制御プログラム管理情報のプログラムNO(符号171)の“1”から“N”までの登録フラグ(符号172)の値が“Yes”であるオフセットアドレス(符号174)を順に読み込み、読み込んだオフセットアドレス(符号174)に対応する制御プログラムを制御プログラム記憶部18から読み込み、実行する。
Next, the
一方、ステップS301において、受信した要求信号がテスト実行要求信号であると判定された場合、記憶制御手段11aは、変更後制御プログラムを保守装置2から通信インタフェース16を介して受信する(ステップS305)。
On the other hand, if it is determined in step S301 that the received request signal is a test execution request signal, the storage control unit 11a receives the changed control program from the
そして、記憶制御手段11aは、受信した変更後制御プログラムを制御プログラム記憶部18に記憶させると共に(ステップS306)、制御プログラム記憶部18に記憶させた変更後制御プログラムのアドレスを制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶させる(ステップS307)。
The storage control unit 11a stores the received changed control program in the control program storage unit 18 (step S306), and stores the address of the changed control program stored in the control
次に、CPU11は、変更前の制御プログラムを実行する(ステップS308)。具体的には、CPU11は、制御プログラム管理情報のプログラムNO(符号171)の“1”から“N”までの登録フラグ(符号172)の値が“Yes”であるオフセットアドレス(符号174)を順に読み込み、読み込んだオフセットアドレス(符号174)に対応する制御プログラムを制御プログラム記憶部18から読み込み、実行する。
Next, the
そして、CPU11のテスト実行手段11bは、制御プログラム管理情報記憶部17のテストオフセット領域175にデータが記憶されている場合(ステップS309)、変更後制御プログラムの出力変数をプラント機器3へ出力しないように出力を切り離した上で(ステップS310)、テストオフセット領域175に記憶されたアドレスが示す変更後制御プログラムを制御プログラム記憶部18から読み出し、実行する(ステップS311)。具体的には、CPU11のテスト実行手段11cは、制御プログラム管理情報記憶部17に記憶された制御プログラム管理情報のテストオフセットアドレス(符号175)の値を読み込み、この値が“FFFF”ではないテストオフセットアドレス(符号175)に対応する変更後制御プログラムを制御プログラム記憶部18から読み込み、出力を切り離した上で、実行する。これにより、オフセットアドレス(符号174)に対応する制御プログラムの機器へ出力を許可し、テストオフセットアドレス(符号175)に対応する変更後制御プログラムの機器への出力を禁止することができる。
Then, when data is stored in the test offset
次に、CPU11の制御プログラム切り替え手段11cは、保守装置2から通信インタフェース16を介して、切り替え要求信号を受信した場合(ステップS312)、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスと、テストオフセット記憶領域175に記憶されたアドレスとを入れ替える(ステップS313)。具体的には、制御プログラム切り替え手段11cは、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスをコピーして、制御プログラム管理情報記憶部17内に一時的に記憶させておく。そして、制御プログラム切り替え手段11cは、テストオフセット記憶領域175に記憶されたアドレスをオフセット記憶領域174に記憶されたアドレスに上書きさせた後に、一時的に記憶させたアドレスを、テストオフセット記憶領域175に記憶されたアドレスに上書きさせる。
Next, when the control program switching unit 11c of the
図8は、制御装置5を備えた制御システム10の処理の一例を説明した模式図である。
FIG. 8 is a schematic diagram illustrating an example of processing of the
図8に示すように、まず、保守装置2は、利用者の入力操作により制御プログラムのテスト実行が要求されると、記憶部23に記憶された変更前の制御プログラム26をコピーして新たな制御プログラムを生成する。
As shown in FIG. 8, first, when the
そして、利用者の入力操作により、生成された新たな制御プログラムが変更されて、変更後制御プログラム27が生成される。図8に示した例では、制御プログラム26の「ADD」命令が「DIV」命令に変更されて、変更後制御プログラム27が生成されている。保守装置2は、この変更された変更後制御プログラム27を記憶部23に記憶する。
And the new control program produced | generated is changed by the user's input operation, and the
次に、保守装置2は、テスト実行要求信号とこの変更後制御プログラム27とをネットワーク4を介して制御装置5へ送信する。
Next, the
制御装置5は、テスト実行要求信号を受信した場合には、保守装置2から受信した変更後制御プログラム27を制御プログラム記憶部18に記憶させると共に、制御プログラム記憶部18に記憶させた変更後制御プログラム27のアドレスを制御プログラム管理情報記憶部17のテストオフセット記憶領域175に記憶させる。
When receiving the test execution request signal, the control device 5 stores the changed
そして、制御装置5は、制御プログラム記憶部18に記憶された制御プログラム26を実行し、制御プログラム管理情報記憶部17のテストオフセット領域175にデータが記憶されている場合は、このテストオフセット領域175に記憶されたアドレスに対応する変更後制御プログラム27を出力を切り離して実行する。
Then, the control device 5 executes the
次に、保守装置2は、利用者の入力操作により制御プログラムの切り替えが要求されると、切り替え要求信号を制御装置5へ送信する。
Next, when the switching of the control program is requested by the user's input operation, the
そして、制御装置5は、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスと、テストオフセット記憶領域175に記憶されたアドレスとを入れ替える。図8に示した例では、例えば、制御プログラム管理情報記憶部17の「プログラムNO」(符号171)が“1”の「オフセットアドレス」(符号174)の値“offset1”と、「テストオフセットアドレス」(符号175)の値“offset_x”とを入れ替える。
Then, the control device 5 replaces the address stored in the offset
このように、制御プログラム管理情報記憶部17のオフセット記憶領域174に記憶されたアドレスと、テストオフセット記憶領域175に記憶されたアドレスとを入れ替えるので、入れ替えた後も、入れ替え前の制御プログラム及びアドレスが、各々制御プログラム記憶部18及び制御プログラム管理情報記憶部17に記憶されている。
As described above, the address stored in the offset
そのため、制御プログラムの入れ替え後にプラント機器に想定外の動作が発生した場合、制御装置5は、再度制御プログラムの入れ替えを行うことにより、制御装置5は、記憶されている変更前の制御プログラムに基づいて、プラント機器を制御することができる。 Therefore, when an unexpected operation occurs in the plant equipment after replacement of the control program, the control device 5 performs replacement of the control program again, so that the control device 5 is based on the stored control program before change. The plant equipment can be controlled.
この場合、制御装置5は、入れ替え直前の入力値に基づいて変更前の制御プログラムを実行するので、ローカル変数の初期値等の影響により出力値が急変することを防止ことができる。 In this case, since the control device 5 executes the control program before the change based on the input value immediately before the replacement, it is possible to prevent the output value from changing suddenly due to the influence of the initial value of the local variable or the like.
1,5…制御装置
2…保守装置
3…プラント機器
4…ネットワーク
10…制御システム
11…CPU
11a…記憶制御手段
11b…制御プログラム切り替え手段
12…プログラム記憶部
13…データメモリ
15…入出力インタフェース
16…通信インタフェース
17…制御プログラム管理情報記憶部(制御プログラム管理情報記憶手段)
18…制御プログラム記憶部(制御プログラム記憶手段)
DESCRIPTION OF
DESCRIPTION OF SYMBOLS 11a ... Storage control means 11b ... Control program switching means 12 ...
18 ... Control program storage section (control program storage means)
Claims (5)
前記保守装置からテスト実行が要求された場合に、前記保守装置から受信した前記変更後制御プログラムを前記機器への出力を禁止しつつ実行するテスト実行手段と、
前記保守装置から前記制御プログラムの切り替えが要求された場合に、前記変更後制御プログラムを前記制御プログラムとして実行するために、前記変更後制御プログラムと前記制御プログラムとを切り替える制御プログラム切り替え手段と、
を備えたことを特徴とする制御装置。 The control of the device is performed by executing the control program, the changed control program generated based on the control program is received from the connected maintenance device, and the received changed control program and the control program are switched. A control device,
Test execution means for executing the control program after change received from the maintenance device while prohibiting output to the device when a test execution is requested from the maintenance device;
Control program switching means for switching between the control program after change and the control program in order to execute the control program after change as the control program when switching of the control program is requested from the maintenance device;
A control device comprising:
前記制御プログラム記憶手段に記憶された前記制御プログラムのアドレスをオフセット領域に記憶すると共に、少なくとも前記変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、
前記保守装置によりテスト実行が要求された場合に、前記保守装置から前記変更後制御プログラムを受信し、受信した変更後制御プログラムの出力命令を前記機器へ出力しないように変更し、この変更後のプログラムを出力変更後制御プログラムとして前記制御プログラム記憶手段に記憶させると共に、記憶させた該出力変更後制御プログラムのアドレスを前記制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを更に備え、
前記テスト実行手段は、
前記記憶制御手段により前記テストオフセット記憶領域に記憶されたアドレスに基づいて、前記制御プログラム記憶手段に記憶された出力変更後制御プログラムを新たな変更後制御プログラムとして実行し、
前記制御プログラム切り替え手段は、
前記保守装置により制御プログラムの切り替えが要求された場合に、前記保守装置から再度、前記変更後制御プログラムを受信し、前記記憶制御手段によって記憶された前記出力変更後制御プログラムをこの再度受信した前記変更後制御プログラムで上書きさせると共に、この上書きした前記変更後制御プログラムを前記制御プログラムとして切替えて実行するために前記オフセット記憶領域に記憶されたアドレスを前記記憶制御手段によって前記テストオフセット記憶領域に記憶されたアドレスで上書きさせる
ことを特徴とする請求項1に記載の制御装置。 Control program storage means for storing at least the control program and the changed control program;
Control program management information storage means for storing the address of the control program stored in the control program storage means in an offset area and storing at least the address of the changed control program in a test offset area;
When the test execution is requested by the maintenance device, the changed control program is received from the maintenance device, and the output instruction of the received changed control program is changed so as not to be output to the device. Storage control means for storing a program in the control program storage means as a control program after output change, and storing the address of the stored control program after output change in a test offset storage area of the control program management information storage means; In addition,
The test execution means includes
Based on the address stored in the test offset storage area by the storage control unit, the post-output change control program stored in the control program storage unit is executed as a new post-change control program,
The control program switching means is
When switching of the control program is requested by the maintenance device, the control program after change is received again from the maintenance device, and the control program after output change stored by the storage control means is received again. Overwrite with the control program after change, and store the address stored in the offset storage area in the test offset storage area by the storage control means for switching and executing the overwritten control program as the control program. The control device according to claim 1, wherein the control device is overwritten with the designated address.
前記制御プログラム記憶手段に記憶された前記制御プログラムのアドレスをオフセット領域に記憶すると共に、少なくとも前記変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、
前記保守装置によりテスト実行が要求された場合に、前記保守装置から受信した変更後制御プログラムを前記制御プログラム記憶手段に記憶させると共に、前記受信した変更後制御プログラムの出力命令を前記機器へ出力しないように変更し、この変更後のプログラムを出力変更後制御プログラムとして新たに前記制御プログラム記憶手段に記憶させ、この記憶させた該出力変更後制御プログラムのアドレスを前記制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを更に備え、
前記テスト実行手段は、
前記記憶制御手段により前記テストオフセット記憶領域に記憶されたアドレスに基づいて、前記制御プログラム記憶手段に記憶された出力変更後制御プログラムを新たな変更後制御プログラムとして実行し、
前記制御プログラム切り替え手段は、
前記保守装置により制御プログラムの切り替えが要求された場合に、前記記憶制御手段により記憶された前記出力変更後制御プログラムを前記記憶制御手段により記憶された前記変更後制御プログラムで上書きさせると共に、この上書きした前記変更後制御プログラムを前記制御プログラムとして実行するために前記オフセット記憶領域に記憶されたアドレスを前記記憶制御手段によって前記テストオフセット記憶領域に記憶されたアドレスで上書きさせる
ことを特徴とする請求項1に記載の制御装置。 Control program storage means for storing at least the control program and the changed control program;
Control program management information storage means for storing the address of the control program stored in the control program storage means in an offset area and storing at least the address of the changed control program in a test offset area;
When a test execution is requested by the maintenance device, the changed control program received from the maintenance device is stored in the control program storage unit, and the output instruction of the received changed control program is not output to the device. And the new program is stored in the control program storage means as a control program after output change, and the address of the control program after output change is stored in the test of the control program management information storage means. Storage control means for storing in the offset storage area,
The test execution means includes
Based on the address stored in the test offset storage area by the storage control unit, the post-output change control program stored in the control program storage unit is executed as a new post-change control program,
The control program switching means is
When switching of the control program is requested by the maintenance device, the control program after the output change stored by the storage control unit is overwritten with the control program after the change stored by the storage control unit, and this overwriting is performed. The address stored in the offset storage area is overwritten with the address stored in the test offset storage area by the storage control means in order to execute the changed control program as the control program. The control apparatus according to 1.
前記制御プログラム記憶手段に記憶された制御プログラムのアドレスをオフセット領域に記憶すると共に、前記変更後制御プログラムのアドレスをテストオフセット領域に記憶する制御プログラム管理情報記憶手段と、
前記保守装置によりテスト実行が要求された場合に、前記変更後制御プログラムを受信し、この受信した変更後制御プログラムを前記制御プログラム記憶手段に記憶させると共に、記憶させた変更後制御プログラムのアドレスを前記制御プログラム管理情報記憶手段のテストオフセット記憶領域に記憶させる記憶制御手段とを備え、
前記テスト実行手段は、
前記記憶制御手段により前記テストオフセット記憶領域に記憶されたアドレスに基づいて、前記制御プログラム記憶手段に記憶された変更後制御プログラムを前記機器へ出力しないように切り離して実行し、
前記制御プログラム切り替え手段は、
前記保守装置により制御プログラムの切り替えが要求された場合に、前記制御プログラム記憶手段に記憶された変更後制御プログラムを前記制御プログラムとして実行するために、前記オフセット記憶領域に記憶されたアドレスと前記テストオフセット記憶領域に記憶されたアドレスとを入れ替える
ことを特徴とする請求項1に記載の制御装置。 Control program storage means for storing the control program and the changed control program;
Control program management information storage means for storing the address of the control program stored in the control program storage means in an offset area and storing the address of the changed control program in a test offset area;
When the test execution is requested by the maintenance device, the control program after change is received, the received control program after change is stored in the control program storage means, and the address of the stored control program after change is stored. Storage control means for storing in a test offset storage area of the control program management information storage means,
The test execution means includes
Based on the address stored in the test offset storage area by the storage control means, the control program after change stored in the control program storage means is executed separately so as not to be output to the device,
The control program switching means is
In order to execute the control program after change stored in the control program storage means as the control program when switching of the control program is requested by the maintenance device, the address stored in the offset storage area and the test The control device according to claim 1, wherein the address stored in the offset storage area is replaced.
前記保守装置からテスト実行が要求された場合に、前記保守装置から受信した前記変更後制御プログラムを前記機器への出力を禁止しつつ実行するテスト実行ステップと、
前記保守装置から制御プログラムの切り替えが要求された場合に、前記変更後制御プログラムを前記制御プログラムとして実行するために、前記変更後制御プログラムと前記制御プログラムとを切り替える制御プログラム切り替えステップと、
を有することを特徴とする制御プログラム切り替え方法。 A changed control program generated based on the control program is received from a maintenance device connected to a control device that controls the device by executing the control program, and the received changed control program, the control program, A control program switching method for switching between
A test execution step of executing the control program after change received from the maintenance device while prohibiting output to the device when a test execution is requested from the maintenance device;
A control program switching step of switching between the control program after change and the control program in order to execute the control program after change as the control program when switching of the control program is requested from the maintenance device;
A control program switching method characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007158633A JP2008310640A (en) | 2007-06-15 | 2007-06-15 | Control device and control program switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007158633A JP2008310640A (en) | 2007-06-15 | 2007-06-15 | Control device and control program switching method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008310640A true JP2008310640A (en) | 2008-12-25 |
Family
ID=40238175
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007158633A Pending JP2008310640A (en) | 2007-06-15 | 2007-06-15 | Control device and control program switching method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008310640A (en) |
-
2007
- 2007-06-15 JP JP2007158633A patent/JP2008310640A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5039428B2 (en) | Programmable controller and PLC system | |
CN110663006B (en) | Method for performing failover of programmable logic controller and controlling physical system | |
JP6830800B2 (en) | Methods for programming safety controllers and safety controllers | |
EP3151071B1 (en) | System for updating a control program while actively controlling an industrial process | |
JP2017142794A (en) | Programmable controller system, controller thereof, support device, hci device, and duplex controller system | |
WO2019121516A1 (en) | Seamless and safe upgrade of software intensive systems during operation | |
US20120310379A1 (en) | Programmable controller | |
JP6171385B2 (en) | Controller and information processing apparatus | |
JP2008310640A (en) | Control device and control program switching method | |
JP2005158026A (en) | Field bus system | |
US11022948B2 (en) | Safety control device and method for changing a range of functions of a safety control device | |
WO2013005350A1 (en) | Symbol table generation method, method for communication with peripheral apparatus and programmable logic controller | |
JP4849078B2 (en) | Programmable logic controller and programmable logic controller logic update support tool | |
CN114637496A (en) | Configuration data processing system, method and electronic equipment | |
CN110764840B (en) | Method, device and system for wirelessly debugging android device | |
CN114244828B (en) | Data transmission method and vehicle-mounted dynamic data management system | |
JP3464417B2 (en) | Test display method of screen data for control device | |
JPH07306710A (en) | Device and system for monitoring and control | |
CN103052920A (en) | Programmable controller system, tool device, tool program and recording medium, and programmable controller | |
US20210110006A1 (en) | Controller, Method for Managing License, and Program for Managing License | |
JP2005038261A (en) | Programmable controller system and program development support device | |
JP2002063045A (en) | Changing method of operating program | |
JP2009223861A (en) | Logic verification system | |
JP2004272629A (en) | Device for programmable controller, and programmable updating method and program starting method for the same | |
WO2006011271A1 (en) | Field bus system |