JP6946804B2 - Control device, control system and control method - Google Patents
Control device, control system and control method Download PDFInfo
- Publication number
- JP6946804B2 JP6946804B2 JP2017139392A JP2017139392A JP6946804B2 JP 6946804 B2 JP6946804 B2 JP 6946804B2 JP 2017139392 A JP2017139392 A JP 2017139392A JP 2017139392 A JP2017139392 A JP 2017139392A JP 6946804 B2 JP6946804 B2 JP 6946804B2
- Authority
- JP
- Japan
- Prior art keywords
- event
- detection
- condition
- detection condition
- storage area
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Description
本発明は、制御装置、制御システム及び制御方法に関する。 The present invention relates to control devices, control systems and control methods.
各アナログ入力信号を第1の所定周期毎に収集してタイムスタンプを付してサンプリングデータとして格納する制御装置が知られている(例えば特許文献1参照)。
特許文献1 特開2008−204166号公報
There is known a control device that collects each analog input signal at a first predetermined cycle, attaches a time stamp, and stores it as sampling data (see, for example, Patent Document 1).
従来、被制御機器の制御に関するイベントの検出条件を更新する場合に、現在の検出条件から変更がないイベントを継続的に監視することができない場合がある。 Conventionally, when updating the event detection conditions related to the control of the controlled device, it may not be possible to continuously monitor the events that have not changed from the current detection conditions.
第1の態様において、制御装置は、被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する検出部と、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出し、第1の検出条件により検出されるイベントに関する情報を保持し、第2の検出条件により検出されるイベントに関する情報を初期化する条件更新部とを備える。 In the first aspect, the control device renews the detection unit that detects the event and the current detection condition by repeatedly evaluating the predetermined detection conditions for detecting the event related to the control of the controlled device. When updating to the detection condition, the first detection condition in which the condition is not changed and the second detection condition in which the condition is changed are extracted from the current detection conditions, and the detection is performed by the first detection condition. It is provided with a condition update unit that holds information about the event to be detected and initializes the information about the event detected by the second detection condition.
情報は、検出条件の評価結果を示してよい。 The information may indicate the evaluation result of the detection condition.
情報は、検出条件により検出されるイベントの状態を示してよい。 The information may indicate the state of the event detected by the detection condition.
検出部は、検出条件を繰り返し評価することにより、イベントの状態の遷移を検出してよい。制御装置は、検出部がイベントの状態が遷移したことを検出した場合に、当該遷移が生じたことを記憶するイベント記憶部をさらに備えてよい。 The detection unit may detect the transition of the state of the event by repeatedly evaluating the detection conditions. The control device may further include an event storage unit that stores the occurrence of the transition when the detection unit detects that the state of the event has changed.
条件更新部は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、条件式に変更がない場合であっても、他の検出条件に変更がある場合には、条件式を含む検出条件を第2の検出条件として抽出してよい。 When updating the current detection condition to a new detection condition, the condition update unit does not change the conditional expression for the detection condition including the conditional expression using the evaluation result of other detection conditions among the current detection conditions. Even in this case, if there is a change in other detection conditions, the detection condition including the conditional expression may be extracted as the second detection condition.
互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する検出条件記憶部をさらに備えてよい。現在の検出条件は、第1の記憶領域及び第2の記憶領域のうちの一方の記憶領域に記憶されてよい。検出部は、一方の記憶領域を参照して、イベントを検出するための検出条件を繰り返し評価してよい。条件更新部は、現在の検出条件に対して新たな検出条件の少なくとも一部を反映した検出条件を、第1の記憶領域及び第2の記憶領域のうち他方の記憶領域に記憶させ、検出部が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替えてよい。 A detection condition storage unit having a first storage area and a second storage area capable of storing different detection conditions may be further provided. The current detection condition may be stored in one of the first storage area and the second storage area. The detection unit may refer to one of the storage areas and repeatedly evaluate the detection conditions for detecting the event. The condition update unit stores the detection condition reflecting at least a part of the new detection condition with respect to the current detection condition in the other storage area of the first storage area and the second storage area, and the detection unit. The storage area referenced by may be switched from one storage area to the other storage area.
第1の記憶領域及び第2の記憶領域は、複数の検出条件のそれぞれが有効であるか否かを示す値を記憶する有効設定領域を含んでよい。検出部は、有効設定領域に有効である旨を示す値が記憶される検出条件を評価してよい。条件更新部は、他方の記憶領域の有効設定領域において、第2の検出条件が有効でない旨を示す値を記憶させるとともに、第1の検出条件が有効である旨を示す値を記憶させ、検出部が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替えてよい。 The first storage area and the second storage area may include an effective setting area for storing a value indicating whether or not each of the plurality of detection conditions is valid. The detection unit may evaluate the detection condition in which a value indicating that the value is valid is stored in the valid setting area. The condition update unit stores a value indicating that the second detection condition is not valid in the valid setting area of the other storage area, and stores a value indicating that the first detection condition is valid, and detects the value. The storage area referenced by the unit may be switched from one storage area to the other storage area.
条件更新部は、新たな検出条件に更新する場合に、現在の検出条件から削除される第3の検出条件を抽出し、検出部が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える前に、他方の記憶領域の有効設定領域において、第3の検出条件が有効でない旨を示す値を記憶させてよい。 The condition update unit extracts a third detection condition to be deleted from the current detection condition when updating to a new detection condition, and changes the storage area referred to by the detection unit from one storage area to the other storage area. Before switching to, a value indicating that the third detection condition is not valid may be stored in the valid setting area of the other storage area.
第2の態様において、制御システムは、上記の制御装置と、監視装置とを備え、制御装置は、イベントの検出結果を監視装置に送信する。 In the second aspect, the control system includes the above-mentioned control device and a monitoring device, and the control device transmits an event detection result to the monitoring device.
第3の態様において、制御方法は、被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する検出段階と、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する段階と、第1の検出条件により検出されるイベントに関する情報を保持し、第2の検出条件により検出されるイベントに関する情報を初期化する段階とを備える。 In the third aspect, the control method renews the detection stage for detecting an event and the current detection condition by repeatedly evaluating a predetermined detection condition for detecting an event related to the control of the controlled device. When updating to the detection conditions, the first detection condition in which the conditions are not changed and the second detection condition in which the conditions are changed are extracted from the current detection conditions, and the first detection condition is used. It includes a stage of holding information about the event to be detected and initializing the information about the event detected by the second detection condition.
なお、上記の発明の概要は、本発明の特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。 The outline of the above invention does not list all the features of the present invention. Sub-combinations of these feature groups can also be inventions.
以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。 Hereinafter, the present invention will be described through embodiments of the invention, but the following embodiments do not limit the inventions that fall within the scope of the claims. Also, not all combinations of features described in the embodiments are essential to the means of solving the invention.
図1は、一実施形態における制御システム10の概略的な構成を示す。制御システム10は、支援/監視装置20と、CPUモジュール100と、IOモジュール120a及びIOモジュール120bと、被制御機器40a、被制御機器40b及び被制御機器40cとを備える。
FIG. 1 shows a schematic configuration of the
本実施形態において、IOモジュール120a及びIOモジュール120bを、IOモジュール120と総称する場合がある。また、被制御機器40a、被制御機器40b及び被制御機器40cを、被制御機器40と総称する場合がある。CPUモジュール100は、制御装置の一例である。IOモジュール120は、CPUモジュール100による制御に従って、被制御機器40との間でデータの入出力を行う入出力装置の一例である。
In the present embodiment, the
支援/監視装置20は、パーソナルコンピュータ等のコンピュータにより実現される。支援/監視装置20は、ネットワークを通じてCPUモジュール100と通信する。CPUモジュール100は、ネットワーク又はバスを通じて、IOモジュール120a及びIOモジュール120bと通信する。IOモジュール120aは、被制御機器40aに接続される。IOモジュール120aは、被制御機器40aとの間のデータの入出力を担う。IOモジュール120bは、被制御機器40b及び被制御機器40cに接続される。IOモジュール120bは、被制御機器40b及び被制御機器40cのそれぞれのとの間のデータの入出力を担う。なお、CPUモジュール100の数、IOモジュール120の数、及び、被制御機器40の総数、IOモジュール120a及びIOモジュール120bにそれぞれ接続される被制御機器40は、本実施形態に示される数に限定されない。
The support /
制御システム10は、工場やプラント等の産業施設において用いられてよい。制御システム10は、ファクトリーオートメーションの少なくとも一部として用いられてよい。支援/監視装置20、CPUモジュール100及びIOモジュール120は、産業用制御システムであってよい。被制御機器40は、支援/監視装置20、CPUモジュール100及びIOモジュール120による制御対象となる機器である。被制御機器40は、モータ、エンコーダ、ポンプ、バルブ、カメラ、各種センサ等であってよい。被制御機器40は、例えば産業機械であってよい。CPUモジュール100及びIOモジュール120は、それぞれプログラマブルロジックコントローラ(PLC)であってよい。
The
支援/監視装置20は、制御システム10の監視制御をする。支援/監視装置20は、CPUモジュール100との間でメッセージを送受信することにより、制御システム10を監視制御する。支援/監視装置20は、被制御機器40、CPUモジュール100及びIOモジュール120の少なくとも1つのステータス情報をCPUモジュール100から受信し、制御システム10が制御する工程に従って、CPUモジュール100に各種の制御指示を出力する。また、支援/監視装置20は、イベント設定ツール機能を有する。例えば、支援/監視装置20は、ユーザからの指示に基づいて、制御システム10におけるイベントの検出条件を設定する。支援/監視装置20は、ユーザからの指示に基づいて、イベントの検出条件の追加、更新又は削除をする。
The support /
IOモジュール120は、被制御機器40の状態を示す情報や、被制御機器40が計測した結果を示す情報等のデータを、入力データとして被制御機器40から取得する。IOモジュール120は、被制御機器40から入力された入力データを、CPUモジュール100に出力する。
The
CPUモジュール100は、ラダー図等を通じて生成されたシーケンス制御のための制御アプリケーションプログラムを有する。制御アプリケーションプログラムは、被制御機器40を制御するための制御プログラムの一例である。CPUモジュール100は、支援/監視装置20から取得したメッセージと、IOモジュール120を通じて取得した入力データとに基づいて、被制御機器40への制御データを生成して、IOモジュール120に出力する。IOモジュール120は、CPUモジュール100から取得した制御データに基づいて、被制御機器40に制御信号を出力する。
The
CPUモジュール100は、支援/監視装置20から指定されたイベントの検出条件に従って、イベントを検出する。例えば、CPUモジュール100は、検出条件で定められる変数の値が検出条件で定められる検出閾値を超える場合に、イベントが発生したと判断して、内部のイベント状態変数を「発生中」に設定して、イベントログデータに格納して支援/監視装置20に送信する。これにより、ユーザはイベントが発生したことを認識することができる。
The
CPUモジュール100は、検出条件を更新する旨の指示を支援/監視装置20から受信した場合、新たな検出条件と現在の検出条件とを比較して、現在の検出条件のうち、検出閾値等の条件に変更のある検出条件と、変更のない検出条件とを抽出する。そして、CPUモジュール100は、変更のある検出条件に対応するイベント状態変数の値を初期化する一方、変更されない検出条件に対応するイベント状態変数については、その値を初期化することなく、保持する。これにより、現在の検出条件から変更がないイベントを継続的に検出することができる。
When the
具体的には、検出条件の変更がないイベントが、検出条件の更新指示前から発生している場合を取り上げて説明する。もし、更新指示に応じて全てのイベント状態変数を初期化すると、検出条件に変更がないイベントのイベント状態変数が、更新直後に「発生中」に変化し得る。そのため、ユーザは、監視装置で収集されたイベントログデータを解析するときに、更新前後のイベント状態変数や検出条件の更新内容等に基づいて、本当にイベントが新たに発生したのか、既に発生していたイベントが検出条件の更新処理に伴って検出されたのかを解析する必要が生じる。これに対し、CPUモジュール100によれば、上述したように、検出条件に変更がないイベントのイベント状態変数の値を初期化せずに保持するので、当該イベントを連続的に監視することが可能になる。
Specifically, a case where an event in which the detection condition is not changed occurs before the detection condition update instruction will be described will be described. If all event state variables are initialized in response to the update instruction, the event state variables of the event for which the detection condition has not changed may change to "currently occurring" immediately after the update. Therefore, when the user analyzes the event log data collected by the monitoring device, whether a new event has actually occurred or has already occurred based on the event status variables before and after the update and the updated contents of the detection conditions. It becomes necessary to analyze whether or not the event was detected as a result of the detection condition update process. On the other hand, according to the
図2は、CPUモジュール100の機能構成を概略的に示す。CPUモジュール100は、制御部200と、データメモリ部220と、ワークメモリ部210と、入出力部240と、不揮発性メモリ部280と、通信部270と、バス290とを備える。制御部200は、検出部202と条件更新部204とを有する。
FIG. 2 schematically shows the functional configuration of the
制御部200は、ワークメモリ部210、データメモリ部220、入出力部240、不揮発性メモリ部280、及び通信部270と、バス290を通じて接続される。制御部200は、バス290を通じて、ワークメモリ部210、データメモリ部220、入出力部240、不揮発性メモリ部280、及び通信部270と互いにデータを送受信する。
The
制御部200は、プロセッサであってよい。制御部200は、マイクロコントローラであってよい。制御部200は、中央処理装置(CPU)、ROM、RAM等を含む半導体集積回路で構成される。不揮発性メモリ部280は、システムプログラム及び制御アプリケーションプログラムを格納する。CPUモジュール100は、システムプログラムが不揮発性メモリ部280に書き込まれた状態で出荷されてよい。
The
制御アプリケーションプログラムは、制御システム10のユーザによって提供される。制御アプリケーションプログラムは、支援/監視装置20からCPUモジュール100に提供されて、CPUモジュール100の不揮発性メモリ部280に書き込まれる。CPUモジュール100が起動すると、制御部200はブート処理中に、不揮発性メモリ部280に書き込まれたシステムプログラム及び制御アプリケーションプログラムをロードする。なお、不揮発性メモリ部280は、システムプログラムを格納するシステム用メモリとは別に、制御アプリケーションプログラムを格納するアプリケーション用メモリとを有してよい。
The control application program is provided by the user of the
制御部200は、CPUモジュール100における主処理を担う。例えば、制御部200は、制御アプリケーションプログラムに従って、IOモジュール120から取得した入力データの処理や、入力データに基づいてIOモジュール120に対する制御データを生成する処理を行う。また、制御部200は、システムプログラムに従って、実行するべき制御アプリケーションプログラムのタスクを決定する処理、被制御機器40から入力データを取得する処理、制御アプリケーションプログラムを実行することにより生成された被制御機器40に対する制御データを被制御機器40へ出力するための処理、及び、支援/監視装置20との間でメッセージを送受信するための処理を行う。
The
入出力部240は、IOモジュール120との間のデータの入出力を担う。入出力部240は、IOモジュール120に制御データを出力する。例えば、入出力部240は、データメモリ部220に格納された制御データを、IOモジュール120に出力する。また、入出力部240は、IOモジュール120から入力データを取得する。入出力部240から取得した入力データは、データメモリ部220に格納される。このように、データメモリ部220は、被制御機器40との間のIOデータを格納する。
The input /
制御部200は、データメモリ部220に格納されている入力データを読み出す。制御部200は、制御アプリケーションプログラムに従って、入力データに基づいて制御データを生成する。制御部200は、生成した制御データを、データメモリ部220に格納する。入出力部240は、データメモリ部220に格納された制御データをIOモジュール120に出力する。
The
ワークメモリ部210は、制御アプリケーションプログラムが演算に用いる変数である制御用内部変数を格納する。制御部200は、制御アプリケーションプログラムに従って、ワークメモリ部210に格納された制御用内部変数を用いて処理を行う。制御用内部変数は、制御アプリケーションプログラムの動作パラメータを定める変数であってよい。制御用内部変数は、制御アプリケーションプログラムの状態等を表す変数であってよい。制御部200は、制御アプリケーションプログラムに従って動作して、ワークメモリ部210に格納されている制御用内部変数を更新してよい。
The
通信部270は、支援/監視装置20との通信を担う。通信部270は、支援/監視装置20からのメッセージを受信して、受信したメッセージを制御部200に出力する。また、通信部270は、支援/監視装置20へのメッセージを制御部200から受信して、受信したメッセージを支援/監視装置20に送信する。支援/監視装置20に送信されるメッセージは、被制御機器40の制御に関するイベントの発生状態を示す情報を含む。
The
ワークメモリ部210及びデータメモリ部220は、揮発性のメモリであってよい。ワークメモリ部210及びデータメモリ部220は、SRAM等であってよい。ワークメモリ部210は、システムプログラム用の制御用内部変数を格納するワークメモリとは別に、制御アプリケーションプログラムの制御用内部変数を格納するワークメモリとを有してよい。
The
不揮発性メモリ部280はまた、被制御機器40の制御に関するイベントを検出するための検出条件を示すデータファイルを格納する。検出条件を示すデータは、支援/監視装置20からCPUモジュール100に提供されて、不揮発性メモリ部280に格納される。制御部200は、CPUモジュール100がIOモジュール120を制御中において、支援/監視装置20から受信したイベント設定データに従って、イベント検出条件を更新することができる。
The
イベントの検出条件としては、制御用内部変数についての検出条件、入力データについての検出条件、制御データについての検出条件等を含む。制御部200は、制御用内部変数が検出条件を満たす場合に、イベントの発生を検出する。また、制御部200は、入力データが検出条件を満たす場合に、イベントを検出する。また、制御部200は、制御データが検出条件を満たす場合に、イベントを検出する。検出条件は、入力データ、制御データ及び制御用内部変数のうちの2つ以上を含んでよい。
The event detection conditions include detection conditions for internal variables for control, detection conditions for input data, detection conditions for control data, and the like. The
データメモリ部220はまた、制御部200が検出したイベントのログデータを格納する。通信部270は、制御部200により検出されたイベントを、支援/監視装置20に送信する。例えば、制御部200は、データメモリ部220に格納されているイベントログデータを読み出して、読み出したイベントログデータを、通信部270を通じて支援/監視装置20に送信してよい。
The
CPUモジュール100におけるイベントの検出条件の更新に関する動作について説明する。検出部202は、被制御機器40の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する。条件更新部204は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する。条件更新部204は、第1の検出条件により検出されるイベントに関する情報を保持する。一方、条件更新部204は、第2の検出条件により検出されるイベントに関する情報を初期化する。
The operation related to updating the event detection condition in the
一例として、イベントに関する情報は、検出条件の評価結果を示す。例えば、イベントに関する情報は、検出条件を構成する条件式の論理値を示す。当該論理値がTRUEの場合、検出条件が満たされたことを示し、論理値がFALSEの場合、検出条件が満たされていないことを示す。 As an example, the information about the event shows the evaluation result of the detection condition. For example, information about an event indicates a logical value of a conditional expression that constitutes a detection condition. When the logical value is TRUE, it indicates that the detection condition is satisfied, and when the logical value is FALSE, it indicates that the detection condition is not satisfied.
一例として、イベントに関する情報は、検出条件により検出されるイベントの状態を示す。例えば、イベントに関する情報は、イベントが発生しているか否かを示す。具体的には、イベントに関する情報は、検出条件を構成する条件式の論理値がTRUEの場合、イベントが発生していることを示し、検出条件を構成する条件式の論理値がFALSEの場合、イベントが発生していないことを示す。 As an example, the information about the event indicates the state of the event detected by the detection condition. For example, information about an event indicates whether or not an event has occurred. Specifically, the information about the event indicates that an event has occurred when the logical value of the conditional expression constituting the detection condition is TRUE, and when the logical value of the conditional expression constituting the detection condition is FALSE. Indicates that no event has occurred.
検出部202は、検出条件を繰り返し評価することにより、イベントの状態の遷移を検出する。データメモリ部220は、検出部202がイベントの状態が遷移したことを検出した場合に、当該遷移が生じたことを記憶する。データメモリ部220は、イベント記憶部の一例である。
The
条件更新部204は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、条件式に変更がない場合であっても、当該他の検出条件に変更がある場合には、条件式を含む検出条件を第2の検出条件として抽出する。
When updating the current detection condition to a new detection condition, the
検出条件は、データメモリ部220、ワークメモリ部210、及び不揮発性メモリ部280の少なくとも1つに記憶される。本実施形態では、データメモリ部220を検出条件記憶部の一例として説明する。
The detection conditions are stored in at least one of the
データメモリ部220は、互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する。現在の検出条件は、第1の記憶領域及び第2の記憶領域のうちの一方の記憶領域に記憶され、検出部202は、当該一方の記憶領域を参照して、イベントを検出するための検出条件を繰り返し評価する。ここで、検出条件を更新する場合に、条件更新部204は、現在の検出条件に対して新たな検出条件の少なくとも一部を反映した検出条件を、第1の記憶領域及び第2の記憶領域のうち他方の記憶領域に記憶させ、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える。
The
具体的には、第1の記憶領域及び第2の記憶領域は、複数の検出条件のそれぞれが有効であるか否かを示す値を記憶する有効設定領域を含み、検出部202は、有効設定領域に有効である旨を示す値が記憶される検出条件を評価する。検出部202は、有効設定領域に無効である旨を示す値が記憶される検出条件を評価しない。ここで、新たな検出条件に更新する場合に、条件更新部204は、当該他方の記憶領域の有効設定領域において、第2の検出条件が有効でない旨を示す値を記憶させるとともに、第1の検出条件が有効である旨を示す値を記憶させる。そして、条件更新部204は、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える。これにより、変更がない検出条件によるイベントの検出動作を継続しつつ、変更がある検出条件によるイベントの検出動作を一括して停止することができる。
Specifically, the first storage area and the second storage area include an effective setting area for storing a value indicating whether or not each of the plurality of detection conditions is valid, and the
条件更新部204は、新たな検出条件に更新する場合に、現在の検出条件から削除される第3の検出条件を抽出する。そして、条件更新部204は、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える前に、他方の記憶領域の有効設定領域において、第3の検出条件が有効でない旨を示す値を記憶させる。これにより、変更がない検出条件によるイベントの検出動作を継続しつつ、削除される検出条件によるイベントの検出動作と、変更がある検出条件によるイベントの検出動作とを、一括して停止することができる。
The
図3は、支援/監視装置20において設定されるイベント設定データの一例を示す。イベント設定データは、イベント番号、イベント名、検出条件、及び周期の情報を含む。支援/監視装置20は、ユーザが編集可能なように、検出条件データをテーブル形式で表示する。
FIG. 3 shows an example of event setting data set in the support /
「イベント番号」は、イベントを識別する値である。「イベント名」は、イベントに付与される名前を示す。「検出条件」は、1つ又は複数の条件式を含む検出条件を文字列で記したものである。例えば、検出条件は、1つ又は複数の等式、不等式又は論理式を含む。 The "event number" is a value that identifies an event. The "event name" indicates the name given to the event. The "detection condition" is a character string of detection conditions including one or more conditional expressions. For example, detection conditions include one or more equations, inequalities or logical expressions.
図示されるように、イベントの検出条件は、イベント検出用変数を用いた1以上の条件式で設定される。イベント番号1〜3に示す検出条件は、単一のイベント検出用変数を用いた単一の条件式で表される。イベント番号4〜5に示す検出条件は、他の検出条件の評価結果を用いた条件式で表される。各条件式の評価結果は、論理値である真(TRUE)又は偽(FALSE)として得られる。
As shown in the figure, the event detection condition is set by one or more conditional expressions using the event detection variable. The detection conditions shown in
例えば、イベント番号1の検出条件は、「Var01=FALSE」という条件式を1つ含む。この検出条件は、イベント検出用変数であるVar01の値がFALSEである場合に、イベント名「イベントA」のイベントが発生していることを示す。Var01は、データメモリ部220に格納された入力データ及び制御データ、又は、ワークメモリ部210に格納されている制御用内部変数等の変数を示す。また、イベント番号4の検出条件は、イベント番号1の検出条件の評価結果と、イベント番号2の検出条件の評価結果とのAND結合で与えられる。この検出条件は、イベント番号1の条件式及びイベント番号2の条件式がいずれもTRUEである場合に、イベント名「イベントD」のイベントが生じていることを示す。
For example, the detection condition of
「周期」は、イベントの検出周期を示す。各イベントは、互いに異なる周期で検出することができる。 "Period" indicates an event detection cycle. Each event can be detected at different cycles.
支援/監視装置20において、ユーザは、支援/監視装置20のイベント設定ツール機能を通じてイベント設定データを編集する。支援/監視装置20は、ユーザにより編集されたイベント番号、検出条件及び周期を含むイベント設定データをCPUモジュール100に送信する。
In the support /
CPUモジュール100において、ワークメモリ部210及びデータメモリ部220内におけるイベント検出用変数のアドレスを示すアドレス情報は、不揮発性メモリ部280に記憶されている。検出部202は、当該アドレス情報が示すアドレスを参照してイベント検出用変数の値を取得して、各検出条件に含まれる条件式を評価する。
In the
図4は、制御部200において行うイベント検出処理を概略的に示す。
FIG. 4 schematically shows an event detection process performed by the
データメモリ部220には、入力データ及び制御データの現在の値が記憶されている。また、ワークメモリ部210には、制御用変数の現在の値が記憶されている。検出部202は、処理440において、データメモリ部220やワークメモリ部210に記憶されている値のうち、イベント設定データによって指定されたイベント検出用の値を、検出条件に含まれる条件式に適用して、条件式を評価することにより、イベント状態を示す今回評価結果を得る。検出部202は、処理440により得た今回評価結果と、前回の評価で得られた前回評価結果とを比較する処理450を行う。検出部202は、処理450によって今回評価結果と前回評価結果とが異なる場合、イベントログ460を生成して、データメモリ部220に格納する。例えば、検出部202は、前回評価結果がFALSEであった場合において、今回評価結果がTRUEであるときは、イベント番号と、現在時刻と、「発生」を示すイベント状態とを含むイベントログ460を生成して、データメモリ部220に格納する。また、検出部202は、前回評価結果がTRUEであった場合において、今回評価結果がFALSEであるときは、イベント番号と、現在時刻と、「未発生」を示すイベント状態とを含むイベントログ460を生成して、データメモリ部220に格納する。
The
なお、本実施形態において、検出部202が検出条件に基づいてイベントを検出する動作や、条件更新部204が検出条件を更新する場合の動作を主として説明する。ここで、「検出条件を更新する」とは、例えば、複数のイベント番号に対応する複数の検出条件のうちの少なくとも1つの検出条件を変更又は削除する場合、又は、新たなイベント番号に対応する検出条件を追加する場合をいう。支援/監視装置20においてユーザが検出条件を変更した場合、支援/監視装置20は、全イベントのイベント設定データと、検出条件の更新を指示するメッセージとを、CPUモジュール100に送信する。
In the present embodiment, an operation in which the
図5は、イベント検出用の管理データ500のデータ構造を模式的に示す。管理データ500は、データメモリ部220又はワークメモリ部210に記憶される。
FIG. 5 schematically shows the data structure of the
管理データ500は、監視イベント管理領域番号501と、監視イベント管理領域510及び監視イベント管理領域511と、イベント検出条件管理データテーブル520とを含む。一例として、管理データ500は、1024個のイベント検出条件管理データテーブル520を有する。
The
監視イベント管理領域番号501の値は、検出部202がイベント検出に用いるデータが記憶されている監視イベント管理領域を示す。監視イベント管理領域番号501の値が0の場合、検出部202は、監視イベント管理領域510に記憶されているデータを用いて、イベントを検出する。監視イベント管理領域番号501の値が1の場合、検出部202は、監視イベント管理領域511に記憶されているデータを用いて、イベントを検出する。
The value of the monitoring event management area number 501 indicates a monitoring event management area in which the data used by the
監視イベント管理領域510は、イベント検出条件管理数530と、監視イベント情報540とを含む。イベント検出条件管理数530には、イベントの検出条件の数Nを示す値が記憶される。監視イベント管理領域510は、イベント検出条件管理数530で示される数の監視イベント情報540を含む。監視イベント情報540は、それぞれ異なるイベントに対応する。なお、監視イベント管理領域511は、監視イベント管理領域510と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。
The monitoring event management area 510 includes the number of event
監視イベント情報540−1は、監視有効フラグ570と、イベント検出条件管理データテーブル番号571とを有する。監視有効フラグ570は、対応するイベントの検出を有効とするか無効とするかを示す。イベント検出条件管理データテーブル番号571は、後述するイベント検出条件管理データテーブル520の番号を示す。監視有効フラグ570の値が「有効」を示す1の場合、検出部202は、対応するイベントの検出を行う。監視有効フラグ570の値が「無効」を示す0の場合、検出部202は、対応するイベントの検出を行わない。なお、監視イベント情報540−2〜監視イベント情報540−Nは、監視イベント情報540−1と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。
The monitoring event information 540-1 has a monitoring
イベント検出条件管理データテーブル520−1は、データ登録フラグ551と、イベント番号552と、イベントタイプ553と、イベント状態554と、イベント発生/復旧時の変数値555と、論理個数556と、論理データ560とを有する。
The event detection condition management data table 520-1 contains data registration flag 551,
データ登録フラグ551は、対応する記憶領域にイベントが登録されているか否かを示す。データ登録フラグ551の値が1の場合、対応する記憶領域にイベントが登録されていることを示す。データ登録フラグ551の値が0の場合、対応する記憶領域にイベントが登録されていないことを示す。すなわち、この記憶領域が空きであることを示す。 The data registration flag 551 indicates whether or not an event is registered in the corresponding storage area. When the value of the data registration flag 551 is 1, it indicates that the event is registered in the corresponding storage area. When the value of the data registration flag 551 is 0, it indicates that no event has been registered in the corresponding storage area. That is, it indicates that this storage area is free.
イベント番号552には、イベント番号が記憶される。イベント番号552には、支援/監視装置20から受信したイベント設定データに含まれるイベント番号が記憶されてよい。
The event number is stored in the
イベントタイプ553は、条件式を構成する被演算子に対する演算子を示す。例えば、イベントタイプ553は、「=」、「>」、「<」、「≧」、「≦」等の関係演算子や「AND」及び「OR」等の論理演算子を識別する情報を示す。
イベント状態554は、イベントが発生状態にあるか否かを示す。イベント状態554の値が1の場合、イベントが発生していることを示す。イベント状態554の値が0の場合、イベントが発生していないことを示す。イベント発生/復旧時の変数値555には、イベントが発生した場合の検出条件に含まれる変数の値が記憶される。例えば、図3のイベント番号1に対応する検出条件に含まれるVar01の値が記憶される。
The
論理個数556には、条件式で用いられる被演算子の数nが記憶される。論理データ560には、条件式で用いられる被演算子を示す情報が記憶される。論理データ560に記憶される情報は、条件式で用いられる検出閾値等の数値、変数が記憶されているアドレス、イベント番号等を含む。例えば、論理データ560には、イベント番号1の条件式に含まれる「Var01」の変数が記憶されているアドレスと、「FALSE」の値とが記憶される。なお、イベント検出条件管理データテーブル520−2〜イベント検出条件管理データテーブル520−1023は、イベント検出条件管理データテーブル520−1と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。
In the
なお、単一のイベントの検出条件は、複数のイベント検出条件管理データテーブル520の組み合わせにより設定されてよい。例えば、図3のイベント番号5の検出条件を、2つのイベント検出条件管理データテーブル520により設定してよい。一例として、図3のイベント番号5の検出条件を、イベント番号1とイベント番号2とのOR演算を表す第1のイベント検出条件管理データテーブル520を生成するとともに、当該イベント検出条件管理データテーブル520に割り当てたイベント番号とイベント番号2とのAND演算を表す第2のイベント検出条件管理データテーブル520とを生成してよい。この場合、図3のイベント番号5のイベントは、第2のイベント検出条件管理データテーブル520の検出条件の評価結果によって表される。
The single event detection condition may be set by a combination of a plurality of event detection condition management data tables 520. For example, the detection condition of the
図6は、監視周期管理情報580のデータ構造を示す。監視周期管理情報580は、監視周期管理数581と、周期情報582とを含む。監視周期管理数581には、周期情報の数Mを示す値が記憶される。監視周期管理情報580は、監視周期管理数581で示される個数の周期情報582を含む。
FIG. 6 shows the data structure of the monitoring
周期情報582−1は、周期590と、イベント管理数591と、イベント番号592とを含む。周期590には、周期を示す数値が記憶される。イベント管理数591は、周期590で示される周期でイベントを検出する対象となるイベントの数mを示す。イベント番号592には、イベント管理数591で示される数のイベントのイベント番号が記憶される。
The cycle information 582-1 includes a
なお、周期情報582−2〜周期情報582−Mは、周期情報582−1と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。また、検出周期の情報は、図6に示すデータ構造とは異なるデータ構造で管理されてよい。例えば、検出周期の情報は、イベント検出条件管理データテーブル520でイベント毎に管理されてよい。 Since the periodic information 582-2-M has the same data structure as the periodic information 582-1, the details of the data structure will be omitted. Further, the information of the detection cycle may be managed by a data structure different from the data structure shown in FIG. For example, the information of the detection cycle may be managed for each event in the event detection condition management data table 520.
図7は、制御部200において検出部202がイベントを検出する処理を示すフローチャートである。S600において、検出部202は、現在の日時情報を取得する。続いて、S602において、検出部202は、検出対象のイベントを選択する。具体的には、検出部202は、監視周期管理情報580を参照して、現在のタクトでイベントを検出するべきイベント番号を特定する。
FIG. 7 is a flowchart showing a process in which the
続いて、S604からS620におけるイベント検出のループ処理を行う。このループ処理では、S602で選択したイベントの中から、ループ毎に異なるイベントの検出条件を選択する。 Subsequently, the event detection loop processing in S604 to S620 is performed. In this loop processing, different event detection conditions are selected for each loop from the events selected in S602.
S606において、検出部202は、選択したイベントのイベント検出が有効に設定されているか否かを判断する。検出部202は、監視イベント情報540の監視有効フラグ570の値を参照して、S606の判断を行う。検出条件が無効の場合、「イベント検出」のループ処理における次のイベントの処理に進む。検出条件が有効の場合、S610に進む。
In S606, the
S610において、検出部202は、検出条件に含まれる条件式を評価して評価結果を算出する。検出部202は、イベント検出条件管理データテーブル520を参照して、検出条件の評価結果を算出する。
In S610, the
続いて、S612において、検出部202は、イベント検出条件管理データテーブル520のイベント状態554に記憶されている現在値を読み出すとともに、S610で得られた評価結果をイベント状態554に記憶する。
Subsequently, in S612, the
S614において、検出部202は、イベント状態が変化したか否かを判断する。具体的には、検出部202は、S612でイベント状態554から読み出した値と、S610により得られた評価結果とが異なる場合に、イベント状態が変化したと判断する。また、検出部202は、S612でイベント状態554から読み出した値と、S610により得られた評価結果とが一致する場合に、イベント状態が変化していないと判断する。イベント状態が変化していない場合、「イベント検出」のループ処理における次のイベントの処理に進む。イベント状態が変化した場合、S616に進む。
In S614, the
S616において、検出部202は、対応する検出条件に含まれる条件式で用いられる変数の値をイベント発生/復旧時の変数値555に記憶する。続いて、検出部202は、イベント番号と、イベントの状態と、現在の日時情報とを含むイベントログデータを生成する。イベントの状態は「発生」又は「未発生」を示す。S610により得られた評価結果がTRUEの場合イベントが発生したことを示す。S610により得られた評価結果がFALSEの場合、発生していたイベントが終了したことを示す。例えば、評価結果がFALSEの場合、異常イベントが復旧したことを示す。
In S616, the
図8は、検出条件を変更する処理を示すフローチャートである。本フローチャートの処理は、CPUモジュール100が、新たなイベント設定データと検出条件の更新を指示するメッセージを支援/監視装置20から受信した場合に開始される。ここでは、管理データ500において、現在のイベント設定データに基づく情報が監視イベント管理領域510及びイベント検出条件管理データテーブル520に記憶されているものとする。すなわち、検出部202は、現在までの間、監視イベント管理領域510に記憶された情報に従って、イベントの検出処理を行っていたとする。また、監視イベント管理領域510に記憶される情報を更新するために、監視イベント管理領域510と同内容の情報が監視イベント管理領域511に記憶されているとする。
FIG. 8 is a flowchart showing a process of changing the detection condition. The processing of this flowchart is started when the
S802において、条件更新部204は、現在のイベント設定データと、新たに受信したイベント設定データとを照合して、削除対象、追加対象、変更対象、及び変更対象外のイベントを特定する。具体的には、条件更新部204は、現在のイベント設定データに含まれるイベント番号のうち、新たなイベント設定データに含まれないイベント番号を抽出することにより、削除イベント番号リストを生成する。また、条件更新部204は、新たなイベント設定データに含まれるイベント番号のうち、現在のイベント設定データに含まれないイベント番号を抽出することにより、追加イベント番号リストを生成する。ここで、現在のイベント設定データ及び新たなイベント設定データの双方に同一のイベント番号が含まれる場合、条件更新部204は、新たなイベント設定データで指定された条件式と、現在のイベント設定データで指定された条件式とを照合して、条件式が不一致の場合、変更対象イベント番号リストに当該イベント番号を追加する。一方、条件式が一致する場合、条件更新部204は、変更対象外イベント番号リストに当該イベント番号を追加する。
In S802, the
また、変更対象外イベント番号リストに含まれるイベント番号のうち、対応する検出条件を構成する条件式が他のイベント番号を含む場合、条件更新部204は、当該他のイベント番号が変更対象イベント番号リストに含まれるか否かを判断する。他のイベント番号が変更対象イベント番号リストに含まれる場合、条件更新部204は、変更対象外イベント番号リストから削除するとともに、変更対象イベント番号リストに追加する。例えば、図3のイベント番号4に対応する検出条件の条件式「イベント番号1 AND イベント番号2」自体に変更がない場合において、イベント番号1の条件式に変更があった場合、条件更新部204は、変更対象外イベント番号リストからイベント番号4を削除して、変更対象イベント番号リストにイベント番号4を追加する。
Further, among the event numbers included in the non-change target event number list, when the conditional expression constituting the corresponding detection condition includes another event number, the
S802の処理が終了すると、S803において、S802の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S804に進む。 When the processing of S802 is completed, it is determined in S803 whether or not the processing of S802 is successful. If unsuccessful, the process proceeds to S814, and if successful, the process proceeds to S804.
S804において、条件更新部204は、変更対象イベント及び削除対象イベントの監視を停止する処理を行う。具体的には、条件更新部204は、監視イベント管理領域511における各監視イベント情報540について、イベント検出条件管理データテーブル番号571が示すイベント検出条件管理データテーブル520に記憶されているイベント番号が、変更対象イベント番号リスト又は削除対象イベント番号リストに含まれる場合に、当該監視イベント情報540の監視有効フラグ570の値を0に変更する。
In S804, the
そして、条件更新部204は、監視イベント管理領域番号501の値を、監視イベント管理領域511を示す値に変更する。この処理の完了以後、検出部202は、監視イベント管理領域511に記憶された情報に基づいてイベントを検出するので、変更対象イベント番号リスト及び削除対象イベント番号リストに含まれるイベント番号に対応するイベントの検出は行われなくなる。一方、変更対象外イベント番号リストに含まれるイベント番号に対応するイベントの検出は継続して行われる。
Then, the
S804の処理が終了すると、S805において、S804の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S806に進む。 When the processing of S804 is completed, it is determined in S805 whether or not the processing of S804 is successful. If unsuccessful, the process proceeds to S814, and if successful, the process proceeds to S806.
S806において、条件更新部204は、削除対象イベントの監視周期情報を抹消し、追加対象イベントの監視周期情報を登録する。具体的には、条件更新部204は、監視周期管理情報580において、削除対象イベント番号リストに含まれるイベント番号に一致する値を記憶したイベント番号592を削除する。また、条件更新部204は、監視周期管理情報580において、追加対象イベント番号リストに含まれる各イベント番号について、新たなイベント設定データで指定された周期に対応する周期情報に、各イベント番号を追加する。
In S806, the
S806の処理が終了すると、S807において、S806の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S808に進む。 When the processing of S806 is completed, it is determined in S807 whether or not the processing of S806 is successful. If unsuccessful, the process proceeds to S814, and if successful, the process proceeds to S808.
S808において、条件更新部204は、削除対象イベント、追加対象イベント及び変更対象イベントについて、イベント検出条件管理データテーブル520に対するイベント設定情報の追加及び更新処理を行う。具体的には、条件更新部204は、削除対象イベント番号リストに含まれるイベント番号を記憶しているイベント検出条件管理データテーブル520のデータ登録フラグ551を0に変更する。
In S808, the
また、条件更新部204は、変更対象イベント番号リストに含まれるイベント番号を記憶しているイベント検出条件管理データテーブル520を初期化する。具体的には、条件更新部204は、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された新たな検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を変更する。
Further, the
また、条件更新部204は、追加対象イベント番号リストに含まれるイベント番号に対応するイベント設定データに基づいて、イベント検出条件管理データテーブル520にイベント設定情報を追加する。具体的には、条件更新部204は、データ登録フラグ551の値が0のイベント検出条件管理データテーブル520を検索して、検索されたイベント検出条件管理データテーブル520において、データ登録フラグ551の値を1にし、追加対象イベント番号リストのイベント番号をイベント番号552に記憶し、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された対応する検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を設定する。
Further, the
S810において、条件更新部204は、追加対象イベント及び変更対象イベントについて、監視イベント管理領域510における監視イベント情報540に対し、追加及び更新処理を行う。具体的には、条件更新部204は、監視イベント管理領域511と同一の情報を監視イベント管理領域510に記憶させるとともに、監視イベント管理領域510における監視イベント情報540において、変更対象イベントについての情報変更と、追加対象イベントの追加とを行う。より具体的には、監視イベント管理領域510における監視イベント情報540のうち、対応するイベント番号が変更対象イベント番号リストに含まれる監視イベント情報540を選択して、当該監視イベント情報540の監視有効フラグ570の値を1に変更する。
In S810, the
また、条件更新部204は、S808において新たなイベントの検出条件を追加したイベント検出条件管理データテーブル520の番号と、監視有効フラグ570の値が1の情報とを、監視イベント情報540に追加する。
Further, the
S810の処理が終了すると、S811において、S810の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S812に進む。 When the processing of S810 is completed, it is determined in S811 whether or not the processing of S810 is successful. If unsuccessful, the process proceeds to S814, and if successful, the process proceeds to S812.
S812において、条件更新部204は、更新及び追加した監視イベント情報に基づく監視を開始するように、管理データ500を設定する。具体的には、条件更新部204は、監視イベント管理領域番号501の値を、監視イベント管理領域510を示す値に変更する。この処理の完了以後、検出部202は、監視イベント管理領域510に記憶された情報に基づいてイベントを検出するので、変更対象イベント番号リスト及び削除対象イベント番号リストの一方に含まれるイベント番号に対応するイベントの検出が開始される。一方、変更対象外イベント番号リストに含まれるイベント番号に対応するイベントの検出は依然として継続される。
In S812, the
S812の処理が終了すると、S813において、S812の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、フローチャートの処理を終了する。S814においては、不成功の原因となった処理に対するエラー処理を行った後、フローチャートの処理を終了する。 When the processing of S812 is completed, it is determined in S813 whether or not the processing of S812 is successful. If unsuccessful, the process proceeds to S814, and if successful, the flowchart processing ends. In S814, after performing error processing for the processing that caused the failure, the processing of the flowchart is terminated.
図9は、支援/監視装置20が表示するイベント一覧情報を示す。支援/監視装置20は、CPUモジュール100からイベントログデータをメッセージで受信する。支援/監視装置20は、設定したイベントログデータを、テーブル形式で一覧表示する。支援/監視装置20は、イベントログデータに基づいて、「イベント名」、「発生/復旧」、及び「時刻」を表示する。
FIG. 9 shows event list information displayed by the support /
イベント名は、イベントの発生状態が変化したイベント番号に対応するイベント名である。支援/監視装置20は、イベントログデータに含まれるイベント番号に対応するイベント名を表示する。
The event name is an event name corresponding to the event number in which the event occurrence state has changed. The support /
「発生/復旧」は、イベント発生状態の変化種別を示す。イベントが発生していない状態からイベントが新たに発生した状態に変化した場合は「発生」が表示され、イベントが発生している状態からイベントが発生していない状態に変化した場合は「復旧」が表示される。支援/監視装置20は、イベントログデータに含まれるイベント状態が「発生」の場合、「発生」を表示し、イベントログデータに含まれるイベント状態が「未発生」の場合、「復旧」を表示する。
"Occurrence / recovery" indicates the type of change in the event occurrence status. "Occurrence" is displayed when the state changes from the state where no event has occurred to the state where the event has newly occurred, and "Recovery" when the state has changed from the state where the event has occurred to the state where the event has not occurred. Is displayed. The support /
「時刻」は、イベントの発生状態の変化が検出された時刻を示す。支援/監視装置20は、イベントログデータに含まれる時刻を表示する。
“Time” indicates the time when a change in the event occurrence state is detected. The support /
図9に関連して、時刻「03:21:22 342」の後に、支援/監視装置20のイベント設定ツールを通じて、ユーザが「イベントD」の条件式のみを変更する操作を行ったとする。この場合、支援/監視装置20は、全イベントの検出条件を含むイベント設定データをCPUモジュール100に送信する。CPUモジュール100において、条件更新部204は、管理データ500における「イベントD」に対応するイベント検出条件管理データテーブル520のイベント状態554の値を初期化する一方、「イベントB」、「イベントC」及び「イベントE」に対応するイベント状態554には、「発生中」を示す値1を保持する。また、「イベントA」対応するイベント状態554には、「未発生」を示す値0を保持する。
In relation to FIG. 9, it is assumed that after the time "03:21:22 342", the user performs an operation of changing only the conditional expression of "event D" through the event setting tool of the support /
これにより、イベント設定ツールによる検出条件の更新直後において、「イベントB」、「イベントC」及び「イベントE」のイベント状態は「発生中」から変化していないと判断され得る。よって、イベント検出条件の変更直後に、「イベントB」、「イベントC」及び「イベントE」のイベントの「発生」が通知されることがない。このように、制御システム10によれば、例えば検出条件の一部を更新した場合においても、検出条件に変更がないイベントについて、一貫性のあるイベント検出を行うことが可能になる。そのため、上述したように、検出条件の更新に伴ってユーザがイベントログを解析する手間を削減することができる。
As a result, it can be determined that the event states of "event B", "event C", and "event E" have not changed from "currently occurring" immediately after the detection condition is updated by the event setting tool. Therefore, immediately after the event detection condition is changed, the "occurrence" of the "event B", "event C", and "event E" events is not notified. In this way, according to the
以上に説明したように、CPUモジュール100によれば、検出条件に変更がないイベントのイベント状態の値を初期化せずに保持するので、当該イベントを連続的に監視することが可能になる。
As described above, according to the
なお、一実施形態における制御システム10は、制御装置としてPLCを用いたPLCシステムである。他の形態において、制御システムは、分散制御システム(DCS)であり得る。
The
以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。その様な変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。 Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It will be apparent to those skilled in the art that various changes or improvements can be made to the above embodiments. It is clear from the description of the claims that such modified or improved forms may also be included in the technical scope of the present invention.
特許請求の範囲、明細書、及び図面中において示した装置、システム、プログラム、及び方法における動作、手順、ステップ、及び段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、及び図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。 The execution order of each process such as operation, procedure, step, and step in the device, system, program, and method shown in the claims, the specification, and the drawing is particularly "before" and "prior to". It should be noted that it can be realized in any order unless the output of the previous process is used in the subsequent process. Even if the scope of claims, the specification, and the operation flow in the drawings are explained using "first", "next", etc. for convenience, it means that it is essential to carry out in this order. It's not a thing.
10 制御システム
20 支援/監視装置
40 被制御機器
100 CPUモジュール
120 IOモジュール
200 制御部
202 検出部
204 条件更新部
210 ワークメモリ部
220 データメモリ部
280 不揮発性メモリ部
240 入出力部
270 通信部
290 バス
440、450 処理
460 イベントログ
500 管理データ
501 監視イベント管理領域番号
510 監視イベント管理領域
511 監視イベント管理領域
520 イベント検出条件管理データテーブル
530 イベント検出条件管理数
540 監視イベント情報
551 データ登録フラグ
552 イベント番号
553 イベントタイプ
554 イベント状態
555 イベント発生/復旧時の変数値
556 論理個数
560 論理データ
570 監視有効フラグ
571 イベント検出条件管理データテーブル番号
580 監視周期管理情報
581 監視周期管理数
582 周期情報
590 周期
591 イベント管理数
592 イベント番号
10
Claims (10)
現在の前記検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出し、前記第1の検出条件により検出される前記イベントに関する情報を保持し、前記第2の検出条件により検出される前記イベントに関する情報を初期化する条件更新部と
を備える制御装置。 A detection unit that detects an event by repeatedly evaluating predetermined detection conditions for detecting an event related to control of a controlled device, and a detection unit that detects the event.
When updating the current detection condition to a new detection condition, the first detection condition in which the condition is not changed and the second detection condition in which the condition is changed are extracted from the current detection conditions. A control device including a condition updating unit that holds information about the event detected by the first detection condition and initializes information about the event detected by the second detection condition.
請求項1に記載の制御装置。 The control device according to claim 1, wherein the information indicates an evaluation result of the detection conditions.
請求項1又は2に記載の制御装置。 The control device according to claim 1 or 2, wherein the information indicates a state of the event detected by the detection conditions.
前記制御装置は、
前記検出部が前記イベントの状態が遷移したことを検出した場合に、当該遷移が生じたことを記憶するイベント記憶部
をさらに備える請求項3に記載の制御装置。 The detection unit detects the transition of the state of the event by repeatedly evaluating the detection conditions.
The control device is
The control device according to claim 3, further comprising an event storage unit that stores the occurrence of the transition when the detection unit detects that the state of the event has changed.
請求項1から4のいずれか一項に記載の制御装置。 When updating the current detection condition to a new detection condition, the condition update unit describes the conditional expression for the detection condition including the conditional expression using the evaluation result of the other detection condition among the current detection conditions. If there is a change in the other detection conditions even if there is no change in, any one of claims 1 to 4 for extracting the detection condition including the conditional expression as the second detection condition. The control device described in.
をさらに備え、
前記現在の検出条件は、前記第1の記憶領域及び前記第2の記憶領域のうちの一方の記憶領域に記憶され、
前記検出部は、前記一方の記憶領域を参照して、前記イベントを検出するための検出条件を繰り返し評価し、
前記条件更新部は、前記現在の検出条件に対して前記新たな検出条件の少なくとも一部を反映した検出条件を、前記第1の記憶領域及び前記第2の記憶領域のうち他方の記憶領域に記憶させ、前記検出部が参照する記憶領域を、前記一方の記憶領域から前記他方の記憶領域に切り替える
請求項1から5のいずれか一項に記載の制御装置。 Further, a detection condition storage unit having a first storage area and a second storage area capable of storing different detection conditions is provided.
The current detection condition is stored in one of the first storage area and the second storage area.
The detection unit repeatedly evaluates the detection conditions for detecting the event with reference to the one storage area.
The condition update unit applies a detection condition that reflects at least a part of the new detection condition to the current detection condition to the other storage area of the first storage area and the second storage area. The control device according to any one of claims 1 to 5, which is stored and the storage area referred to by the detection unit is switched from the one storage area to the other storage area.
前記検出部は、前記有効設定領域に有効である旨を示す値が記憶される検出条件を評価し、
前記条件更新部は、
前記他方の記憶領域の前記有効設定領域において、前記第2の検出条件が有効でない旨を示す値を記憶させるとともに、前記第1の検出条件が有効である旨を示す値を記憶させ、
前記検出部が参照する記憶領域を、前記一方の記憶領域から前記他方の記憶領域に切り替える
請求項6に記載の制御装置。 The first storage area and the second storage area include an effective setting area for storing a value indicating whether or not each of the plurality of detection conditions is valid.
The detection unit evaluates the detection condition in which a value indicating that the value is valid is stored in the valid setting area.
The condition update unit
In the effective setting area of the other storage area, a value indicating that the second detection condition is not valid is stored, and a value indicating that the first detection condition is valid is stored.
The control device according to claim 6, wherein the storage area referred to by the detection unit is switched from the one storage area to the other storage area.
前記新たな検出条件に更新する場合に、前記現在の検出条件から削除される第3の検出条件を抽出し、
前記検出部が参照する記憶領域を、前記一方の記憶領域から前記他方の記憶領域に切り替える前に、前記他方の記憶領域の前記有効設定領域において、前記第3の検出条件が有効でない旨を示す値を記憶させる
請求項7に記載の制御装置。 The condition update unit
When updating to the new detection condition, a third detection condition to be deleted from the current detection condition is extracted.
Before switching the storage area referred to by the detection unit from the one storage area to the other storage area, it is shown that the third detection condition is not valid in the effective setting area of the other storage area. The control device according to claim 7, wherein the value is stored.
監視装置と
を備え、
前記制御装置は、前記イベントの検出結果を前記監視装置に送信する
制御システム。 The control device according to any one of claims 1 to 7.
Equipped with a monitoring device
The control device is a control system that transmits the detection result of the event to the monitoring device.
現在の前記検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する段階と、
前記第1の検出条件により検出される前記イベントに関する情報を保持し、前記第2の検出条件により検出される前記イベントに関する情報を初期化する段階と
を備える制御方法。 A detection stage for detecting an event by repeatedly evaluating a predetermined detection condition for detecting an event related to control of a controlled device, and a detection stage for detecting the event.
When updating the current detection condition to a new detection condition, the first detection condition in which the condition is not changed and the second detection condition in which the condition is changed are extracted from the current detection conditions. Stages and
A control method including a step of holding information about the event detected by the first detection condition and initializing the information about the event detected by the second detection condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017139392A JP6946804B2 (en) | 2017-07-18 | 2017-07-18 | Control device, control system and control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017139392A JP6946804B2 (en) | 2017-07-18 | 2017-07-18 | Control device, control system and control method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019021061A JP2019021061A (en) | 2019-02-07 |
JP6946804B2 true JP6946804B2 (en) | 2021-10-06 |
Family
ID=65354032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017139392A Active JP6946804B2 (en) | 2017-07-18 | 2017-07-18 | Control device, control system and control method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6946804B2 (en) |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8788097B2 (en) * | 2009-06-22 | 2014-07-22 | Johnson Controls Technology Company | Systems and methods for using rule-based fault detection in a building management system |
JP6392819B2 (en) * | 2016-08-23 | 2018-09-19 | ファナック株式会社 | Manufacturing management system that changes abnormality detection conditions based on manufacturing time information |
-
2017
- 2017-07-18 JP JP2017139392A patent/JP6946804B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019021061A (en) | 2019-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6602435B2 (en) | Parallel execution of continuous event processing (CEP) queries | |
US10228675B2 (en) | Controlling one or more devices upon detecting abnormal behavior | |
US10915419B2 (en) | Industrial control system, and assistance apparatus, control assist method, and program thereof | |
JP6357770B2 (en) | Control device and communication control method | |
CN110062918B (en) | Method for updating software in a cloud gateway, computer program for carrying out said method and processing unit for carrying out said method | |
JP6747104B2 (en) | Safety systems, programs, and methods | |
US8121709B2 (en) | Method for comparing, an automation system and a controller | |
JP6955309B2 (en) | Methods and equipment for defining stages for multivariate batch control analysis, manufactured articles | |
JP2017167595A (en) | Relay device, relay device control method, control program, and recording medium | |
JP2009042913A (en) | Tool device in multi-plc-distributed control system | |
JP6946804B2 (en) | Control device, control system and control method | |
US9557732B2 (en) | Numerical controller having program resuming function | |
JP6870234B2 (en) | Control device, control system and control method | |
JP7151312B2 (en) | control system | |
JP6973678B1 (en) | Controls, control methods, and programs | |
JP6680313B2 (en) | Control device and communication control method | |
JP7040618B2 (en) | Analysis support device, analysis support method, and program | |
JP2923997B2 (en) | Finding the cause of an error in a ladder sequence program | |
JP2011175353A (en) | Abnormality analysis device and method for controlling the same device | |
CN107820673B (en) | Servo motor driving device | |
JP6705464B2 (en) | Control device and communication control method | |
JP2023027509A (en) | Support device, support program and control system | |
CN115858302A (en) | Analysis method and analysis device for system state | |
JPWO2016139805A1 (en) | Programmable logic controller engineering tool and programmable logic controller engineering tool program | |
JP2019219980A (en) | Test case generation system and test case generation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20200615 |
|
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: 20210817 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20210830 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6946804 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |