JP6946804B2 - Control device, control system and control method - Google Patents

Control device, control system and control method Download PDF

Info

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
Application number
JP2017139392A
Other languages
Japanese (ja)
Other versions
JP2019021061A (en
Inventor
真規子 高橋
真規子 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2017139392A priority Critical patent/JP6946804B2/en
Publication of JP2019021061A publication Critical patent/JP2019021061A/en
Application granted granted Critical
Publication of JP6946804B2 publication Critical patent/JP6946804B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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).
Patent Document 1 Japanese Unexamined Patent Publication No. 2008-20416

従来、被制御機器の制御に関するイベントの検出条件を更新する場合に、現在の検出条件から変更がないイベントを継続的に監視することができない場合がある。 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.

一実施形態における制御システム10の概略的な構成を示す。The schematic configuration of the control system 10 in one embodiment is shown. CPUモジュール100の機能構成を概略的に示す。The functional configuration of the CPU module 100 is shown schematically. 支援/監視装置20において設定されるイベント設定データの一例を示す。An example of the event setting data set in the support / monitoring device 20 is shown. 制御部200において行うイベント検出処理を概略的に示す。The event detection process performed by the control unit 200 is schematically shown. イベント検出用の管理データ500のデータ構造を模式的に示す。The data structure of the management data 500 for event detection is schematically shown. 監視周期管理情報580のデータ構造を示す。The data structure of the monitoring cycle management information 580 is shown. 制御部200において検出部202がイベントを検出する処理を示すフローチャートである。It is a flowchart which shows the process which the detection unit 202 detects an event in the control unit 200. 検出条件を変更する処理を示すフローチャートである。It is a flowchart which shows the process of changing a detection condition. 支援/監視装置20が表示するイベント一覧情報を示す。The event list information displayed by the support / monitoring device 20 is shown.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではない。また、実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。 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 control system 10 in one embodiment. The control system 10 includes a support / monitoring device 20, a CPU module 100, an IO module 120a and an IO module 120b, and a controlled device 40a, a controlled device 40b, and a controlled device 40c.

本実施形態において、IOモジュール120a及びIOモジュール120bを、IOモジュール120と総称する場合がある。また、被制御機器40a、被制御機器40b及び被制御機器40cを、被制御機器40と総称する場合がある。CPUモジュール100は、制御装置の一例である。IOモジュール120は、CPUモジュール100による制御に従って、被制御機器40との間でデータの入出力を行う入出力装置の一例である。 In the present embodiment, the IO module 120a and the IO module 120b may be collectively referred to as the IO module 120. Further, the controlled device 40a, the controlled device 40b, and the controlled device 40c may be collectively referred to as the controlled device 40. The CPU module 100 is an example of a control device. The IO module 120 is an example of an input / output device that inputs / outputs data to / from the controlled device 40 under the control of the CPU module 100.

支援/監視装置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 / monitoring device 20 is realized by a computer such as a personal computer. The support / monitoring device 20 communicates with the CPU module 100 through the network. The CPU module 100 communicates with the IO module 120a and the IO module 120b via a network or a bus. The IO module 120a is connected to the controlled device 40a. The IO module 120a is responsible for inputting and outputting data to and from the controlled device 40a. The IO module 120b is connected to the controlled device 40b and the controlled device 40c. The IO module 120b is responsible for input / output of data between each of the controlled device 40b and the controlled device 40c. The number of CPU modules 100, the number of IO modules 120, the total number of controlled devices 40, and the controlled devices 40 connected to the IO modules 120a and IO modules 120b are limited to the numbers shown in the present embodiment. Not done.

制御システム10は、工場やプラント等の産業施設において用いられてよい。制御システム10は、ファクトリーオートメーションの少なくとも一部として用いられてよい。支援/監視装置20、CPUモジュール100及びIOモジュール120は、産業用制御システムであってよい。被制御機器40は、支援/監視装置20、CPUモジュール100及びIOモジュール120による制御対象となる機器である。被制御機器40は、モータ、エンコーダ、ポンプ、バルブ、カメラ、各種センサ等であってよい。被制御機器40は、例えば産業機械であってよい。CPUモジュール100及びIOモジュール120は、それぞれプログラマブルロジックコントローラ(PLC)であってよい。 The control system 10 may be used in an industrial facility such as a factory or a plant. The control system 10 may be used as at least part of factory automation. The support / monitoring device 20, the CPU module 100, and the IO module 120 may be an industrial control system. The controlled device 40 is a device to be controlled by the support / monitoring device 20, the CPU module 100, and the IO module 120. The controlled device 40 may be a motor, an encoder, a pump, a valve, a camera, various sensors, or the like. The controlled device 40 may be, for example, an industrial machine. The CPU module 100 and the IO module 120 may be programmable logic controllers (PLCs), respectively.

支援/監視装置20は、制御システム10の監視制御をする。支援/監視装置20は、CPUモジュール100との間でメッセージを送受信することにより、制御システム10を監視制御する。支援/監視装置20は、被制御機器40、CPUモジュール100及びIOモジュール120の少なくとも1つのステータス情報をCPUモジュール100から受信し、制御システム10が制御する工程に従って、CPUモジュール100に各種の制御指示を出力する。また、支援/監視装置20は、イベント設定ツール機能を有する。例えば、支援/監視装置20は、ユーザからの指示に基づいて、制御システム10におけるイベントの検出条件を設定する。支援/監視装置20は、ユーザからの指示に基づいて、イベントの検出条件の追加、更新又は削除をする。 The support / monitoring device 20 monitors and controls the control system 10. The support / monitoring device 20 monitors and controls the control system 10 by transmitting and receiving messages to and from the CPU module 100. The support / monitoring device 20 receives at least one status information of the controlled device 40, the CPU module 100, and the IO module 120 from the CPU module 100, and gives various control instructions to the CPU module 100 according to a process controlled by the control system 10. Is output. Further, the support / monitoring device 20 has an event setting tool function. For example, the support / monitoring device 20 sets the event detection conditions in the control system 10 based on the instruction from the user. The support / monitoring device 20 adds, updates, or deletes event detection conditions based on instructions from the user.

IOモジュール120は、被制御機器40の状態を示す情報や、被制御機器40が計測した結果を示す情報等のデータを、入力データとして被制御機器40から取得する。IOモジュール120は、被制御機器40から入力された入力データを、CPUモジュール100に出力する。 The IO module 120 acquires data such as information indicating the state of the controlled device 40 and information indicating the result measured by the controlled device 40 from the controlled device 40 as input data. The IO module 120 outputs the input data input from the controlled device 40 to the CPU module 100.

