[go: up one dir, main page]

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

Control device, control system and control method Download PDF

Info

Publication number
JP2019021061A
JP2019021061A JP2017139392A JP2017139392A JP2019021061A JP 2019021061 A JP2019021061 A JP 2019021061A JP 2017139392 A JP2017139392 A JP 2017139392A JP 2017139392 A JP2017139392 A JP 2017139392A JP 2019021061 A JP2019021061 A JP 2019021061A
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.)
Granted
Application number
JP2017139392A
Other languages
Japanese (ja)
Other versions
JP6946804B2 (en
Inventor
真規子 高橋
Makiko Takahashi
真規子 高橋
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

Landscapes

  • Selective Calling Equipment (AREA)
  • Testing And Monitoring For Control Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

【課題】被制御機器の制御に関するイベントの検出条件を更新する場合に、現在の検出条件から変更がないイベントを継続的に監視することができない場合があること。【解決手段】制御装置は、被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する検出部と、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出し、第1の検出条件により検出されるイベントに関する情報を保持し、第2の検出条件により検出されるイベントに関する情報を初期化する条件更新部とを備える。【選択図】図8PROBLEM TO BE SOLVED: To continuously monitor an event which has not changed from the current detection condition when updating the detection condition of an event related to the control of a controlled device. SOLUTION: A control device repeatedly evaluates a predetermined detection condition for detecting an event related to control of a controlled device, thereby detecting an event and a new detection condition for the current detection condition. When updating to, the first detection condition with no change in the condition and the second detection condition with the change in the condition are extracted from the current detection conditions, and the event detected by the first detection condition. It is provided with a condition update unit that holds information about the event and initializes the information about the event detected by the second detection condition. [Selection diagram] FIG. 8

Description

本発明は、制御装置、制御システム及び制御方法に関する。   The present invention relates to a control device, a control system, and a control method.

各アナログ入力信号を第1の所定周期毎に収集してタイムスタンプを付してサンプリングデータとして格納する制御装置が知られている(例えば特許文献1参照)。
特許文献1 特開2008−204166号公報
There is known a control device that collects each analog input signal at a first predetermined period, adds a time stamp, and stores it as sampling data (see, for example, Patent Document 1).
Japanese Patent Application Laid-Open No. 2008-204166

従来、被制御機器の制御に関するイベントの検出条件を更新する場合に、現在の検出条件から変更がないイベントを継続的に監視することができない場合がある。   Conventionally, when an event detection condition related to control of a controlled device is updated, an event that is not changed from the current detection condition may not be continuously monitored.

第1の態様において、制御装置は、被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する検出部と、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出し、第1の検出条件により検出されるイベントに関する情報を保持し、第2の検出条件により検出されるイベントに関する情報を初期化する条件更新部とを備える。   In the first aspect, the control device repeatedly evaluates a predetermined detection condition for detecting an event related to control of the controlled device, thereby detecting a detection unit for detecting an event and a new detection condition. 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 are detected based on the first detection condition. And a condition update unit that initializes information related to the event detected by the second detection condition.

情報は、検出条件の評価結果を示してよい。   The information may indicate an 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 event state by repeatedly evaluating the detection condition. The control device may further include an event storage unit that stores the occurrence of the transition when the detection unit detects the transition of the event state.

条件更新部は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、条件式に変更がない場合であっても、他の検出条件に変更がある場合には、条件式を含む検出条件を第2の検出条件として抽出してよい。   When the current detection condition is updated 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 the other detection condition among the current detection conditions. Even in this case, when other detection conditions are changed, the detection condition including the conditional expression may be extracted as the second detection condition.

互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する検出条件記憶部をさらに備えてよい。現在の検出条件は、第1の記憶領域及び第2の記憶領域のうちの一方の記憶領域に記憶されてよい。検出部は、一方の記憶領域を参照して、イベントを検出するための検出条件を繰り返し評価してよい。条件更新部は、現在の検出条件に対して新たな検出条件の少なくとも一部を反映した検出条件を、第1の記憶領域及び第2の記憶領域のうち他方の記憶領域に記憶させ、検出部が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替えてよい。   You may further provide the detection condition memory | storage part which has the 1st storage area which can memorize | store a mutually different detection condition, and a 2nd storage area. The current detection condition may be stored in one of the first storage area and the second storage area. The detection unit may repeatedly evaluate the detection condition for detecting the event with reference to one storage area. The condition update unit stores a detection condition that reflects 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 section 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 that stores a value indicating whether each of the plurality of detection conditions is effective. The detection unit may evaluate a detection condition in which a value indicating that the effective setting area is effective is stored. 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 second detection condition. The storage area referenced by the unit may be switched from one storage area to the other storage area.

条件更新部は、新たな検出条件に更新する場合に、現在の検出条件から削除される第3の検出条件を抽出し、検出部が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える前に、他方の記憶領域の有効設定領域において、第3の検出条件が有効でない旨を示す値を記憶させてよい。   When updating to a new detection condition, the condition update unit extracts a third detection condition that is deleted from the current 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, a control system includes the above-described 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 includes a detection stage for detecting an event by repeatedly evaluating a predetermined detection condition for detecting an event related to control of the controlled device, and a new detection condition. When updating to the detection condition, a step of extracting a first detection condition in which the condition is not changed and a second detection condition in which the condition is changed among the current detection conditions, and the first detection condition Holding information related to the detected event, and initializing information related to the event detected by the second detection condition.

なお、上記の発明の概要は、本発明の特徴の全てを列挙したものではない。また、これらの特徴群のサブコンビネーションもまた、発明となりうる。   The summary of the invention does not enumerate all the features of the present invention. In addition, a sub-combination of these feature groups can also be an invention.

一実施形態における制御システム10の概略的な構成を示す。1 shows a schematic configuration of a control system 10 according to an embodiment. CPUモジュール100の機能構成を概略的に示す。1 schematically shows a functional configuration of a CPU module 100. 支援/監視装置20において設定されるイベント設定データの一例を示す。An example of event setting data set in the support / monitoring device 20 is shown. 制御部200において行うイベント検出処理を概略的に示す。The event detection process performed in the control part 200 is shown schematically. イベント検出用の管理データ500のデータ構造を模式的に示す。The data structure of the management data 500 for event detection is shown typically. 監視周期管理情報580のデータ構造を示す。The data structure of the monitoring cycle management information 580 is shown. 制御部200において検出部202がイベントを検出する処理を示すフローチャートである。5 is a flowchart illustrating processing in which a detection unit 202 detects an event in the control unit 200. 検出条件を変更する処理を示すフローチャートである。It is a flowchart which shows the process which changes detection conditions. 支援/監視装置20が表示するイベント一覧情報を示す。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 invention according to the claims. In addition, not all the combinations of features described in the embodiments are essential for the solving means of the invention.

図1は、一実施形態における制御システム10の概略的な構成を示す。制御システム10は、支援/監視装置20と、CPUモジュール100と、IOモジュール120a及びIOモジュール120bと、被制御機器40a、被制御機器40b及び被制御機器40cとを備える。   FIG. 1 shows a schematic configuration of a control system 10 according to an embodiment. The control system 10 includes a support / monitoring device 20, a CPU module 100, an IO module 120a and an IO module 120b, 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. In addition, 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 and outputs data to and from the controlled device 40 according to control by 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 a network. The CPU module 100 communicates with the IO module 120a and the IO module 120b through a network or a bus. The IO module 120a is connected to the controlled device 40a. The IO module 120a is responsible for data input / output with 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 data input / output between 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 120b are limited to the numbers shown in this embodiment. Not.

制御システム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 industrial facilities such as factories and plants. 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 an industrial machine, for example. Each of the CPU module 100 and the IO module 120 may be a programmable logic controller (PLC).

支援/監視装置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 performs monitoring control of 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 performs various control instructions to the CPU module 100 according to the process controlled by the control system 10. Is output. The support / monitoring apparatus 20 has an event setting tool function. For example, the support / monitoring device 20 sets an event detection condition in the control system 10 based on an instruction from the user. The support / monitoring device 20 adds, updates, or deletes an event detection condition based on an instruction 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 a 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 for 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 determined by the detection condition exceeds the detection threshold value determined by the detection condition, and sets the internal event state variable to “occurring”. And stored in the event log data and transmitted to the support / monitoring device 20. Thereby, 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 condition from the support / monitoring device 20, the CPU module 100 compares the new detection condition with the current detection condition, and sets the detection threshold value and the like among the current detection conditions. A detection condition with a change in the condition and a detection condition without a change are extracted. Then, the CPU module 100 initializes the value of the event state variable corresponding to the detection condition with the change, and holds the event state variable corresponding to the detection condition not changed without initializing the value. . Thereby, the event which has not changed from the present detection conditions can be detected continuously.

具体的には、検出条件の変更がないイベントが、検出条件の更新指示前から発生している場合を取り上げて説明する。もし、更新指示に応じて全てのイベント状態変数を初期化すると、検出条件に変更がないイベントのイベント状態変数が、更新直後に「発生中」に変化し得る。そのため、ユーザは、監視装置で収集されたイベントログデータを解析するときに、更新前後のイベント状態変数や検出条件の更新内容等に基づいて、本当にイベントが新たに発生したのか、既に発生していたイベントが検出条件の更新処理に伴って検出されたのかを解析する必要が生じる。これに対し、CPUモジュール100によれば、上述したように、検出条件に変更がないイベントのイベント状態変数の値を初期化せずに保持するので、当該イベントを連続的に監視することが可能になる。   Specifically, a case where an event with no detection condition change has occurred before the detection condition update instruction will be described. If all event state variables are initialized according to the update instruction, the event state variable of an event whose detection condition is not changed can change to “being generated” immediately after the update. Therefore, when analyzing the event log data collected by the monitoring device, the user has already generated whether an event has actually occurred based on the event state variables before and after the update, the update contents of the detection conditions, etc. It is necessary to analyze whether the detected event is detected with the update process of the detection condition. On the other hand, according to the CPU module 100, as described above, since the event state variable value of an event whose detection condition is not changed 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 a 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 nonvolatile memory unit 280, a communication unit 270, and a bus 290. The control unit 200 includes 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 nonvolatile memory unit 280, and the communication unit 270 through 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 nonvolatile memory unit 280, and the communication unit 270 through 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 includes a semiconductor integrated circuit including a central processing unit (CPU), ROM, RAM, and the like. The nonvolatile 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 is written in the nonvolatile memory unit 280 of the CPU module 100. When the CPU module 100 is activated, the control unit 200 loads the system program and the control application program written in the nonvolatile memory unit 280 during the boot process. Note that the nonvolatile memory unit 280 may include an application memory for storing a control application program in addition to the system memory for storing a system program.

制御部200は、CPUモジュール100における主処理を担う。例えば、制御部200は、制御アプリケーションプログラムに従って、IOモジュール120から取得した入力データの処理や、入力データに基づいてIOモジュール120に対する制御データを生成する処理を行う。また、制御部200は、システムプログラムに従って、実行するべき制御アプリケーションプログラムのタスクを決定する処理、被制御機器40から入力データを取得する処理、制御アプリケーションプログラムを実行することにより生成された被制御機器40に対する制御データを被制御機器40へ出力するための処理、及び、支援/監視装置20との間でメッセージを送受信するための処理を行う。   The control unit 200 performs main processing in the CPU module 100. For example, the control unit 200 performs processing of input data acquired from the IO module 120 and processing of generating control data for the IO module 120 based on the input data, according to the control application program. In addition, the control unit 200 determines a control application program task to be executed according to a system program, acquires 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 transmitting / receiving a message to / from the support / monitoring apparatus 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 performs data input / output with 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. Thus, 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 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 that are variables used by the control application program for calculation. The control unit 200 performs processing using the control internal variables stored in the work memory unit 210 in accordance with the control application program. The control internal variable may be a variable that defines an operation parameter of the control application program. The internal variable for control may be a variable representing the state of the control application program. The control unit 200 may operate according to the control application program and update the control internal variable 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 a message from the support / monitoring apparatus 20 and outputs the received message to the control unit 200. In addition, 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 an occurrence state of an event related to 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 include a work memory for storing control internal variables for the control application program, in addition to the work memory for storing 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. Data indicating the detection condition is provided from the support / monitoring device 20 to the CPU module 100 and stored in the nonvolatile memory unit 280. The control unit 200 can update the event detection condition 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 control internal variables, 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 control internal variable satisfies the detection condition. The control unit 200 detects an event when the input data satisfies the detection condition. In addition, the control unit 200 detects an event when the control data satisfies a 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 apparatus 20 through the communication unit 270.

CPUモジュール100におけるイベントの検出条件の更新に関する動作について説明する。検出部202は、被制御機器40の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、イベントを検出する。条件更新部204は、現在の検出条件を新たな検出条件に更新する場合に、現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する。条件更新部204は、第1の検出条件により検出されるイベントに関する情報を保持する。一方、条件更新部204は、第2の検出条件により検出されるイベントに関する情報を初期化する。   An operation related to the update of 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 the current detection condition is updated to a new detection condition, the condition update unit 204 includes a first detection condition in which the condition is not changed and a second detection condition in which the condition is changed among the current detection conditions. And extract. The condition update unit 204 holds information related to the event detected by the first detection condition. On the other hand, the condition update unit 204 initializes information related to the event detected by the second detection condition.

一例として、イベントに関する情報は、検出条件の評価結果を示す。例えば、イベントに関する情報は、検出条件を構成する条件式の論理値を示す。当該論理値がTRUEの場合、検出条件が満たされたことを示し、論理値がFALSEの場合、検出条件が満たされていないことを示す。   As an example, the information regarding the event indicates the evaluation result of the detection condition. For example, the information regarding the event indicates a logical value of a conditional expression that constitutes the 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 regarding the event indicates the state of the event detected by the detection condition. For example, the information regarding the event indicates whether or not the event has occurred. Specifically, the information regarding the event indicates that an event has occurred when the logical value of the conditional expression constituting the detection condition is TRUE, and indicates that 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 transition of the event state by repeatedly evaluating the detection condition. When the detection unit 202 detects that the event state has transitioned, 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 the current detection condition is updated to a new detection condition, the condition update unit 204 changes the detection condition including the conditional expression using the evaluation result of the other detection condition to the conditional expression. Even if there is not, 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 condition is stored in at least one of the data memory unit 220, the work memory unit 210, and the nonvolatile memory unit 280. In the present embodiment, the data memory unit 220 will be described as an example of a detection condition storage unit.

データメモリ部220は、互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する。現在の検出条件は、第1の記憶領域及び第2の記憶領域のうちの一方の記憶領域に記憶され、検出部202は、当該一方の記憶領域を参照して、イベントを検出するための検出条件を繰り返し評価する。ここで、検出条件を更新する場合に、条件更新部204は、現在の検出条件に対して新たな検出条件の少なくとも一部を反映した検出条件を、第1の記憶領域及び第2の記憶領域のうち他方の記憶領域に記憶させ、検出部202が参照する記憶領域を、一方の記憶領域から他方の記憶領域に切り替える。   The data memory unit 220 includes a first storage area and a second storage area that can store different detection conditions. The current detection condition is 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 for detecting an event. Evaluate the condition repeatedly. Here, when updating the detection condition, the condition updating unit 204 sets the detection condition reflecting at least a part of the new detection condition with respect to the current detection condition to the first storage area and the second 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 that stores a value indicating whether or not each of the plurality of detection conditions is valid. A detection condition in which a value indicating that the area is valid is stored is evaluated. The detection unit 202 does not evaluate a 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 updating unit 204 stores a value indicating that the second detection condition is not valid in the valid setting area of the other storage area, A value indicating that the detection condition is valid is stored. 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, the event detection operation based on the detection condition having a change can be stopped in a batch while continuing the event detection operation based on the detection condition having no change.

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

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

「イベント番号」は、イベントを識別する値である。「イベント名」は、イベントに付与される名前を示す。「検出条件」は、1つ又は複数の条件式を含む検出条件を文字列で記したものである。例えば、検出条件は、1つ又は複数の等式、不等式又は論理式を含む。   “Event number” is a value for identifying an event. “Event name” indicates a name given to the event. “Detection condition” is a description of a detection condition including one or more conditional expressions in a character string. For example, the detection condition includes 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 event detection variables. The detection conditions indicated by 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 expressed 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 or 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 Var01 that is an event detection variable is FALSE. Var 01 indicates a variable such as input data and control data stored in the data memory unit 220, or a control internal variable stored in the work memory unit 210. 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 event number 1 and the conditional expression of event number 2 are TRUE.

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

支援/監視装置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 event setting data including an event number, a detection condition, and a period edited by the user to the CPU module 100.

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

図4は、制御部200において行うイベント検出処理を概略的に示す。   FIG. 4 schematically shows an event detection process performed in 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 current values of input data and control data. 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, a current evaluation result indicating the event state is obtained. The detection unit 202 performs a process 450 that compares the current evaluation result obtained in the process 440 with the previous evaluation result obtained in the previous evaluation. If the current evaluation result and the previous evaluation result are different from each other by 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”. It is generated and stored in the data memory unit 220. In addition, when the previous evaluation result is TRUE and the current evaluation result is FALSE, the detection unit 202 includes an event log 460 including an event number, a current time, and an event state indicating “not generated”. Is generated and stored in the data memory unit 220.

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

図5は、イベント検出用の管理データ500のデータ構造を模式的に示す。管理データ500は、データメモリ部220又はワークメモリ部210に記憶される。   FIG. 5 schematically shows the data structure of 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 and a monitoring event management area 511, and an event detection condition management data table 520. As an example, the management data 500 includes 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 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 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 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 an event detection condition management number 530 and monitoring event information 540. In the event detection condition management number 530, a value indicating the number N of event detection conditions is stored. 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 different events. The monitoring event management area 511 has a data structure similar to that of the monitoring event management area 510, and thus the details of the data structure are not described.

監視イベント情報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 includes a monitoring valid flag 570 and an event detection condition management data table number 571. The monitoring valid flag 570 indicates whether the detection of the corresponding event is valid or invalid. The event detection condition management data table number 571 indicates the number of the event detection condition management data table 520 described later. When the value of the monitoring valid flag 570 is 1 indicating “valid”, the detection unit 202 detects the corresponding event. When the value of the monitoring valid flag 570 is 0 indicating “invalid”, the detection unit 202 does not detect the corresponding event. Note that the monitoring event information 540-2 to the monitoring event information 540-N have the same data structure as that of the monitoring event information 540-1, and therefore, detailed description of the data structure is omitted.

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

データ登録フラグ551は、対応する記憶領域にイベントが登録されているか否かを示す。データ登録フラグ551の値が1の場合、対応する記憶領域にイベントが登録されていることを示す。データ登録フラグ551の値が0の場合、対応する記憶領域にイベントが登録されていないことを示す。すなわち、この記憶領域が空きであることを示す。   The data registration flag 551 indicates whether an event is registered in the corresponding storage area. When the value of the data registration flag 551 is 1, it indicates that an event is registered in the corresponding storage area. When the value of the data registration flag 551 is 0, it indicates that no event is registered in the corresponding storage area. That is, this storage area is free.

イベント番号552には、イベント番号が記憶される。イベント番号552には、支援/監視装置20から受信したイベント設定データに含まれるイベント番号が記憶されてよい。   Event number 552 stores an event number. The event number 552 may store an event number included in the event setting data received from the support / monitoring device 20.

イベントタイプ553は、条件式を構成する被演算子に対する演算子を示す。例えば、イベントタイプ553は、「=」、「>」、「<」、「≧」、「≦」等の関係演算子や「AND」及び「OR」等の論理演算子を識別する情報を示す。   The event type 553 indicates an operator for the operand constituting the conditional expression. For example, the event type 553 indicates information for identifying relational operators such as “=”, “>”, “<”, “≧”, “≦”, 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 the event is in an occurrence state. 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 a variable included in the detection condition when an event occurs. For example, the value of Var01 included in the detection condition corresponding to event number 1 in FIG. 3 is stored.

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

なお、単一のイベントの検出条件は、複数のイベント検出条件管理データテーブル520の組み合わせにより設定されてよい。例えば、図3のイベント番号5の検出条件を、2つのイベント検出条件管理データテーブル520により設定してよい。一例として、図3のイベント番号5の検出条件を、イベント番号1とイベント番号2とのOR演算を表す第1のイベント検出条件管理データテーブル520を生成するとともに、当該イベント検出条件管理データテーブル520に割り当てたイベント番号とイベント番号2とのAND演算を表す第2のイベント検出条件管理データテーブル520とを生成してよい。この場合、図3のイベント番号5のイベントは、第2のイベント検出条件管理データテーブル520の検出条件の評価結果によって表される。   A 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 event number 5 in FIG. 3 may be set by two event detection condition management data tables 520. As an example, the first event detection condition management data table 520 representing the OR operation of the event number 1 and the event number 2 is generated as the detection condition of the event number 5 in FIG. A second event detection condition management data table 520 that represents an AND operation between the event number assigned to event number 2 and 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 a monitoring cycle management number 581 and cycle information 582. The monitoring cycle management number 581 stores a value indicating the number M of cycle information. The monitoring cycle management information 580 includes the number of pieces of cycle information 582 indicated by the monitoring cycle management number 581.

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

なお、周期情報582−2〜周期情報582−Mは、周期情報582−1と同様のデータ構造を有するので、そのデータ構造の詳細については説明を省略する。また、検出周期の情報は、図6に示すデータ構造とは異なるデータ構造で管理されてよい。例えば、検出周期の情報は、イベント検出条件管理データテーブル520でイベント毎に管理されてよい。   Note that the period information 582-2 to period information 582-M has the same data structure as the period information 582-1, and thus the description of the details of the data structure is omitted. Further, the information on the detection cycle may be managed with a data structure different from the data structure shown in FIG. For example, information on 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 illustrating processing in which the detection unit 202 detects an event in the control unit 200. In S600, the detection unit 202 acquires current date and time information. Subsequently, in S602, the detection unit 202 selects an event to be detected. Specifically, the detection unit 202 refers to the monitoring cycle management information 580 and specifies an event number for detecting an event with the current tact.

続いて、S604からS620におけるイベント検出のループ処理を行う。このループ処理では、S602で選択したイベントの中から、ループ毎に異なるイベントの検出条件を選択する。   Subsequently, an event detection loop process from S604 to S620 is performed. In this loop process, an event detection condition that differs for each loop is selected from the events selected in S602.

S606において、検出部202は、選択したイベントのイベント検出が有効に設定されているか否かを判断する。検出部202は、監視イベント情報540の監視有効フラグ570の値を参照して、S606の判断を行う。検出条件が無効の場合、「イベント検出」のループ処理における次のイベントの処理に進む。検出条件が有効の場合、S610に進む。   In step S606, the detection unit 202 determines whether event detection of the selected event is set to be valid. The detection unit 202 refers to the value of the monitoring valid flag 570 in the monitoring event information 540 and performs the determination in S606. When the detection condition is invalid, the process proceeds to the next event process in the loop process 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 refers to the event detection condition management data table 520 and calculates the evaluation result of the detection condition.

続いて、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 is different from the evaluation result obtained in S610. In addition, the detection unit 202 determines that the event state has not changed when the value read from the event state 554 in S612 matches the evaluation result obtained in S610. If the event state has not changed, the process proceeds to the next event process in the loop process of “event detection”. If the event state has changed, 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 an event number, an event state, and current date and time information. The event status indicates “occurrence” or “not occurred”. If the evaluation result obtained in S610 is TRUE, it indicates that an event has occurred. If the evaluation result obtained in 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 for changing the detection condition. The process of this flowchart is started when the CPU module 100 receives from the support / monitoring device 20 a message for instructing new event setting data and detection condition update. Here, in the management data 500, it is assumed that 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 an event detection process according to the information stored in the monitoring event management area 510 until now. In addition, 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 step S <b> 802, the condition update unit 204 compares the current event setting data with the newly received event setting data, and identifies a deletion target, an addition target, a change target, and a non-change target event. Specifically, the condition update unit 204 generates a deletion event number list by extracting event numbers not included in the new event setting data from among event numbers included in the current event setting data. Further, the condition update unit 204 generates an additional event number list by extracting event numbers not included in the current event setting data from among 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 by 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 change target event number list. On the other hand, if the conditional expressions match, the condition update unit 204 adds the event number to the non-change target event number list.

また、変更対象外イベント番号リストに含まれるイベント番号のうち、対応する検出条件を構成する条件式が他のイベント番号を含む場合、条件更新部204は、当該他のイベント番号が変更対象イベント番号リストに含まれるか否かを判断する。他のイベント番号が変更対象イベント番号リストに含まれる場合、条件更新部204は、変更対象外イベント番号リストから削除するとともに、変更対象イベント番号リストに追加する。例えば、図3のイベント番号4に対応する検出条件の条件式「イベント番号1 AND イベント番号2」自体に変更がない場合において、イベント番号1の条件式に変更があった場合、条件更新部204は、変更対象外イベント番号リストからイベント番号4を削除して、変更対象イベント番号リストにイベント番号4を追加する。   If the conditional expression constituting the corresponding detection condition includes another event number among the event numbers included in the event number list not to be changed, the condition update unit 204 indicates that the other event number is the change target event number. Determine whether 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 the event number from the non-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 event number 4 in FIG. Deletes the event number 4 from the non-change target event number list and adds the event number 4 to the change target event number list.

S802の処理が終了すると、S803において、S802の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S804に進む。   When the process of S802 ends, in S803, it is determined whether or not the process of S802 is successful. If unsuccessful, the process proceeds to S814. If successful, the process proceeds to S804.

S804において、条件更新部204は、変更対象イベント及び削除対象イベントの監視を停止する処理を行う。具体的には、条件更新部204は、監視イベント管理領域511における各監視イベント情報540について、イベント検出条件管理データテーブル番号571が示すイベント検出条件管理データテーブル520に記憶されているイベント番号が、変更対象イベント番号リスト又は削除対象イベント番号リストに含まれる場合に、当該監視イベント情報540の監視有効フラグ570の値を0に変更する。   In step S804, the condition update unit 204 performs processing for stopping 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 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 zero.

そして、条件更新部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 an event based on the information stored in the monitoring event management area 511, so that an event corresponding to the event number included in the change target event number list and the deletion target event number list is detected. Is no longer detected. On the other hand, detection of an event corresponding to an event number included in the event number list not to be changed is continuously performed.

S804の処理が終了すると、S805において、S804の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S806に進む。   When the process of S804 is completed, it is determined in S805 whether the process of S804 is successful. If unsuccessful, the process proceeds to S814. If successful, the process proceeds to S806.

S806において、条件更新部204は、削除対象イベントの監視周期情報を抹消し、追加対象イベントの監視周期情報を登録する。具体的には、条件更新部204は、監視周期管理情報580において、削除対象イベント番号リストに含まれるイベント番号に一致する値を記憶したイベント番号592を削除する。また、条件更新部204は、監視周期管理情報580において、追加対象イベント番号リストに含まれる各イベント番号について、新たなイベント設定データで指定された周期に対応する周期情報に、各イベント番号を追加する。   In step S806, the condition update unit 204 deletes the monitoring cycle information of the deletion target event and registers the monitoring cycle information of the addition target event. Specifically, the condition update unit 204 deletes the event number 592 that stores a value that matches the event number included in the deletion target event number list in the monitoring cycle management information 580. In addition, in the monitoring cycle management information 580, the condition updating unit 204 adds each event number to the cycle information corresponding to the cycle specified by the new event setting data for each event number included in the addition target event number list. To do.

S806の処理が終了すると、S807において、S806の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S808に進む。   When the process of S806 ends, it is determined in S807 whether or not the process of S806 is successful. If unsuccessful, the process proceeds to S814. If successful, the process proceeds to S808.

S808において、条件更新部204は、削除対象イベント、追加対象イベント及び変更対象イベントについて、イベント検出条件管理データテーブル520に対するイベント設定情報の追加及び更新処理を行う。具体的には、条件更新部204は、削除対象イベント番号リストに含まれるイベント番号を記憶しているイベント検出条件管理データテーブル520のデータ登録フラグ551を0に変更する。   In step S <b> 808, the condition update unit 204 performs event setting information addition and update processing for 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 storing the event numbers included in the deletion target event number list to 0.

また、条件更新部204は、変更対象イベント番号リストに含まれるイベント番号を記憶しているイベント検出条件管理データテーブル520を初期化する。具体的には、条件更新部204は、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された新たな検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を変更する。   In addition, 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 in accordance with a conditional expression constituting a new detection condition designated by the new event setting data.

また、条件更新部204は、追加対象イベント番号リストに含まれるイベント番号に対応するイベント設定データに基づいて、イベント検出条件管理データテーブル520にイベント設定情報を追加する。具体的には、条件更新部204は、データ登録フラグ551の値が0のイベント検出条件管理データテーブル520を検索して、検索されたイベント検出条件管理データテーブル520において、データ登録フラグ551の値を1にし、追加対象イベント番号リストのイベント番号をイベント番号552に記憶し、イベント状態554の値を0にし、イベント発生/復旧時の変数値555の値をNULLにする。また、新たなイベント設定データで指定された対応する検出条件を構成する条件式に従って、論理個数556、論理データ560及びイベントタイプ553を設定する。   In addition, the condition update unit 204 adds event setting information to the event detection condition management data table 520 based on event setting data corresponding to an event number included in the addition target event number list. 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 the value of the data registration flag 551 in the searched event detection condition management data table 520. 1 is stored, 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 variable value 555 at the time of event occurrence / recovery is set to NULL. In addition, the logical number 556, the logical data 560, and the event type 553 are set in accordance with the conditional expression constituting 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 step S <b> 810, the condition update unit 204 adds and updates the monitoring event information 540 in the monitoring event management area 510 for 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 change target event in the monitoring event information 540 in the monitoring event management area 510. And the addition target event is added. More specifically, from 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に追加する。   In addition, 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 information with the value of the monitoring valid flag 570 being 1 to the monitoring event information 540. .

S810の処理が終了すると、S811において、S810の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、S812に進む。   When the process of S810 ends, it is determined in S811 whether the process of S810 has succeeded. If unsuccessful, the process proceeds to S814. If successful, the process proceeds to S812.

S812において、条件更新部204は、更新及び追加した監視イベント情報に基づく監視を開始するように、管理データ500を設定する。具体的には、条件更新部204は、監視イベント管理領域番号501の値を、監視イベント管理領域510を示す値に変更する。この処理の完了以後、検出部202は、監視イベント管理領域510に記憶された情報に基づいてイベントを検出するので、変更対象イベント番号リスト及び削除対象イベント番号リストの一方に含まれるイベント番号に対応するイベントの検出が開始される。一方、変更対象外イベント番号リストに含まれるイベント番号に対応するイベントの検出は依然として継続される。   In step 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 processing, the detection unit 202 detects an event based on information stored in the monitoring event management area 510, and therefore corresponds to an event number included in one of the change target event number list and the deletion target event number list. Detection of the event to be started. On the other hand, the detection of the event corresponding to the event number included in the event number list not to be changed is still continued.

S812の処理が終了すると、S813において、S812の処理が成功したか否かを判断する。不成功の場合はS814に進み、成功した場合、フローチャートの処理を終了する。S814においては、不成功の原因となった処理に対するエラー処理を行った後、フローチャートの処理を終了する。   When the process of S812 is completed, it is determined in S813 whether the process of S812 is successful. If unsuccessful, the process proceeds to S814. If successful, the process of the flowchart is terminated. In step S814, error processing is performed on the processing that caused the unsuccess, and then the processing of the flowchart ends.

図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 event log data from the CPU module 100 as a message. The support / monitoring apparatus 20 displays a list of the set event log data in a table format. The support / monitoring device 20 displays “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 a change type of the event occurrence state. When an event has changed from a state where an event has not occurred to a state where a new event has occurred, “occurrence” is displayed, and when an event has occurred, it has changed to a state where no event has occurred. Is displayed. The support / monitoring device 20 displays “occurrence” when the event state included in the event log data is “occurrence”, and displays “recovery” when the event state included in the event log data is “not occurred”. To do.

「時刻」は、イベントの発生状態の変化が検出された時刻を示す。支援/監視装置20は、イベントログデータに含まれる時刻を表示する。   “Time” indicates a time when a change in the occurrence state of the event 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を保持する。   With reference 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 “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 in the event detection condition management data table 520 corresponding to “event D” in the management data 500, while “event B” and “event C”. In the event state 554 corresponding to “event E”, a value 1 indicating “occurring” is held. Further, the event state 554 corresponding to “event A” holds a value 0 indicating “not generated”.

これにより、イベント設定ツールによる検出条件の更新直後において、「イベントB」、「イベントC」及び「イベントE」のイベント状態は「発生中」から変化していないと判断され得る。よって、イベント検出条件の変更直後に、「イベントB」、「イベントC」及び「イベントE」のイベントの「発生」が通知されることがない。このように、制御システム10によれば、例えば検出条件の一部を更新した場合においても、検出条件に変更がないイベントについて、一貫性のあるイベント検出を行うことが可能になる。そのため、上述したように、検出条件の更新に伴ってユーザがイベントログを解析する手間を削減することができる。   Accordingly, immediately after the detection condition is updated by the event setting tool, it can be determined that the event states of “event B”, “event C”, and “event E” have not changed from “occurring”. Therefore, immediately after the event detection condition is changed, the “occurrence” of the event “event B”, “event C”, and “event E” is not notified. Thus, according to the control system 10, for example, even when a part of the detection condition is updated, it is possible to perform consistent event detection for an event in which the detection condition is 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 event state value of an event whose detection condition is not changed is retained without being initialized, the event can be continuously monitored.

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

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更又は改良を加えることが可能であることが当業者に明らかである。その様な変更又は改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above embodiment. It is apparent from the description of the scope of claims that embodiments with such changes or improvements can be included in the technical scope of the present invention.

特許請求の範囲、明細書、及び図面中において示した装置、システム、プログラム、及び方法における動作、手順、ステップ、及び段階等の各処理の実行順序は、特段「より前に」、「先立って」等と明示しておらず、また、前の処理の出力を後の処理で用いるのでない限り、任意の順序で実現しうることに留意すべきである。特許請求の範囲、明細書、及び図面中の動作フローに関して、便宜上「まず、」、「次に、」等を用いて説明したとしても、この順で実施することが必須であることを意味するものではない。   The execution order of each process such as operation, procedure, step, and stage in the apparatus, system, program, and method shown in the claims, the description, and the drawings is particularly “before” or “prior to”. It should be noted that the output can be realized in any order unless the output of the previous process is used in the subsequent process. Regarding the operation flow in the claims, the specification, and the drawings, even if it is described using “first”, “next”, etc. for the sake of convenience, it means that it is essential to carry out in this order. It is 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 nonvolatile memory unit 240 input / output unit 270 communication unit 290 bus 440, 450 Process 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 556 at the time of event occurrence / recovery Logical number 560 Logical data 570 Monitoring valid flag 571 Event detection condition management data Table number 580 monitoring period management information 581 monitoring cycle management number 582 cycle information 590 cycles 591 Event Management Number 592 event number

Claims (10)

被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、前記イベントを検出する検出部と、
現在の前記検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出し、前記第1の検出条件により検出される前記イベントに関する情報を保持し、前記第2の検出条件により検出される前記イベントに関する情報を初期化する条件更新部と
を備える制御装置。
A detection unit that detects the event by repeatedly evaluating a predetermined detection condition for detecting an event related to the control of the controlled device;
When updating the current detection condition to a new detection condition, a first detection condition in which the condition is not changed and a second detection condition in which the condition is changed are extracted from the current detection conditions. And a condition updating unit that holds information related to the event detected by the first detection condition and initializes information related to 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 condition.
前記情報は、前記検出条件により検出される前記イベントの状態を示す
請求項1又は2に記載の制御装置。
The control device according to claim 1, wherein the information indicates a state of the event detected by the detection condition.
前記検出部は、前記検出条件を繰り返し評価することにより、前記イベントの状態の遷移を検出し、
前記制御装置は、
前記検出部が前記イベントの状態が遷移したことを検出した場合に、当該遷移が生じたことを記憶するイベント記憶部
をさらに備える請求項3に記載の制御装置。
The detection unit detects transition of the event state by repeatedly evaluating the detection condition,
The control device includes:
The control device according to claim 3, further comprising an event storage unit that stores that the transition has occurred when the detection unit detects that the state of the event has transitioned.
前記条件更新部は、前記現在の検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち他の検出条件の評価結果を用いた条件式を含む検出条件について、前記条件式に変更がない場合であっても、前記他の検出条件に変更がある場合には、前記条件式を含む検出条件を前記第2の検出条件として抽出する
請求項1から4のいずれか一項に記載の制御装置。
The condition update unit, when updating the current detection condition to a new detection condition, for the detection condition including a conditional expression using an evaluation result of another detection condition among the current detection conditions, the conditional expression The detection condition including the conditional expression is extracted as the second detection condition when there is a change in the other detection conditions even if there is no change in the detection conditions. The control device described in 1.
互いに異なる検出条件を記憶することができる第1の記憶領域及び第2の記憶領域を有する検出条件記憶部
をさらに備え、
前記現在の検出条件は、前記第1の記憶領域及び前記第2の記憶領域のうちの一方の記憶領域に記憶され、
前記検出部は、前記一方の記憶領域を参照して、前記イベントを検出するための検出条件を繰り返し評価し、
前記条件更新部は、前記現在の検出条件に対して前記新たな検出条件の少なくとも一部を反映した検出条件を、前記第1の記憶領域及び前記第2の記憶領域のうち他方の記憶領域に記憶させ、前記検出部が参照する記憶領域を、前記一方の記憶領域から前記他方の記憶領域に切り替える
請求項1から5のいずれか一項に記載の制御装置。
A detection condition storage unit having a first storage area and a second storage area that can store different detection conditions;
The current detection condition is stored in one storage area of the first storage area and the second storage area,
The detection unit repeatedly evaluates a detection condition for detecting the event with reference to the one storage area,
The condition update unit may detect a detection condition that reflects 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. The control device according to any one of claims 1 to 5, wherein the control unit is configured to store and switch a storage area referred to by the detection unit 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 each of a plurality of detection conditions is valid,
The detection unit evaluates a detection condition in which a value indicating that the effective setting area is effective is stored,
The condition update unit
In the effective setting area of the other storage area, a value indicating that the second detection condition is not effective is stored, and a value indicating that the first detection condition is effective 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, extract a third detection condition to be deleted from the current detection condition,
Before the storage area referred to by the detection unit is switched from the one storage area to the other storage area, it indicates that the third detection condition is not valid in the valid setting area of the other storage area The control device according to claim 7, wherein a value is stored.
請求項1から7のいずれか一項に記載の制御装置と、
監視装置と
を備え、
前記制御装置は、前記イベントの検出結果を前記監視装置に送信する
制御システム。
A control device according to any one of claims 1 to 7,
A monitoring device,
The control device transmits a detection result of the event to the monitoring device.
被制御機器の制御に関するイベントを検出するための予め定められた検出条件を繰り返し評価することにより、前記イベントを検出する検出段階と、
現在の前記検出条件を新たな検出条件に更新する場合に、前記現在の検出条件のうち、条件に変更が無い第1の検出条件と、条件に変更がある第2の検出条件とを抽出する段階と、
前記第1の検出条件により検出される前記イベントに関する情報を保持し、前記第2の検出条件により検出される前記イベントに関する情報を初期化する段階と
を備える制御方法。
A detection step of detecting the event by repeatedly evaluating a predetermined detection condition for detecting an event related to the control of the controlled device;
When updating the current detection condition to a new detection condition, a first detection condition in which the condition is not changed and a second detection condition in which the condition is changed are extracted from the current detection conditions. Stages,
Holding the information related to the event detected by the first detection condition and initializing the information related to 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 true JP2019021061A (en) 2019-02-07
JP6946804B2 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023159993A (en) * 2022-04-21 2023-11-02 キヤノン株式会社 Monitoring device, monitoring method, computer program, and storage media

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140316743A1 (en) * 2009-06-22 2014-10-23 Johnson Controls Technology Company Systems and methods for using rule-based fault detection in a building management system
JP2018032142A (en) * 2016-08-23 2018-03-01 ファナック株式会社 Manufacturing management system for changing abnormality detection condition by manufacturing time information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140316743A1 (en) * 2009-06-22 2014-10-23 Johnson Controls Technology Company Systems and methods for using rule-based fault detection in a building management system
JP2018032142A (en) * 2016-08-23 2018-03-01 ファナック株式会社 Manufacturing management system for changing abnormality detection condition by manufacturing time information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023159993A (en) * 2022-04-21 2023-11-02 キヤノン株式会社 Monitoring device, monitoring method, computer program, and storage media
JP7725417B2 (en) 2022-04-21 2025-08-19 キヤノン株式会社 Monitoring device, monitoring method, computer program, and storage medium

Also Published As

Publication number Publication date
JP6946804B2 (en) 2021-10-06

Similar Documents

Publication Publication Date Title
JP6493506B1 (en) INDUSTRIAL CONTROL SYSTEM, ITS SUPPORT DEVICE, CONTROL SUPPORT METHOD AND PROGRAM
EP3104235B1 (en) Control device
CN101395576B (en) A method for comparing, an automation system and a controller
JP6357770B2 (en) Control device and communication control method
CN105652854A (en) Automation management system and method
CN104239165A (en) Mobile terminal as well as method and device for treating tasks of two systems of mobile terminal
CN112987658B (en) Production system, repair system, production method and information storage medium
CN112384866A (en) Fault diagnosis device, system, method, and computer-readable storage medium
JP5460928B1 (en) Programmable controller, programmable controller system, and execution error information creation method
JP6577542B2 (en) Control device
JP6946804B2 (en) Control device, control system and control method
JP7151312B2 (en) control system
JP6870234B2 (en) Control device, control system and control method
KR100938179B1 (en) Control program creation and display device of plant control system
KR102819795B1 (en) Control device, control method, and program
JP2005527887A (en) Generation method of automation program
CN118814423A (en) Method, device, equipment and medium for early warning of heating pipe failure of laundry equipment
JP2923997B2 (en) Finding the cause of an error in a ladder sequence program
CN111324088B (en) Information processing apparatus
JP6680313B2 (en) Control device and communication control method
JP2023027509A (en) Support device, support program and control system
JP6705464B2 (en) Control device and communication control method
JP7644237B2 (en) Analytical Equipment
JP2020177353A (en) Update system
JP6901430B2 (en) Control device and editing device

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250