CPUモジュール100は、ラダー図等を通じて生成されたシーケンス制御のための制御アプリケーションプログラムを有する。制御アプリケーションプログラムは、被制御機器40を制御するための制御プログラムの一例である。CPUモジュール100は、支援/監視装置20から取得したメッセージと、IOモジュール120を通じて取得した入力データとに基づいて、被制御機器40への制御データを生成して、IOモジュール120に出力する。IOモジュール120は、CPUモジュール100から取得した制御データに基づいて、被制御機器40に制御信号を出力する。 The CPU module 100 has a control application program for sequence control generated through a ladder diagram or the like. The control application program is an example of a control program for controlling the controlled device 40. The CPU module 100 generates control data to the controlled device 40 based on the message acquired from the support / monitoring device 20 and the input data acquired through the IO module 120, and outputs the control data to the IO module 120. The IO module 120 outputs a control signal to the controlled device 40 based on the control data acquired from the CPU module 100.

CPUモジュール100は、支援/監視装置20から指定されたイベントの検出条件に従って、イベントを検出する。例えば、CPUモジュール100は、検出条件で定められる変数の値が検出条件で定められる検出閾値を超える場合に、イベントが発生したと判断して、内部のイベント状態変数を「発生中」に設定して、イベントログデータに格納して支援/監視装置20に送信する。これにより、ユーザはイベントが発生したことを認識することができる。 The CPU module 100 detects an event according to the event detection condition specified by the support / monitoring device 20. For example, the CPU module 100 determines that an event has occurred when the value of the variable defined by the detection condition exceeds the detection threshold value defined by the detection condition, and sets the internal event status variable to "currently occurring". Then, it is stored in the event log data and transmitted to the support / monitoring device 20. As a result, the user can recognize that the event has occurred.

CPUモジュール100は、検出条件を更新する旨の指示を支援/監視装置20から受信した場合、新たな検出条件と現在の検出条件とを比較して、現在の検出条件のうち、検出閾値等の条件に変更のある検出条件と、変更のない検出条件とを抽出する。そして、CPUモジュール100は、変更のある検出条件に対応するイベント状態変数の値を初期化する一方、変更されない検出条件に対応するイベント状態変数については、その値を初期化することなく、保持する。これにより、現在の検出条件から変更がないイベントを継続的に検出することができる。 When the CPU module 100 receives an instruction to update the detection conditions from the support / monitoring device 20, the CPU module 100 compares the new detection conditions with the current detection conditions, and among the current detection conditions, the detection threshold value and the like. Extract the detection conditions with changes in the conditions and the detection conditions without changes. Then, the CPU module 100 initializes the value of the event state variable corresponding to the changed detection condition, while holding the event state variable corresponding to the unchanged detection condition without initializing the value. .. As a result, it is possible to continuously detect events that have not changed from the current detection conditions.

具体的には、検出条件の変更がないイベントが、検出条件の更新指示前から発生している場合を取り上げて説明する。もし、更新指示に応じて全てのイベント状態変数を初期化すると、検出条件に変更がないイベントのイベント状態変数が、更新直後に「発生中」に変化し得る。そのため、ユーザは、監視装置で収集されたイベントログデータを解析するときに、更新前後のイベント状態変数や検出条件の更新内容等に基づいて、本当にイベントが新たに発生したのか、既に発生していたイベントが検出条件の更新処理に伴って検出されたのかを解析する必要が生じる。これに対し、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 CPU module 100, as described above, since the value of the event state variable of the event whose detection condition does not change is held without being initialized, the event can be continuously monitored. become.

図2は、CPUモジュール100の機能構成を概略的に示す。CPUモジュール100は、制御部200と、データメモリ部220と、ワークメモリ部210と、入出力部240と、不揮発性メモリ部280と、通信部270と、バス290とを備える。制御部200は、検出部202と条件更新部204とを有する。 FIG. 2 schematically shows the functional configuration of the CPU module 100. The CPU module 100 includes a control unit 200, a data memory unit 220, a work memory unit 210, an input / output unit 240, a non-volatile memory unit 280, a communication unit 270, and a bus 290. The control unit 200 has a detection unit 202 and a condition update unit 204.

制御部200は、ワークメモリ部210、データメモリ部220、入出力部240、不揮発性メモリ部280、及び通信部270と、バス290を通じて接続される。制御部200は、バス290を通じて、ワークメモリ部210、データメモリ部220、入出力部240、不揮発性メモリ部280、及び通信部270と互いにデータを送受信する。 The control unit 200 is connected to the work memory unit 210, the data memory unit 220, the input / output unit 240, the non-volatile memory unit 280, and the communication unit 270 via the bus 290. The control unit 200 transmits / receives data to / from the work memory unit 210, the data memory unit 220, the input / output unit 240, the non-volatile memory unit 280, and the communication unit 270 via the bus 290.

制御部200は、プロセッサであってよい。制御部200は、マイクロコントローラであってよい。制御部200は、中央処理装置(CPU)、ROM、RAM等を含む半導体集積回路で構成される。不揮発性メモリ部280は、システムプログラム及び制御アプリケーションプログラムを格納する。CPUモジュール100は、システムプログラムが不揮発性メモリ部280に書き込まれた状態で出荷されてよい。 The control unit 200 may be a processor. The control unit 200 may be a microcontroller. The control unit 200 is composed of a semiconductor integrated circuit including a central processing unit (CPU), a ROM, a RAM, and the like. The non-volatile memory unit 280 stores a system program and a control application program. The CPU module 100 may be shipped with the system program written in the non-volatile memory unit 280.

制御アプリケーションプログラムは、制御システム10のユーザによって提供される。制御アプリケーションプログラムは、支援/監視装置20からCPUモジュール100に提供されて、CPUモジュール100の不揮発性メモリ部280に書き込まれる。CPUモジュール100が起動すると、制御部200はブート処理中に、不揮発性メモリ部280に書き込まれたシステムプログラム及び制御アプリケーションプログラムをロードする。なお、不揮発性メモリ部280は、システムプログラムを格納するシステム用メモリとは別に、制御アプリケーションプログラムを格納するアプリケーション用メモリとを有してよい。 The control application program is provided by the user of the control system 10. The control application program is provided from the support / monitoring device 20 to the CPU module 100 and written to the non-volatile memory unit 280 of the CPU module 100. When the CPU module 100 is started, the control unit 200 loads the system program and the control application program written in the non-volatile memory unit 280 during the boot process. The non-volatile memory unit 280 may have an application memory for storing the control application program in addition to the system memory for storing the system program.

制御部200は、CPUモジュール100における主処理を担う。例えば、制御部200は、制御アプリケーションプログラムに従って、IOモジュール120から取得した入力データの処理や、入力データに基づいてIOモジュール120に対する制御データを生成する処理を行う。また、制御部200は、システムプログラムに従って、実行するべき制御アプリケーションプログラムのタスクを決定する処理、被制御機器40から入力データを取得する処理、制御アプリケーションプログラムを実行することにより生成された被制御機器40に対する制御データを被制御機器40へ出力するための処理、及び、支援/監視装置20との間でメッセージを送受信するための処理を行う。 The control unit 200 is responsible for the main processing in the CPU module 100. For example, the control unit 200 processes the input data acquired from the IO module 120 according to the control application program, and performs the process of generating the control data for the IO module 120 based on the input data. Further, the control unit 200 performs a process of determining a task of the control application program to be executed according to the system program, a process of acquiring input data from the controlled device 40, and a controlled device generated by executing the control application program. A process for outputting control data for 40 to the controlled device 40 and a process for sending and receiving a message to and from the support / monitoring device 20 are performed.

入出力部240は、IOモジュール120との間のデータの入出力を担う。入出力部240は、IOモジュール120に制御データを出力する。例えば、入出力部240は、データメモリ部220に格納された制御データを、IOモジュール120に出力する。また、入出力部240は、IOモジュール120から入力データを取得する。入出力部240から取得した入力データは、データメモリ部220に格納される。このように、データメモリ部220は、被制御機器40との間のIOデータを格納する。 The input / output unit 240 is responsible for inputting / outputting data to / from the IO module 120. The input / output unit 240 outputs control data to the IO module 120. For example, the input / output unit 240 outputs the control data stored in the data memory unit 220 to the IO module 120. Further, the input / output unit 240 acquires input data from the IO module 120. The input data acquired from the input / output unit 240 is stored in the data memory unit 220. In this way, the data memory unit 220 stores IO data with the controlled device 40.

制御部200は、データメモリ部220に格納されている入力データを読み出す。制御部200は、制御アプリケーションプログラムに従って、入力データに基づいて制御データを生成する。制御部200は、生成した制御データを、データメモリ部220に格納する。入出力部240は、データメモリ部220に格納された制御データをIOモジュール120に出力する。 The control unit 200 reads the input data stored in the data memory unit 220. The control unit 200 generates control data based on the input data according to the control application program. The control unit 200 stores the generated control data in the data memory unit 220. The input / output unit 240 outputs the control data stored in the data memory unit 220 to the IO module 120.

ワークメモリ部210は、制御アプリケーションプログラムが演算に用いる変数である制御用内部変数を格納する。制御部200は、制御アプリケーションプログラムに従って、ワークメモリ部210に格納された制御用内部変数を用いて処理を行う。制御用内部変数は、制御アプリケーションプログラムの動作パラメータを定める変数であってよい。制御用内部変数は、制御アプリケーションプログラムの状態等を表す変数であってよい。制御部200は、制御アプリケーションプログラムに従って動作して、ワークメモリ部210に格納されている制御用内部変数を更新してよい。 The work memory unit 210 stores control internal variables, which are variables used by the control application program for calculation. The control unit 200 performs processing using the internal control variables stored in the work memory unit 210 according to the control application program. The internal control variable may be a variable that defines the operating parameters of the control application program. The internal control variable may be a variable that represents the state of the control application program or the like. The control unit 200 may operate according to the control application program to update the internal control variables stored in the work memory unit 210.

通信部270は、支援/監視装置20との通信を担う。通信部270は、支援/監視装置20からのメッセージを受信して、受信したメッセージを制御部200に出力する。また、通信部270は、支援/監視装置20へのメッセージを制御部200から受信して、受信したメッセージを支援/監視装置20に送信する。支援/監視装置20に送信されるメッセージは、被制御機器40の制御に関するイベントの発生状態を示す情報を含む。 The communication unit 270 is responsible for communication with the support / monitoring device 20. The communication unit 270 receives the message from the support / monitoring device 20 and outputs the received message to the control unit 200. Further, the communication unit 270 receives a message to the support / monitoring device 20 from the control unit 200, and transmits the received message to the support / monitoring device 20. The message transmitted to the support / monitoring device 20 includes information indicating the occurrence state of an event related to the control of the controlled device 40.

ワークメモリ部210及びデータメモリ部220は、揮発性のメモリであってよい。ワークメモリ部210及びデータメモリ部220は、SRAM等であってよい。ワークメモリ部210は、システムプログラム用の制御用内部変数を格納するワークメモリとは別に、制御アプリケーションプログラムの制御用内部変数を格納するワークメモリとを有してよい。 The work memory unit 210 and the data memory unit 220 may be volatile memories. The work memory unit 210 and the data memory unit 220 may be SRAM or the like. The work memory unit 210 may have a work memory for storing the control internal variables of the control application program in addition to the work memory for storing the control internal variables for the system program.

不揮発性メモリ部280はまた、被制御機器40の制御に関するイベントを検出するための検出条件を示すデータファイルを格納する。検出条件を示すデータは、支援/監視装置20からCPUモジュール100に提供されて、不揮発性メモリ部280に格納される。制御部200は、CPUモジュール100がIOモジュール120を制御中において、支援/監視装置20から受信したイベント設定データに従って、イベント検出条件を更新することができる。 The non-volatile memory unit 280 also stores a data file indicating detection conditions for detecting an event related to the control of the controlled device 40. The data indicating the detection conditions is provided from the support / monitoring device 20 to the CPU module 100 and stored in the non-volatile memory unit 280. The control unit 200 can update the event detection conditions according to the event setting data received from the support / monitoring device 20 while the CPU module 100 is controlling the IO module 120.

イベントの検出条件としては、制御用内部変数についての検出条件、入力データについての検出条件、制御データについての検出条件等を含む。制御部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 control unit 200 detects the occurrence of an event when the internal control variable satisfies the detection condition. Further, the control unit 200 detects an event when the input data satisfies the detection condition. Further, the control unit 200 detects an event when the control data satisfies the detection condition. The detection condition may include two or more of input data, control data, and control internal variables.

データメモリ部220はまた、制御部200が検出したイベントのログデータを格納する。通信部270は、制御部200により検出されたイベントを、支援/監視装置20に送信する。例えば、制御部200は、データメモリ部220に格納されているイベントログデータを読み出して、読み出したイベントログデータを、通信部270を通じて支援/監視装置20に送信してよい。 The data memory unit 220 also stores log data of events detected by the control unit 200. The communication unit 270 transmits the event detected by the control unit 200 to the support / monitoring device 20. For example, the control unit 200 may read the event log data stored in the data memory unit 220 and transmit the read event log data to the support / monitoring device 20 through the communication unit 270.

CPUモジュール100におけるイベントの検出条件の更新に関する動作について説明する。検出部202は、被制御機器40の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する。条件更新部204は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する。条件更新部204は、第1の検出条件により検出されるイベントに関する情報を保持する。一方、条件更新部204は、第2の検出条件により検出されるイベントに関する情報を初期化する。 The operation related to updating the event detection condition in the CPU module 100 will be described. The detection unit 202 detects an event by repeatedly evaluating a predetermined detection condition for detecting an event related to the control of the controlled device 40. When updating the current detection condition to a new detection condition, the condition update unit 204 sets the first detection condition in which the condition is unchanged and the second detection condition in which the condition is changed among the current detection conditions. And extract. The condition update unit 204 holds information about the event detected by the first detection condition. On the other hand, the condition update unit 204 initializes the information regarding the event detected by the second detection condition.

一例として、イベントに関する情報は、検出条件の評価結果を示す。例えば、イベントに関する情報は、検出条件を構成する条件式の論理値を示す。当該論理値が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 detection unit 202 detects the transition of the event state by repeatedly evaluating the detection conditions. When the detection unit 202 detects that the state of the event has changed, the data memory unit 220 stores that the transition has occurred. The data memory unit 220 is an example of an event storage unit.

条件更新部204は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、条件式に変更がない場合であっても、当該他の検出条件に変更がある場合には、条件式を含む検出条件を第2の検出条件として抽出する。 When updating the current detection condition to a new detection condition, the condition update unit 204 changes the conditional expression for the detection condition including the conditional expression using the evaluation result of the other detection conditions among the current detection conditions. Even if there is no change, if there is a change in the other detection conditions, the detection condition including the conditional expression is extracted as the second detection condition.

検出条件は、データメモリ部220、ワークメモリ部210、及び不揮発性メモリ部280の少なくとも1つに記憶される。本実施形態では、データメモリ部220を検出条件記憶部の一例として説明する。 The detection conditions are stored in at least one of the data memory unit 220, the work memory unit 210, and the non-volatile memory unit 280. In the present embodiment, the data memory unit 220 will be described as an example of the detection condition storage unit.

データメモリ部220は、互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する。現在の検出条件は、第1の記憶領域及び第2の記憶領域のうちの一方の記憶領域に記憶され、検出部202は、当該一方の記憶領域を参照して、イベントを検出するための検出条件を繰り返し評価する。ここで、検出条件を更新する場合に、条件更新部204は、現在の検出条件に対して新たな検出条件の少なくとも一部を反映した検出条件を、第1の記憶領域及び第2の記憶領域のうち他方の記憶領域に記憶させ、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える。 The data memory unit 220 has a first storage area and a second storage area that can store different detection conditions. The current detection conditions are stored in one of the first storage area and the second storage area, and the detection unit 202 refers to the one storage area and detects an event. Evaluate the condition repeatedly. Here, when updating the detection conditions, the condition update unit 204 sets the detection conditions that reflect at least a part of the new detection conditions with respect to the current detection conditions in the first storage area and the second storage area. Of these, the storage area is stored in the other storage area, and the storage area referred to by the detection unit 202 is switched from one storage area to the other storage area.

具体的には、第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 detection unit 202 sets the valid setting. Evaluate the detection conditions in which a value indicating that the area is valid is stored. The detection unit 202 does not evaluate the detection condition in which a value indicating invalidity is stored in the valid setting area. Here, when updating to a new detection condition, the condition update unit 204 stores a value indicating that the second detection condition is not valid in the valid setting area of the other storage area, and also stores the first value. Store a value indicating that the detection condition is valid. Then, the condition update unit 204 switches the storage area referred to by the detection unit 202 from one storage area to the other storage area. As a result, it is possible to stop the event detection operation under the changed detection condition at once while continuing the event detection operation under the unchanged detection condition.

条件更新部204は、新たな検出条件に更新する場合に、現在の検出条件から削除される第3の検出条件を抽出する。そして、条件更新部204は、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える前に、他方の記憶領域の有効設定領域において、第3の検出条件が有効でない旨を示す値を記憶させる。これにより、変更がない検出条件によるイベントの検出動作を継続しつつ、削除される検出条件によるイベントの検出動作と、変更がある検出条件によるイベントの検出動作とを、一括して停止することができる。 The condition update unit 204 extracts a third detection condition that is deleted from the current detection condition when updating to a new detection condition. Then, before switching the storage area referred to by the detection unit 202 from one storage area to the other storage area, the condition update unit 204 does not have the third detection condition valid in the valid setting area of the other storage area. Store the value indicating that. As a result, while continuing the event detection operation based on the detection condition that has not changed, the event detection operation based on the deleted detection condition and the event detection operation based on the changed detection condition can be stopped at once. can.

図3は、支援/監視装置20において設定されるイベント設定データの一例を示す。イベント設定データは、イベント番号、イベント名、検出条件、及び周期の情報を含む。支援/監視装置20は、ユーザが編集可能なように、検出条件データをテーブル形式で表示する。 FIG. 3 shows an example of event setting data set in the support / monitoring device 20. The event setting data includes event number, event name, detection condition, and cycle information. The support / monitoring device 20 displays the detection condition data in a table format so that the user can edit it.

「イベント番号」は、イベントを識別する値である。「イベント名」は、イベントに付与される名前を示す。「検出条件」は、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 event numbers 1 to 3 are represented by a single conditional expression using a single event detection variable. The detection conditions shown in event numbers 4 to 5 are represented by conditional expressions using the evaluation results of other detection conditions. The evaluation result of each conditional expression is obtained as a logical value of true (TRUE) or false (FALSE).

例えば、イベント番号1の検出条件は、「Var01=FALSE」という条件式を1つ含む。この検出条件は、イベント検出用変数であるVar01の値がFALSEである場合に、イベント名「イベントA」のイベントが発生していることを示す。Var01は、データメモリ部220に格納された入力データ及び制御データ、又は、ワークメモリ部210に格納されている制御用内部変数等の変数を示す。また、イベント番号4の検出条件は、イベント番号1の検出条件の評価結果と、イベント番号2の検出条件の評価結果とのAND結合で与えられる。この検出条件は、イベント番号1の条件式及びイベント番号2の条件式がいずれもTRUEである場合に、イベント名「イベントD」のイベントが生じていることを示す。 For example, the detection condition of event number 1 includes one conditional expression "Var01 = FALSE". This detection condition indicates that an event with the event name "event A" has occurred when the value of the event detection variable Var01 is FALSE. Var01 indicates variables such as input data and control data stored in the data memory unit 220, or internal control variables stored in the work memory unit 210. Further, the detection condition of event number 4 is given by AND combination of the evaluation result of the detection condition of event number 1 and the evaluation result of the detection condition of event number 2. This detection condition indicates that an event with the event name "event D" has occurred when both the conditional expression of the event number 1 and the conditional expression of the event number 2 are TRUE.

「周期」は、イベントの検出周期を示す。各イベントは、互いに異なる周期で検出することができる。 "Period" indicates an event detection cycle. Each event can be detected at different cycles.

支援/監視装置20において、ユーザは、支援/監視装置20のイベント設定ツール機能を通じてイベント設定データを編集する。支援/監視装置20は、ユーザにより編集されたイベント番号、検出条件及び周期を含むイベント設定データをCPUモジュール100に送信する。 In the support / monitoring device 20, the user edits the event setting data through the event setting tool function of the support / monitoring device 20. The support / monitoring device 20 transmits the event setting data including the event number, the detection condition, and the cycle edited by the user to the CPU module 100.

CPUモジュール100において、ワークメモリ部210及びデータメモリ部220内におけるイベント検出用変数のアドレスを示すアドレス情報は、不揮発性メモリ部280に記憶されている。検出部202は、当該アドレス情報が示すアドレスを参照してイベント検出用変数の値を取得して、各検出条件に含まれる条件式を評価する。 In the CPU module 100, the address information indicating the address of the event detection variable in the work memory unit 210 and the data memory unit 220 is stored in the non-volatile memory unit 280. The detection unit 202 acquires the value of the event detection variable with reference to the address indicated by the address information, and evaluates the conditional expression included in each detection condition.

図4は、制御部200において行うイベント検出処理を概略的に示す。 FIG. 4 schematically shows an event detection process performed by the control unit 200.

データメモリ部220には、入力データ及び制御データの現在の値が記憶されている。また、ワークメモリ部210には、制御用変数の現在の値が記憶されている。検出部202は、処理440において、データメモリ部220やワークメモリ部210に記憶されている値のうち、イベント設定データによって指定されたイベント検出用の値を、検出条件に含まれる条件式に適用して、条件式を評価することにより、イベント状態を示す今回評価結果を得る。検出部202は、処理440により得た今回評価結果と、前回の評価で得られた前回評価結果とを比較する処理450を行う。検出部202は、処理450によって今回評価結果と前回評価結果とが異なる場合、イベントログ460を生成して、データメモリ部220に格納する。例えば、検出部202は、前回評価結果がFALSEであった場合において、今回評価結果がTRUEであるときは、イベント番号と、現在時刻と、「発生」を示すイベント状態とを含むイベントログ460を生成して、データメモリ部220に格納する。また、検出部202は、前回評価結果がTRUEであった場合において、今回評価結果がFALSEであるときは、イベント番号と、現在時刻と、「未発生」を示すイベント状態とを含むイベントログ460を生成して、データメモリ部220に格納する。 The data memory unit 220 stores the current values of the input data and the control data. Further, the work memory unit 210 stores the current value of the control variable. In the process 440, the detection unit 202 applies the event detection value specified by the event setting data among the values stored in the data memory unit 220 and the work memory unit 210 to the conditional expression included in the detection condition. Then, by evaluating the conditional expression, the evaluation result of this time indicating the event state is obtained. The detection unit 202 performs a process 450 for comparing the current evaluation result obtained by the process 440 with the previous evaluation result obtained in the previous evaluation. When the current evaluation result and the previous evaluation result differ depending on the process 450, the detection unit 202 generates an event log 460 and stores it in the data memory unit 220. For example, when the previous evaluation result is FALSE and the current evaluation result is TRUE, the detection unit 202 displays an event log 460 including an event number, a current time, and an event state indicating "occurrence". Generate and store in the data memory unit 220. Further, when the previous evaluation result is TRUE and the current evaluation result is FALSE, the detection unit 202 includes an event number, a current time, and an event log 460 indicating "not occurring". Is generated and stored in the data memory unit 220.

なお、本実施形態において、検出部202が検出条件に基づいてイベントを検出する動作や、条件更新部204が検出条件を更新する場合の動作を主として説明する。ここで、「検出条件を更新する」とは、例えば、複数のイベント番号に対応する複数の検出条件のうちの少なくとも1つの検出条件を変更又は削除する場合、又は、新たなイベント番号に対応する検出条件を追加する場合をいう。支援/監視装置20においてユーザが検出条件を変更した場合、支援/監視装置20は、全イベントのイベント設定データと、検出条件の更新を指示するメッセージとを、CPUモジュール100に送信する。 In the present embodiment, an operation in which the detection unit 202 detects an event based on the detection conditions and an operation in which the condition update unit 204 updates the detection conditions will be mainly described. Here, "updating the detection condition" means, for example, changing or deleting at least one detection condition among a plurality of detection conditions corresponding to a plurality of event numbers, or corresponding to a new event number. This refers to the case where detection conditions are added. When the user changes the detection conditions in the support / monitoring device 20, the support / monitoring device 20 transmits the event setting data of all the events and the message instructing the update of the detection conditions to the CPU module 100.

図5は、イベント検出用の管理データ500のデータ構造を模式的に示す。管理データ500は、データメモリ部220又はワークメモリ部210に記憶される。 FIG. 5 schematically shows the data structure of the management data 500 for event detection. The management data 500 is stored in the data memory unit 220 or the work memory unit 210.

管理データ500は、監視イベント管理領域番号501と、監視イベント管理領域510及び監視イベント管理領域511と、イベント検出条件管理データテーブル520とを含む。一例として、管理データ500は、1024個のイベント検出条件管理データテーブル520を有する。 The management data 500 includes a monitoring event management area number 501, a monitoring event management area 510, a monitoring event management area 511, and an event detection condition management data table 520. As an example, the management data 500 has 1024 event detection condition management data tables 520.

監視イベント管理領域番号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 detection unit 202 for event detection is stored. When the value of the monitoring event management area number 501 is 0, the detection unit 202 detects an event using the data stored in the monitoring event management area 510. When the value of the monitoring event management area number 501 is 1, the detection unit 202 detects an event using the data stored in the monitoring event management area 511.

監視イベント管理領域510は、イベント検出条件管理数530と、監視イベント情報540とを含む。イベント検出条件管理数530には、イベントの検出条件の数Nを示す値が記憶される。監視イベント管理領域510は、イベント検出条件管理数530で示される数の監視イベント情報540を含む。監視イベント情報540は、それぞれ異なるイベントに対応する。なお、監視イベント管理領域511は、監視イベント管理領域510と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。 The monitoring event management area 510 includes the number of event detection condition management 530 and the monitoring event information 540. The event detection condition management number 530 stores a value indicating the number N of event detection conditions. The monitoring event management area 510 includes the number of monitoring event information 540 indicated by the event detection condition management number 530. The monitoring event information 540 corresponds to a different event. Since the monitoring event management area 511 has the same data structure as the monitoring event management area 510, the details of the data structure will be omitted.

監視イベント情報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 valid flag 570 and an event detection condition management data table number 571. The monitoring enable flag 570 indicates whether to enable or disable the detection of the corresponding event. The event detection condition management data table number 571 indicates the number of the event detection condition management data table 520, which will be described later. When the value of the monitoring valid flag 570 is 1, which indicates "valid", the detection unit 202 detects the corresponding event. When the value of the monitoring enable flag 570 is 0 indicating "invalid", the detection unit 202 does not detect the corresponding event. Since the monitoring event information 540-2 to the monitoring event information 540-N have the same data structure as the monitoring event information 540-1, the details of the data structure will be omitted.

イベント検出条件管理データテーブル520−1は、データ登録フラグ551と、イベント番号552と、イベントタイプ553と、イベント状態554と、イベント発生/復旧時の変数値555と、論理個数556と、論理データ560とを有する。 The event detection condition management data table 520-1 contains data registration flag 551, event number 552, event type 553, event state 554, variable value 555 at the time of event occurrence / recovery, logical number 556, and logical data. It has 560 and.

データ登録フラグ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 event number 552. The event number 552 may store the event number included in the event setting data received from the support / monitoring device 20.

イベントタイプ553は、条件式を構成する被演算子に対する演算子を示す。例えば、イベントタイプ553は、「=」、「>」、「<」、「≧」、「≦」等の関係演算子や「AND」及び「OR」等の論理演算子を識別する情報を示す。 Event type 553 indicates an operator for the operand that constitutes the conditional expression. For example, event type 553 indicates information that identifies relational operators such as "=", ">", "<", "≧", and "≦" and logical operators such as "AND" and "OR". ..

イベント状態554は、イベントが発生状態にあるか否かを示す。イベント状態554の値が1の場合、イベントが発生していることを示す。イベント状態554の値が0の場合、イベントが発生していないことを示す。イベント発生/復旧時の変数値555には、イベントが発生した場合の検出条件に含まれる変数の値が記憶される。例えば、図3のイベント番号1に対応する検出条件に含まれるVar01の値が記憶される。 The event state 554 indicates whether or not an event has occurred. When the value of the event state 554 is 1, it indicates that an event has occurred. When the value of the event state 554 is 0, it indicates that no event has occurred. The variable value 555 at the time of event occurrence / recovery stores the value of the variable included in the detection condition when the event occurs. For example, the value of Var01 included in the detection condition corresponding to the event number 1 in FIG. 3 is stored.

論理個数556には、条件式で用いられる被演算子の数nが記憶される。論理データ560には、条件式で用いられる被演算子を示す情報が記憶される。論理データ560に記憶される情報は、条件式で用いられる検出閾値等の数値、変数が記憶されているアドレス、イベント番号等を含む。例えば、論理データ560には、イベント番号1の条件式に含まれる「Var01」の変数が記憶されているアドレスと、「FALSE」の値とが記憶される。なお、イベント検出条件管理データテーブル520−2〜イベント検出条件管理データテーブル520−1023は、イベント検出条件管理データテーブル520−1と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。 In the logical number 556, the number n of the operands used in the conditional expression is stored. Information indicating the operand used in the conditional expression is stored in the logical data 560. The information stored in the logical data 560 includes numerical values such as detection thresholds used in conditional expressions, addresses in which variables are stored, event numbers, and the like. For example, in the logical data 560, the address where the variable of "Var01" included in the conditional expression of the event number 1 is stored and the value of "FALSE" are stored. Since the event detection condition management data table 520-2 to the event detection condition management data table 520-1023 have the same data structure as the event detection condition management data table 520-1, the details of the data structure will be described. Omit.

なお、単一のイベントの検出条件は、複数のイベント検出条件管理データテーブル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 event number 5 in FIG. 3 may be set by the two event detection condition management data tables 520. As an example, the detection condition of the event number 5 in FIG. 3 is generated as the first event detection condition management data table 520 representing the OR operation of the event number 1 and the event number 2, and the event detection condition management data table 520 is generated. A second event detection condition management data table 520 representing an AND operation between the event number assigned to and the event number 2 may be generated. In this case, the event of event number 5 in FIG. 3 is represented by the evaluation result of the detection condition in the second event detection condition management data table 520.

図6は、監視周期管理情報580のデータ構造を示す。監視周期管理情報580は、監視周期管理数581と、周期情報582とを含む。監視周期管理数581には、周期情報の数Mを示す値が記憶される。監視周期管理情報580は、監視周期管理数581で示される個数の周期情報582を含む。 FIG. 6 shows the data structure of the monitoring cycle management information 580. The monitoring cycle management information 580 includes the monitoring cycle management number 581 and the cycle information 582. In the monitoring cycle management number 581, a value indicating the number M of the cycle information is stored. The monitoring cycle management information 580 includes the number of cycle information 582 indicated by the monitoring cycle management number 581.

周期情報582−1は、周期590と、イベント管理数591と、イベント番号592とを含む。周期590には、周期を示す数値が記憶される。イベント管理数591は、周期590で示される周期でイベントを検出する対象となるイベントの数mを示す。イベント番号592には、イベント管理数591で示される数のイベントのイベント番号が記憶される。 The cycle information 582-1 includes a cycle 590, an event management number 591, and an event number 592. In the cycle 590, a numerical value indicating the cycle is stored. The event management number 591 indicates the number m of the event for which the event is detected in the cycle indicated by the cycle 590. The event number 592 stores the event numbers of the number of events indicated by the event management number 591.

なお、周期情報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 detection unit 202 detects an event in the control unit 200. In S600, the detection unit 202 acquires the current date and time information. Subsequently, in S602, the detection unit 202 selects the event to be detected. Specifically, the detection unit 202 refers to the monitoring cycle management information 580 and specifies the event number in which the event should be detected in the current tact.

続いて、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 detection unit 202 determines whether or not the event detection of the selected event is effectively set. The detection unit 202 makes a determination in S606 with reference to the value of the monitoring valid flag 570 of the monitoring event information 540. If the detection condition is invalid, the process proceeds to the processing of the next event in the loop processing of "event detection". If the detection condition is valid, the process proceeds to S610.

S610において、検出部202は、検出条件に含まれる条件式を評価して評価結果を算出する。検出部202は、イベント検出条件管理データテーブル520を参照して、検出条件の評価結果を算出する。 In S610, the detection unit 202 evaluates the conditional expression included in the detection condition and calculates the evaluation result. The detection unit 202 calculates the evaluation result of the detection condition with reference to the event detection condition management data table 520.

続いて、S612において、検出部202は、イベント検出条件管理データテーブル520のイベント状態554に記憶されている現在値を読み出すとともに、S610で得られた評価結果をイベント状態554に記憶する。 Subsequently, in S612, the detection unit 202 reads the current value stored in the event state 554 of the event detection condition management data table 520, and stores the evaluation result obtained in S610 in the event state 554.

S614において、検出部202は、イベント状態が変化したか否かを判断する。具体的には、検出部202は、S612でイベント状態554から読み出した値と、S610により得られた評価結果とが異なる場合に、イベント状態が変化したと判断する。また、検出部202は、S612でイベント状態554から読み出した値と、S610により得られた評価結果とが一致する場合に、イベント状態が変化していないと判断する。イベント状態が変化していない場合、「イベント検出」のループ処理における次のイベントの処理に進む。イベント状態が変化した場合、S616に進む。 In S614, the detection unit 202 determines whether or not the event state has changed. Specifically, the detection unit 202 determines that the event state has changed when the value read from the event state 554 in S612 and the evaluation result obtained in S610 are different. Further, the detection unit 202 determines that the event state has not changed when the value read from the event state 554 in S612 and the evaluation result obtained in S610 match. If the event state has not changed, the process proceeds to the processing of the next event in the loop processing of "event detection". If the event state changes, the process proceeds to S616.

S616において、検出部202は、対応する検出条件に含まれる条件式で用いられる変数の値をイベント発生/復旧時の変数値555に記憶する。続いて、検出部202は、イベント番号と、イベントの状態と、現在の日時情報とを含むイベントログデータを生成する。イベントの状態は「発生」又は「未発生」を示す。S610により得られた評価結果がTRUEの場合イベントが発生したことを示す。S610により得られた評価結果がFALSEの場合、発生していたイベントが終了したことを示す。例えば、評価結果がFALSEの場合、異常イベントが復旧したことを示す。 In S616, the detection unit 202 stores the value of the variable used in the conditional expression included in the corresponding detection condition in the variable value 555 at the time of event occurrence / recovery. Subsequently, the detection unit 202 generates event log data including the event number, the event status, and the current date and time information. The state of the event indicates "occurred" or "not occurred". If the evaluation result obtained by S610 is TRUE, it indicates that an event has occurred. When the evaluation result obtained by S610 is FALSE, it indicates that the event that has occurred has ended. For example, when the evaluation result is FALSE, it indicates that the abnormal event has been recovered.

図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 CPU module 100 receives from the support / monitoring device 20 a message instructing to update new event setting data and detection conditions. Here, in the management data 500, it is assumed that the information based on the current event setting data is stored in the monitoring event management area 510 and the event detection condition management data table 520. That is, it is assumed that the detection unit 202 has performed the event detection process according to the information stored in the monitoring event management area 510 until now. Further, in order to update the information stored in the monitoring event management area 510, it is assumed that the same information as the monitoring event management area 510 is stored in the monitoring event management area 511.

S802において、条件更新部204は、現在のイベント設定データと、新たに受信したイベント設定データとを照合して、削除対象、追加対象、変更対象、及び変更対象外のイベントを特定する。具体的には、条件更新部204は、現在のイベント設定データに含まれるイベント番号のうち、新たなイベント設定データに含まれないイベント番号を抽出することにより、削除イベント番号リストを生成する。また、条件更新部204は、新たなイベント設定データに含まれるイベント番号のうち、現在のイベント設定データに含まれないイベント番号を抽出することにより、追加イベント番号リストを生成する。ここで、現在のイベント設定データ及び新たなイベント設定データの双方に同一のイベント番号が含まれる場合、条件更新部204は、新たなイベント設定データで指定された条件式と、現在のイベント設定データで指定された条件式とを照合して、条件式が不一致の場合、変更対象イベント番号リストに当該イベント番号を追加する。一方、条件式が一致する場合、条件更新部204は、変更対象外イベント番号リストに当該イベント番号を追加する。 In S802, the condition update unit 204 collates the current event setting data with the newly received event setting data, and identifies the deletion target, the addition target, the change target, and the event not to be changed. Specifically, the condition update unit 204 generates a deletion event number list by extracting event numbers that are not included in the new event setting data from the event numbers included in the current event setting data. Further, the condition update unit 204 generates an additional event number list by extracting the event numbers not included in the current event setting data from the event numbers included in the new event setting data. Here, when the same event number is included in both the current event setting data and the new event setting data, the condition update unit 204 sets the conditional expression specified in the new event setting data and the current event setting data. If the conditional expression does not match, the event number is added to the event number list to be changed. On the other hand, if the conditional expressions match, the conditional update unit 204 adds the event number to the non-changeable event number list.

また、変更対象外イベント番号リストに含まれるイベント番号のうち、対応する検出条件を構成する条件式が他のイベント番号を含む場合、条件更新部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 condition update unit 204 indicates that the other event number is the change target event number. Determine if it is included in the list. When another event number is included in the change target event number list, the condition update unit 204 deletes it from the change target event number list and adds it to the change target event number list. For example, if there is no change in the conditional expression "event number 1 AND event number 2" of the detection condition corresponding to the event number 4 in FIG. 3, and there is a change in the conditional expression of the event number 1, the condition update unit 204 Deletes the event number 4 from the non-changeable event number list and adds the event number 4 to the changeable event number list.

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 condition update unit 204 performs a process of stopping the monitoring of the change target event and the deletion target event. Specifically, the condition update unit 204 sets the event number stored in the event detection condition management data table 520 indicated by the event detection condition management data table number 571 for each monitoring event information 540 in the monitoring event management area 511. When it is included in the change target event number list or the deletion target event number list, the value of the monitoring valid flag 570 of the monitoring event information 540 is changed to 0.

そして、条件更新部204は、監視イベント管理領域番号501の値を、監視イベント管理領域511を示す値に変更する。この処理の完了以後、検出部202は、監視イベント管理領域511に記憶された情報に基づいてイベントを検出するので、変更対象イベント番号リスト及び削除対象イベント番号リストに含まれるイベント番号に対応するイベントの検出は行われなくなる。一方、変更対象外イベント番号リストに含まれるイベント番号に対応するイベントの検出は継続して行われる。 Then, the condition update unit 204 changes the value of the monitoring event management area number 501 to a value indicating the monitoring event management area 511. After the completion of this process, the detection unit 202 detects the event based on the information stored in the monitoring event management area 511. Therefore, the event corresponding to the event number included in the change target event number list and the deletion target event number list. Will not be detected. On the other hand, the event corresponding to the event number included in the non-changeable event number list is continuously detected.

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 condition update unit 204 deletes the monitoring cycle information of the event to be deleted and registers the monitoring cycle information of the event to be added. Specifically, the condition update unit 204 deletes the event number 592 that stores the value corresponding to the event number included in the deletion target event number list in the monitoring cycle management information 580. Further, the condition update unit 204 adds each event number to the cycle information corresponding to the cycle specified in the new event setting data for each event number included in the addition target event number list in the monitoring cycle management information 580. do.

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 condition update unit 204 adds and updates event setting information to the event detection condition management data table 520 for the deletion target event, the addition target event, and the change target event. Specifically, the condition update unit 204 changes the data registration flag 551 of the event detection condition management data table 520 that stores the event numbers included in the deletion target event number list to 0.

また、条件更新部204は、変更対象イベント番号リストに含まれるイベント番号を記憶しているイベント検出条件管理データテーブル520を初期化する。具体的には、条件更新部204は、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された新たな検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を変更する。 Further, the condition update unit 204 initializes the event detection condition management data table 520 that stores the event numbers included in the change target event number list. Specifically, the condition update unit 204 sets the value of the event state 554 to 0 and sets the value of the variable value 555 at the time of event occurrence / recovery to NULL. Further, the logical number 556, the logical data 560, and the event type 553 are changed according to the conditional expression constituting the new detection condition specified by the new event setting data.

また、条件更新部204は、追加対象イベント番号リストに含まれるイベント番号に対応するイベント設定データに基づいて、イベント検出条件管理データテーブル520にイベント設定情報を追加する。具体的には、条件更新部204は、データ登録フラグ551の値が0のイベント検出条件管理データテーブル520を検索して、検索されたイベント検出条件管理データテーブル520において、データ登録フラグ551の値を1にし、追加対象イベント番号リストのイベント番号をイベント番号552に記憶し、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された対応する検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を設定する。 Further, the condition update unit 204 adds the event setting information to the event detection condition management data table 520 based on the event setting data corresponding to the event number included in the event number list to be added. Specifically, the condition update unit 204 searches the event detection condition management data table 520 in which the value of the data registration flag 551 is 0, and in the searched event detection condition management data table 520, the value of the data registration flag 551. Is set to 1, the event number of the event number list to be added is stored in the event number 552, the value of the event state 554 is set to 0, and the value of the variable value 555 at the time of event occurrence / recovery is set to NULL. Further, the logical number 556, the logical data 560, and the event type 553 are set according to the conditional expression that constitutes the corresponding detection condition specified by the new event setting data.

S810において、条件更新部204は、追加対象イベント及び変更対象イベントについて、監視イベント管理領域510における監視イベント情報540に対し、追加及び更新処理を行う。具体的には、条件更新部204は、監視イベント管理領域511と同一の情報を監視イベント管理領域510に記憶させるとともに、監視イベント管理領域510における監視イベント情報540において、変更対象イベントについての情報変更と、追加対象イベントの追加とを行う。より具体的には、監視イベント管理領域510における監視イベント情報540のうち、対応するイベント番号が変更対象イベント番号リストに含まれる監視イベント情報540を選択して、当該監視イベント情報540の監視有効フラグ570の値を1に変更する。 In S810, the condition update unit 204 adds and updates the monitoring event information 540 in the monitoring event management area 510 with respect to the addition target event and the change target event. Specifically, the condition update unit 204 stores the same information as the monitoring event management area 511 in the monitoring event management area 510, and changes the information about the event to be changed in the monitoring event information 540 in the monitoring event management area 510. And add the event to be added. More specifically, among the monitoring event information 540 in the monitoring event management area 510, the monitoring event information 540 whose corresponding event number is included in the change target event number list is selected, and the monitoring valid flag of the monitoring event information 540 is selected. Change the value of 570 to 1.

また、条件更新部204は、S808において新たなイベントの検出条件を追加したイベント検出条件管理データテーブル520の番号と、監視有効フラグ570の値が1の情報とを、監視イベント情報540に追加する。 Further, the condition update unit 204 adds the number of the event detection condition management data table 520 to which the new event detection condition is added in S808 and the information in which the value of the monitoring valid flag 570 is 1 to the monitoring event information 540. ..

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 condition update unit 204 sets the management data 500 so as to start monitoring based on the updated and added monitoring event information. Specifically, the condition update unit 204 changes the value of the monitoring event management area number 501 to a value indicating the monitoring event management area 510. After the completion of this process, the detection unit 202 detects the event based on the information stored in the monitoring event management area 510, and therefore corresponds to the event number included in either the change target event number list or the deletion target event number list. The detection of the event to be performed is started. On the other hand, the detection of the event corresponding to the event number included in the non-changeable event number list is still continued.

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 / monitoring device 20. The support / monitoring device 20 receives the event log data from the CPU module 100 as a message. The support / monitoring device 20 displays a list of the set event log data in a table format. The support / monitoring device 20 displays the "event name", "occurrence / recovery", and "time" based on the event log data.

イベント名は、イベントの発生状態が変化したイベント番号に対応するイベント名である。支援/監視装置20は、イベントログデータに含まれるイベント番号に対応するイベント名を表示する。 The event name is an event name corresponding to the event number in which the event occurrence state has changed. The support / monitoring device 20 displays the event name corresponding to the event number included in the event log data.

「発生/復旧」は、イベント発生状態の変化種別を示す。イベントが発生していない状態からイベントが新たに発生した状態に変化した場合は「発生」が表示され、イベントが発生している状態からイベントが発生していない状態に変化した場合は「復旧」が表示される。支援/監視装置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 / monitoring device 20 displays "occurrence" when the event status included in the event log data is "occurred", and displays "recovery" when the event status included in the event log data is "not occurred". do.

「時刻」は、イベントの発生状態の変化が検出された時刻を示す。支援/監視装置20は、イベントログデータに含まれる時刻を表示する。 “Time” indicates the time when a change in the event occurrence state is detected. The support / monitoring device 20 displays the time included in the event log data.

図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 / monitoring device 20. In this case, the support / monitoring device 20 transmits event setting data including detection conditions for all events to the CPU module 100. In the CPU module 100, the condition update unit 204 initializes the value of the event state 554 of the event detection condition management data table 520 corresponding to the "event D" in the management data 500, while "event B" and "event C". And, in the event state 554 corresponding to "event E", a value 1 indicating "occurring" is held. Further, in the event state 554 corresponding to "event A", a value 0 indicating "not occurred" is held.

これにより、イベント設定ツールによる検出条件の更新直後において、「イベント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 control system 10, even when a part of the detection conditions is updated, for example, it is possible to perform consistent event detection for the events for which the detection conditions are not changed. Therefore, as described above, it is possible to reduce the time and effort for the user to analyze the event log as the detection condition is updated.

以上に説明したように、CPUモジュール100によれば、検出条件に変更がないイベントのイベント状態の値を初期化せずに保持するので、当該イベントを連続的に監視することが可能になる。 As described above, according to the CPU module 100, since the value of the event state of the event for which the detection condition is not changed is held without being initialized, the event can be continuously monitored.

なお、一実施形態における制御システム10は、制御装置としてPLCを用いたPLCシステムである。他の形態において、制御システムは、分散制御システム(DCS)であり得る。 The control system 10 in one embodiment is a PLC system using a PLC as a control device. In other forms, the control system can be a distributed control system (DCS).

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。その様な変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。 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 Control system 20 Support / monitoring device 40 Controlled device 100 CPU module 120 IO module 200 Control unit 202 Detection unit 204 Condition update unit 210 Work memory unit 220 Data memory unit 280 Non-volatile memory unit 240 Input / output unit 270 Communication unit 290 Bus 440, 450 Processing 460 Event log 500 Management data 501 Monitoring event management area number 510 Monitoring event management area 511 Monitoring event management area 520 Event detection condition management data table 530 Event detection condition management number 540 Monitoring event information 551 Data registration flag 552 Event number 553 Event type 554 Event status 555 Variable value at the time of event occurrence / recovery 556 Logical number 560 Logical data 570 Monitoring valid flag 571 Event detection condition management data Table number 580 Monitoring cycle management information 581 Monitoring cycle management number 582 Cycle information 590 Cycle 591 Event Number of management 592 Event number

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.
前記条件更新部は、前記現在の検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、前記条件式に変更がない場合であっても、前記他の検出条件に変更がある場合には、前記条件式を含む検出条件を前記第2の検出条件として抽出する
請求項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の記憶領域及び前記第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.
前記第1の記憶領域及び前記第2の記憶領域は、複数の検出条件のそれぞれが有効であるか否かを示す値を記憶する有効設定領域を含み、
前記検出部は、前記有効設定領域に有効である旨を示す値が記憶される検出条件を評価し、
前記条件更新部は、
前記他方の記憶領域の前記有効設定領域において、前記第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.
請求項1から7のいずれか一項に記載の制御装置と、
監視装置と
を備え、
前記制御装置は、前記イベントの検出結果を前記監視装置に送信する
制御システム。
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.
JP2017139392A 2017-07-18 2017-07-18 Control device, control system and control method Active JP6946804B2 (en)

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)

* Cited by examiner, † Cited by third party
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

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