JP2001228916A - Method and device for performing and monitoring event- driven control program - Google Patents

Method and device for performing and monitoring event- driven control program

Info

Publication number
JP2001228916A
JP2001228916A JP2000036422A JP2000036422A JP2001228916A JP 2001228916 A JP2001228916 A JP 2001228916A JP 2000036422 A JP2000036422 A JP 2000036422A JP 2000036422 A JP2000036422 A JP 2000036422A JP 2001228916 A JP2001228916 A JP 2001228916A
Authority
JP
Japan
Prior art keywords
event
data
program
control program
block diagram
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2000036422A
Other languages
Japanese (ja)
Inventor
Shinichiro Ie
伸一郎 家
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2000036422A priority Critical patent/JP2001228916A/en
Publication of JP2001228916A publication Critical patent/JP2001228916A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for executing a plant control program, whose execution is controlled by an event, and monitoring its execution situation. SOLUTION: A logic diagram described by a function block corresponding to the control program of a monitoring object is displayed on a display device 11. As the occurring situation of the event related with a block element included in the logic diagram, the number of occurring times within a prescribed time of the event related with the block element is displayed at the prescribed position of the logic diagram displayed on the device 11.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、プラント制御用コ
ントローラにおけるイベント駆動型制御プログラムの実
行方法、ならびに、このコントローラにおけるイベント
駆動型制御プログラムの実行状況のモニター方法に関わ
る。
The present invention relates to a method of executing an event-driven control program in a controller for plant control and a method of monitoring the execution status of the event-driven control program in the controller.

【0002】[0002]

【従来の技術】FA(ファクトリーオートメーション)
やPA(プロセスオートメーション)などの自動化シス
テムでは、コントローラやPLC(プログラマブルコン
トローラ)などの制御用のコンピュータ(以下、これら
のコンピュータをまとめてコントローラと称する)によ
りプラントが制御される。これらのコントローラは制御
プログラムにより動作し、これによりプラントから観測
された信号に応じてアクチュエータに対する操作信号な
どを出力する機能を実現している。この制御プログラム
は、目的とする機能を表現する上位の仕様を基に作成さ
れる。この仕様、すなわち、制御ロジックの記述方法と
してブロック図を用いる方法が一般に知られている。こ
の方法は、コントローラにおける定型的な処理をグルー
プ化し、これをファンクションブロック(素子)と対応
づけ、これらの素子とその接続関係により図的に制御ロ
ジックを記述するものである。この時の素子と素子の接
続関係とは、各素子におけるデータの入出力関係に対応
する。ブロック図として記述した制御ロジックを基に、
ブロック間の実行順序関係やデータの入出力関係を考慮
した上で各ブロックをコントローラにおける処理(命
令)に展開することにより制御プログラムを作成でき
る。
2. Description of the Related Art FA (Factory Automation)
In an automation system such as a computer or a PA (process automation), a plant is controlled by a control computer such as a controller or a PLC (programmable controller) (hereinafter, these computers are collectively referred to as a controller). These controllers operate according to a control program, thereby realizing a function of outputting an operation signal or the like to an actuator according to a signal observed from a plant. This control program is created based on a higher-level specification expressing a target function. A method using a block diagram as this specification, that is, a control logic description method is generally known. In this method, routine processing in a controller is grouped, associated with a function block (element), and control logic is graphically described by these elements and their connection relations. The connection relation between the elements at this time corresponds to the data input / output relation in each element. Based on the control logic described as a block diagram,
A control program can be created by expanding each block into processing (instructions) in the controller in consideration of the execution order relation between blocks and the input / output relation of data.

【0003】ブロック図に基づく制御ロジックの記述方
法は、制御プログラムの実行形態により非イベント駆動
型FB(ファンクションブロック)とイベント駆動型F
B(ファンクションブロック)に分けることができる。
非イベント駆動型FBは、コントローラにおいて、それ
を基にして作成した制御プログラムを一定周期毎に実行
する場合に用いられる制御ロジックの記述方法である。
一方のイベント駆動型FBは、各ブロックに対応する制
御プログラムの実行を、プラントなどで発生する事象、
あるいはコントローラ内部におけるデータ値の変化など
のイベントと関連付け、このイベントにより制御プログ
ラムの実行を管理する場合に適した制御ロジックの記述
方法である。非イベント駆動型FB、および、イベント
駆動型FBに関する詳細は、それぞれ、IEC6113
1−3:ProgammableController
s――Part3:Programming Lang
uages,IEC(1993)、J.H.Chirs
tensen: The Feature of IPMC
S programming and configur
ation,ファンクションフ゛ブロック講演予稿集、日
本電気計測器工業会,pp29−60(1996)にて
説明されている。以下では、これらにつき本発明に関連
する部分を簡単に説明する。
A control logic description method based on a block diagram includes a non-event driven type FB (function block) and an event driven type FB depending on an execution form of a control program.
B (function block).
The non-event-driven FB is a method of describing control logic used when a controller executes a control program created based on the FB at regular intervals.
On the other hand, the event-driven FB executes execution of a control program corresponding to each block by an event occurring in a plant or the like,
Alternatively, it is a method of describing control logic suitable for a case where the event is associated with an event such as a change in a data value inside the controller and the execution of the control program is managed by the event. Details of the non-event driven FB and the event driven FB are described in IEC 6113, respectively.
1-3: ProgrammableController
s-Part3: Programming Lang
uages, IEC (1993); H. Chirs
tensen: The Feature of IPMC
S programming and configur
ation, Function Block Block Preliminary Proceedings, The Japan Electrical Measurement Instruments Industry Association, pp. 29-60 (1996). In the following, portions related to the present invention will be briefly described.

【0004】前に述べたように、FBはコントローラに
おいて実行する一つ以上の処理を予め一つのブロックに
関連付けてまとめ、このブロックを組合せて制御ロジッ
クを記述するものである。以下の説明では、このコント
ローラの処理に対応するブロックをFB素子と呼ぶこと
とする。また、このFB素子間を線、すなわち、パス系
路で接続することにより、処理の実行順序や、信号、あ
るいはコントローラ内部のデータの入出力関係を表現し
た制御ロジック図をFBロジック図と呼ぶこととする。
FBロジック図は、制御ロジックに含まれる全てのFB
素子を、そのFB素子毎に予め定めてあるコントローラ
の処理に展開すると共に、FB素子間のデータの授受を
行うための変数を設定することにより、制御プログラム
を生成することができる。これらは、非イベント駆動型
FB、および、イベント駆動型FBに共通する特徴であ
る。以下の説明では、個々のFB素子に対応する制御プ
ログラムのことをFBプログラムと呼ぶ。
[0004] As described above, the FB associates one or more processes to be executed by the controller with one block in advance, and describes the control logic by combining the blocks. In the following description, a block corresponding to the processing of the controller will be referred to as an FB element. A control logic diagram expressing the execution order of processing and the input / output relationship of signals or data inside the controller by connecting the FB elements with a line, that is, a path system, is called an FB logic diagram. And
The FB logic diagram shows all FBs included in the control logic.
The control program can be generated by developing the elements in the processing of the controller which is predetermined for each FB element and setting variables for exchanging data between the FB elements. These are features common to the non-event driven FB and the event driven FB. In the following description, a control program corresponding to each FB element is called an FB program.

【0005】一方、イベント駆動型FBは、イベントに
よるプログラムの管理を行うために、イベント入力とイ
ベント出力の信号をFB素子毎に定義する。前にも述べ
たようにイベント駆動型FBをもとにした制御プログラ
ムの実行時には、このイベントの発生によりFB素子毎
のFBプログラムを起動する。また、イベント駆動型F
Bは、各FB素子毎に複数の内部状態とそれに対応する
処理を定義し、入力されたイベントに応じてその内部状
態を遷移させることが可能である。つまり、各FB素子
毎に、内部状態と外部からのイベントによって処理を切
り替えることができる。さらに、イベント駆動型FBは
FBプログラムの実行結果として前記の予め定義したイ
ベントを出力する。
On the other hand, the event-driven FB defines event input and event output signals for each FB element in order to manage a program by an event. As described above, when the control program based on the event-driven FB is executed, the occurrence of this event starts the FB program for each FB element. In addition, event-driven F
B can define a plurality of internal states and corresponding processes for each FB element, and can transition the internal states according to an input event. That is, the process can be switched for each FB element depending on the internal state and an event from the outside. Further, the event-driven FB outputs the above-described predefined event as an execution result of the FB program.

【0006】以下では、外部から入力される運転台数の
増・減指令に応じて2台のポンプの運転・停止を制御す
る場合の制御ロジックについて、イベント駆動型FBを
用いた場合の記述方法と動作を具体的な例を用いて説明
する。図4は、FBロジック図、つまり、イベント駆動
型FBで記述した制御ロジック図の一例である。この例
では、FBロジック図は、「台数設定器」FB(100
a)、「ポンプ1運転制御器」FB(100b)と、
「ポンプ2運転制御器」FB(図示していないが、「ポ
ンプ2要求」102a、「ポンプ2運転」104c、
「ポンプ2停止」104dの出力先に、「ポンプ運転制
御器」100aと同様な構成の「ポンプ運転制御器」が
ある。)の3つのFB素子からなっている。ここで、
「台数設定器」、「ポンプ1運転制御器」、「ポンプ2
運転制御器」はそれぞれ各FB素子につけられた名称で
ある。「台数設定器」FB(100a)は、別のFB素
子から入力される、台数増・減指令により運転するポン
プの台数を決定する制御ロジックを記述したFB素子で
ある。「ポンプ1運転制御器」FB(100b)は、
「台数設定器」FB(100a)からの、起動停止要求
によりポンプ1の起動・停止を処理する制御ロジックを
記述したFB素子である。「ポンプ2運転制御器」FB
は操作の対象がポンプ2である点を除き、「ポンプ1運
転制御器」FBと同一であることから、図4では省略し
てある。
The following describes a control logic for controlling the operation and stop of two pumps in response to an increase / decrease command of the number of operation units input from the outside, in the case where an event-driven FB is used and a description method. The operation will be described using a specific example. FIG. 4 is an example of an FB logic diagram, that is, an example of a control logic diagram described in the event-driven FB. In this example, the FB logic diagram is a “number setting device” FB (100
a), "Pump 1 operation controller" FB (100b),
“Pump 2 operation controller” FB (not shown, “Pump 2 request” 102a, “Pump 2 operation” 104c,
An output destination of the “pump 2 stop” 104d is a “pump operation controller” having the same configuration as the “pump operation controller” 100a. ) Of the three FB elements. here,
"Number setting unit", "Pump 1 operation controller", "Pump 2
The “operation controller” is a name given to each FB element. The "number setting device" FB (100a) is an FB element which describes a control logic which is input from another FB element and determines the number of pumps to be operated according to the number increase / decrease command. "Pump 1 operation controller" FB (100b)
An FB element that describes control logic for processing start / stop of the pump 1 in response to a start / stop request from the “number setting unit” FB (100a). "Pump 2 operation controller" FB
Is omitted from FIG. 4 because it is the same as the “pump 1 operation controller” FB except that the operation target is the pump 2.

【0007】図4において、各FB素子の上部左側には
入力、つまり、FBプログラムの起動条件となるイベン
ト信号、上部右側にはFBプログラムの実行結果として
出力するイベント信号、下部左側にはFBプログラム実
行時に読込む入力データ信号、下部右側には実行結果と
して出力する出力データ信号が記載されている。「台数
設定器」FB(100a)の場合、入力イベントは、
「台数増指令」101a、「台数減指令」101b、
「アラーム」101cの3つである。また、出力イベン
トは、「ポンプ1要求」102a、「ポンプ1要求」1
02bの2つである。また、このFB素子は、図に示す
ようにそれぞれ1つと5つの入出力データをもつ。この
「台数設定器」FB(100a)の具体的な処理の内容
を図5を用いて説明する。この図において、105a〜
dはFBの内部状態、106a〜dは、各内部状態遷移
時の処理、各内部状態間の矢印を伴ったカッコ内の文字
は状態間の遷移条件となるイベントを示している。ただ
し、内部状態「停止処理」105dと「0台運転」10
5aの間の「(1)」は、無条件に遷移が発生すること
を意味している。
In FIG. 4, the upper left side of each FB element is an input, that is, an event signal which is a starting condition of the FB program, the upper right side is an event signal output as an execution result of the FB program, and the lower left side is an FB program. An input data signal to be read at the time of execution and an output data signal to be output as an execution result are described on the lower right side. In the case of the “number setting device” FB (100a), the input event is
"Number increase command" 101a, "Number decrease command" 101b,
"Alarm" 101c. The output events are “pump 1 request” 102a, “pump 1 request” 1
02b. The FB element has one and five input / output data as shown in the figure. The specific processing content of the "number setting device" FB (100a) will be described with reference to FIG. In this figure, 105a-
d indicates the internal state of the FB, 106a to 106d indicate processing at the time of transition of each internal state, and characters in parentheses with arrows between the internal states indicate events that are transition conditions between the states. However, the internal state “stop processing” 105 d and “0 operation” 10
"(1)" between 5a means that a transition occurs unconditionally.

【0008】例えば「1台運転」の状態105aにおい
て「台数増指令」イベントが発生、つまり、「台数増指
令」イベント信号101aが「OFF」状態から「O
N」状態に変化した場合、内部状態は「2台運転」10
5bに遷移し、同時に出力データ「ポンプ2運転」10
4cの値として「1」、出力データ「ポンプ1運転」1
04aの値として「1」の値を出力し、「ポンプ1要
求」イベント102aと、「ポンプ2要求」イベント1
02bを発生させる。ここで、「ポンプ2要求」イベン
ト102bは、「ポンプ2運転制御器」FBに接続され
る。
For example, in the "single unit operation" state 105a, a "number increase command" event occurs, that is, when the "number increase command" event signal 101a changes from the "OFF" state to the "O" state.
If the state changes to “N”, the internal state is
5b, and at the same time, the output data “Pump 2 operation” 10
4c is "1", output data is "Pump 1 operation" 1
The value of “1” is output as the value of the “pump 1 request” event 102 a and the “pump 2 request” event 1
02b is generated. Here, the “pump 2 request” event 102b is connected to the “pump 2 operation controller” FB.

【0009】この様にイベント駆動型は、各FB素子毎
に関連付けられたイベントに応じ内部状態が変更され、
その内部状態に対応する処理を実行することができる。
また、FB素子は信号が接続する別のFB素子に対して
イベントを発生し、プラントの状況に応じ、適切な処理
を実行することができる。図4の場合は、「台数設定
器」FB(100a)で発生した「ポンプ1要求」イベ
ント102aは、「ポンプ1運転制御器」FB(100
b)に入力され、このFB内で「ポンプ1運転」104
a、「ポンプ1停止」104bに応じ処理が実行され
る。
As described above, in the event driven type, the internal state is changed according to the event associated with each FB element,
Processing corresponding to the internal state can be executed.
In addition, the FB element generates an event for another FB element to which the signal is connected, and can execute an appropriate process according to the situation of the plant. In the case of FIG. 4, the “pump 1 request” event 102a generated in the “number setting device” FB (100a) corresponds to the “pump 1 operation controller” FB (100a).
b), and the “pump 1 operation” 104 in this FB
a, the process is executed in response to the “pump 1 stop” 104b.

【0010】なお、図4において、点線となっている線
は、別のFBと接続されていることを示している。FB
素子の内部状態の種類や数は、制御ロジックを作成する
利用者により自由に設定することが可能である。この事
から、利用者は自由に意図する機能を実現するFB素子
を作成し、これを組み合せて制御ロジックを構成でき
る。また、この様なFB素子を用いて記述したFBロジ
ック図に基づき制御プログラムを作成することにより、
制御プログラムの部品化が容易に実現され、短時間で品
質の高い制御プログラムを作成することが可能となる。
In FIG. 4, a dotted line indicates that the FB is connected to another FB. FB
The type and number of the internal states of the elements can be freely set by the user who creates the control logic. From this fact, the user can freely create an FB element that realizes the intended function and combine it to form a control logic. Also, by creating a control program based on the FB logic diagram described using such FB elements,
The control program can be easily implemented as components, and a high-quality control program can be created in a short time.

【0011】以上のようにFBに基づく制御プログラム
の作成は、利用者が処理に必要な素子を選択して、これ
を順に接続することにより容易に制御プログラムが作成
できるという利点を有する。つまり、制御プログラムを
作成する利用者は、制御プログラム内部の詳細で複雑な
コマンドや変数そのものを編集することなく制御プログ
ラムを作成できる。
As described above, creation of a control program based on FB has an advantage that a user can easily create a control program by selecting elements necessary for processing and connecting them in order. That is, the user who creates the control program can create the control program without editing detailed and complicated commands and variables in the control program.

【0012】一方、FBロジック図に基づいて作成した
制御プログラムの保守やデバックを行う場合には、各F
B素子の間のパス、つまり、信号などの接続関係や、各
FB素子による処理結果などを確認する必要が生じる。
このような、保守、デバックに支援を目的として、非イ
ベント駆動型を対象とする制御プログラムのモニターが
考案されている。これは、制御プログラムをコントロー
ラにおいて実行中に、対応するFBロジック図を表示装
置に表示すると共に、各FB素子間のパス、すなわち、
信号データのコントローラにおける現在値を一定周期で
コントローラから収集し対応する位置に表示するもので
ある。この様なモニターを用いることにより、制御プロ
グラムの保守やデバックを行う利用者が、容易にコント
ローラで実際に実行中の制御プログラムの実行状況を把
握することができる。
On the other hand, when performing maintenance or debugging of a control program created based on the FB logic diagram,
It is necessary to check a path between the B elements, that is, a connection relation of signals and the like, a processing result by each FB element, and the like.
For the purpose of supporting such maintenance and debugging, a monitor of a control program for a non-event driven type has been devised. This is to display the corresponding FB logic diagram on the display device while executing the control program in the controller, and to set the path between each FB element, that is,
The present value of the signal data in the controller is collected from the controller at a constant cycle and displayed at a corresponding position. By using such a monitor, a user who performs maintenance or debugging of the control program can easily grasp the execution status of the control program actually being executed by the controller.

【0013】尚、イベント駆動型制御プログラムに関す
る公開例には特開平4−118704号、特開平4−1
82803号、特開平8−115107号、特開平11
−203154号、特開平10−333935号、特開
平10−320353号、特開平10−301764
号、特開平9−218793号、、特開平8−1294
83号、特開平7−152567号等がある。しかし、
これらは、FBやブロック図の概念はない。
Japanese Patent Application Laid-Open Nos. 4-118704 and 4-1 disclose an example of an event-driven control program.
No. 82803, JP-A-8-115107, JP-A-11
-203154, JP-A-10-333935, JP-A-10-320353, JP-A-10-301664
JP-A-9-218793, JP-A-8-1294
No. 83 and JP-A-7-152567. But,
These have no concept of FB or block diagram.

【0014】[0014]

【発明が解決しようとする課題】前に述べたようにイベ
ント駆動型FBを用いて作成したFBプログラムは、イ
ベントの発生に伴い起動されると共に、そのイベントの
種類により内部状態が遷移し、その内部状態に応じた処
理が実行される。このようなイベント駆動型FBを用い
て作成したFBプログラムを保守、デバックする場合に
は、あるFB素子について、内部状態の遷移の過程や実
行した処理の種類などを正確に知らなければ、保守やデ
バックが事実上できない。この様な情報を得るために
は、モニター対象のFB素子における全ての入出力イベ
ントの発生状況を観測しなければならない。しかしなが
ら、前記従来のモニターは、各FB素子の処理の内容が
固定である非イベント駆動型FBを対象としたものであ
る。つまり、FBプログラムを実行するコントローラに
おける、ある瞬間のモニター対象のFB素子に関する入
手力データを収集し、その結果をFBロジック図の対応
するパスの位置に表示し、FB素子の処理内容や現在状
態のモニターを行う。一方、イベント駆動型FBの場合
にFB素子への入力となるイベント信号は、イベント発
生後にFB素子に対応するFBプログラムを起動すると
共にリセットされてしまう。したがって、前記従来のモ
ニター装置を用いてコントローラにおけるある瞬間の状
態のデータを収集しこれを表示しても、イベントの発生
をモニターすることは不可能である。つまり、モニター
用のデータを収集する時に偶然イベントが発生した場合
でしかイベントが発生したことをモニターに表示するこ
とができない。イベントの発生をモニターできないとい
うことは、イベントの発生状況を正確につかめず保守や
デバックが事実上困難になることを意味する。
As described above, the FB program created by using the event-driven FB is started when an event occurs, and the internal state changes according to the type of the event. Processing according to the internal state is executed. When maintaining and debugging an FB program created using such an event-driven FB, maintenance or debugging of a certain FB element must be performed unless the internal state transition process and the type of executed processing are accurately known. Debugging is virtually impossible. In order to obtain such information, the occurrence status of all input / output events in the FB element to be monitored must be observed. However, the conventional monitor is intended for a non-event driven FB in which the processing of each FB element is fixed. That is, in the controller executing the FB program, the availability data on the FB element to be monitored at a certain moment is collected, the result is displayed at the position of the corresponding path in the FB logic diagram, and the processing content and the current state of the FB element are displayed. Monitor. On the other hand, in the event-driven FB, an event signal to be input to the FB element is reset upon activation of the FB program corresponding to the FB element after the occurrence of the event. Therefore, it is impossible to monitor the occurrence of an event even if data of a state at a certain moment in a controller is collected and displayed using the conventional monitoring device. That is, it is possible to display on the monitor that an event has occurred only when an event has occurred by chance when collecting data for monitoring. The inability to monitor the occurrence of an event means that the occurrence of the event cannot be accurately grasped, making maintenance and debugging practically difficult.

【0015】本発明は、以上のようなFBロジック図に
基づき作成したFBプログラムを実行すると共に、利用
者が容易にFBプログラムの実行状況、特にイベントの
発生状況をモニターする方法およびその装置を提供する
ことを目的とする。
The present invention provides a method and an apparatus for executing an FB program created based on the FB logic diagram as described above and allowing a user to easily monitor the execution status of the FB program, particularly the event occurrence status. The purpose is to do.

【0016】[0016]

【課題を解決するための手段】本発明は、データ状態の
変化に伴う1つ以上のイベントの発生により起動される
イベント駆動型制御プログラムの実行・モニター方法に
おいて、該制御プログラムを起動するイベントを表す信
号線により制御プログラム間の関係を示すブロック図を
表示装置に表示し、該ブロック図に含まれるブロック素
子に接続するイベント信号線に対応するイベントの所定
の時間内における発生回数を記憶し、前記ブロック図の
所定の位置に表示することを特徴とするイベント駆動型
制御プログラムの実行・モニター方法を開示する。
According to the present invention, there is provided a method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in a data state. A block diagram showing the relationship between the control programs is displayed on the display device by a signal line to be displayed, and the number of times of occurrence of an event corresponding to an event signal line connected to a block element included in the block diagram within a predetermined time is stored, A method for executing / monitoring an event-driven control program, which is displayed at a predetermined position in the block diagram, is disclosed.

【0017】更に、本発明は、データ状態の変化に伴う
1つ以上のイベントの発生により起動されるイベント駆
動型制御プログラムの実行・モニター方法において、該
制御プログラムを起動するイベントを表す信号線により
制御プログラム間の関係を示すブロック図を表示装置に
表示し、該ブロック図に含まれるブロック素子に接続す
るイベント信号線に対応するイベントの発生履歴を記憶
し、該記憶した発生履歴をもとに前記表示するブロック
素子に対応するイベントの過去の発生状況を示すタイム
チャートを表示することを特徴とするイベント駆動型制
御プログラムの実行・モニター方法を開示する。
Further, the present invention relates to a method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in the data state, wherein a signal line representing an event for starting the control program is provided. A block diagram showing a relationship between control programs is displayed on a display device, and an event history corresponding to an event signal line connected to a block element included in the block diagram is stored. Based on the stored occurrence history, A method for executing / monitoring an event-driven control program, characterized by displaying a time chart showing a past occurrence state of an event corresponding to the displayed block element, is disclosed.

【0018】更に、本発明は、データ状態の変化に伴う
1つ以上のイベントの発生により起動されるイベント駆
動型制御プログラムの実行・モニター方法において、制
御プログラムの制御内容でグループ分けしたFBプログ
ラムを記憶すると共に、各FBプログラムに対応し、イ
ベント入出力線とデータ入出力線とを明示した、FB対
応のブロック図データを記憶する第1の手段と、発生す
るイベントに従って制御プログラムを構成する第1の手
段に記憶されたFBプログラムを起動し実行する第2の
手段と、表示装置とを備え、モニター対象のFBプログ
ラム及び関連情報を指定するステップと、該指定FB対
応のプログラム図データを第1の手段から読み出し上記
表示装置の画面上にブロック図として表示するステップ
と、第2の手段での制御プログラム実行中に発生したイ
ベントが上記指定モニター対象のFBプログラムの起動
イベントであるがチェックし、この起動イベントを含む
当該FBプログラムに係わるイベントの発生履歴、及び
このFBプログラムの実行中の入出力データを格納する
ステップと、該格納したイベントの発生履歴及び入出力
データを取り出し表示装置に表示中のブロック図の関連
個所に表示するステップと、を有するイベント駆動型制
御プログラムの実行・モニター方法を開示する。
Further, the present invention provides a method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in the data state. First means for storing FB block diagram data corresponding to each FB program and clearly indicating an event input / output line and a data input / output line; and a first means for forming a control program according to an event to be generated. A second means for activating and executing the FB program stored in the first means, a display device, and a step of designating the FB program to be monitored and related information; Reading from the first means and displaying it as a block diagram on the screen of the display device; The event that occurred during the execution of the control program is checked to be the start event of the FB program to be monitored, and the event history including the start event and the input / output during execution of the FB program are checked. A method for executing / monitoring an event-driven control program, comprising the steps of: storing data; and extracting the stored event occurrence history and input / output data and displaying the data at a relevant portion of the block diagram being displayed on the display device. Disclose.

【0019】更に、本発明は、データ状態の変化に伴う
1つ以上のイベントの発生による起動される、イベント
駆動型制御プログラムの実行・モニター装置において、
該制御プログラム、及びこのプログラムを起動するイベ
ントを表す信号線により制御プログラム間の関係を示す
ブロック図データを保持する第1の記憶手段と、該ブロ
ック図に含まれる特定のブロック素子に接続するイベン
ト信号線に対応するイベントの発生状況のデータを保持
する第2の記憶手段と、外部からの入力データに応じ
て、前記第1の記憶手段からブロック図データを読込み
ブロック図を表示し、かつ、該表示したブロック図に関
連するイベントの発生状況のデータを、前記第2の記憶
手段から読込み、表示中のブロック図の対応する位置に
表示する手段を有することを特徴とするイベント駆動型
制御プログラムの実行・モニター装置を開示する。
Further, the present invention relates to an apparatus for executing and monitoring an event-driven control program which is activated by the occurrence of one or more events accompanying a change in data state.
First storage means for storing block diagram data indicating a relationship between control programs by a signal line representing the control program and an event for starting the program, and an event connected to a specific block element included in the block diagram A second storage unit for storing data on the occurrence status of an event corresponding to the signal line; reading block diagram data from the first storage unit in response to externally input data; displaying a block diagram; An event-driven control program having means for reading data on the occurrence status of an event related to the displayed block diagram from the second storage means and displaying the data at a corresponding position in the block diagram being displayed. An execution / monitoring device of the invention is disclosed.

【0020】更に、本発明は、イベント駆動型制御プロ
グラムにより制御を実行するイベント駆動型制御プログ
ラム実行装置において、制御プログラムの制御内容でグ
ループ分けしたFBプログラムを記憶する第1の手段
と、各FBプログラムに対応し、イベント入出力系路と
データ入出力系路を明示した、FB対応のブロック図デ
ータを記憶する第2の手段と、発生するイベントに従っ
て制御プログラムを構成する第1の手段に記憶されたF
Bプログラムを起動し実行する第3の手段と、モニター
対象のFBプログラムを指定する第4の手段と、該指定
FB対応のブロック図データを第2の手段から読み出し
画面上にブロック図として表示する第5の手段と、第3
の手段での制御プログラム実行中に発生したイベント
が、第4の手段で指定したモニター対象のFBプログラ
ムの起動イベントであるか否かチェックし、この起動イ
ベントであれば、この起動イベントを含む当該FBプロ
グラムに係わるイベントの発生履歴、及びこのイベント
で起動されたFBプログラムの実行中の入出力データ、
を格納させる第6の手段と、指定内容に従って第6の手
段での対応する情報を読み出し関連個所に表示させる第
7の手段と、を備えるイベント駆動型制御プログラム実
行モニター装置を開示する。
Further, according to the present invention, there is provided an event-driven control program execution device for executing control by an event-driven control program, wherein the first means for storing FB programs grouped by the control contents of the control program; A second means for storing block diagram data corresponding to FB, corresponding to the program and explicitly indicating an event input / output path and a data input / output path, and stored in a first means for forming a control program according to an event to be generated. Done F
A third means for activating and executing the B program, a fourth means for designating an FB program to be monitored, and a block diagram data corresponding to the designated FB is read from the second means and displayed as a block diagram on a screen. Fifth means and third
It is checked whether or not the event that occurred during the execution of the control program by the means is a start event of the FB program to be monitored specified by the fourth means. An occurrence history of an event relating to the FB program, input / output data during execution of the FB program activated by the event,
An event-driven control program execution monitor device comprising: a sixth means for storing the information; and a seventh means for reading out the corresponding information in the sixth means in accordance with the designated contents and displaying the information at a relevant location.

【0021】[0021]

【発明の実施の形態】図1に実行・モニター装置1の構
成例を示す。図1の実行・モニター装置1は、FBロジ
ック図とこれをもとに作成したFBプログラムを保持す
るFBプログラム記憶部14と、該FBプログラムを実
行する機能を有するFBプログラム実行部18と、該F
Bプログラムの起動のタイミングを与えるイベントの発
生を検知し、これにより該FBプログラムを前記FBプ
ログラム実行部で実行する機能を有するFBプログラム
実行管理部19と、制御対象プラントとの間の信号の入
出力を処理する機能を有する信号入出力処理部20と、
該信号入出力信号処理部から入力された入力信号データ
およびFBプログラムの実行の結果出力データを保持す
る信号データ記憶部17を備え、これらによりFBプロ
グラムを実行する。更に、実行・モニター装置1は、前
記FBプログラム記憶部に保持するFBプログラムの実
行状況を、そのもととなるイベント駆動型FB素子毎に
モニターするために、FBプログラムの起動のきっかけ
となるイベントの発生状況を保持するイベント発生履歴
記憶部15と、FBプログラムがイベントにより起動し
た時の信号の値と、起動のきっかけとなったイベントを
保持するモニター情報記憶部16と、FBロジック図と
関連するデータを表示する機能を有するモニター結果表
示部11と、利用者からの入力を処理する入力処理部1
2と、前記入力処理部を介して利用者が入力するイベン
ト駆動型FB素子の情報に応じて、前記モニター結果表
示部にモニター対象のFBロジック図と関連するデータ
を表示する機能を有するFBプログラムモニター処理部
13を有し、FBプログラムのモニターを実行する。こ
の時の処理は、次のモニター情報収集処理とモニター結
果表示処理で構成する。
FIG. 1 shows an example of the configuration of an execution / monitor device 1. The execution / monitoring device 1 of FIG. 1 includes an FB logic diagram, an FB program storage unit 14 that holds an FB program created based on the FB logic diagram, an FB program execution unit 18 having a function of executing the FB program, F
The occurrence of an event that gives the timing of starting the B program is detected, whereby the input of a signal between the FB program execution management unit 19 having a function of executing the FB program in the FB program execution unit and the plant to be controlled is performed. A signal input / output processing unit 20 having a function of processing an output,
A signal data storage unit 17 is provided for holding input signal data input from the signal input / output signal processing unit and output data resulting from execution of the FB program, and executes the FB program using these. Further, the execution / monitoring device 1 monitors the execution status of the FB program stored in the FB program storage unit for each event-driven FB element that is the basis of the FB program. An event occurrence history storage unit 15 that holds the occurrence status of the event, a monitor information storage unit 16 that holds the value of a signal when the FB program is activated by the event, and an event that triggered the activation, and an FB logic diagram. Monitor display unit 11 having a function of displaying data to be input, and an input processing unit 1 for processing an input from a user
FB program having a function of displaying data related to an FB logic diagram to be monitored on the monitor result display unit in accordance with information on an event-driven FB element input by a user via the input processing unit It has a monitor processing unit 13 and executes monitoring of the FB program. The processing at this time comprises the following monitor information collection processing and monitor result display processing.

【0022】モニター情報収集処理は、前記FBプログ
ラム実行管理部19においてFBプログラムの起動に対
応するイベントの発生を検知した時に実行し、以下の処
理ステップで構成する。 (1)FBプログラム実行管理部19で検知したイベン
トが、モニター対象FBの入力イベントであるかどうか
を判断する処理ステップ。 (2)前記の処理ステップ(1)でモニター対象FBで
あると判断した時に、処理対象のイベントの情報をイベ
ント発生履歴記憶部15に書き込む処理ステップ。 (3)モニター対象FBに対する入力信号データの値を
前記信号データ記憶部17から抽出し、その値をモニタ
ー情報記憶部16に書き込む処理ステップ。 (4)モニター対象FBに対応するFBプログラムをF
Bプログラム実行部18において実行する処理ステッ
プ。 (5)モニター対象FBからの出力信号のデータの値を
前記信号データ記憶部17から抽出し、その値をモニタ
ー情報記憶部16に書き込む処理ステップ。また、モニ
ター結果表示処理は、FBプログラムモニター処理部1
3において、入力処理部を介して利用者がモニター対象
FBのデータを入力した時に実行し、以下の処理ステッ
プで構成する。 (A)利用者が入力装置を介して入力したデータをもと
に、前記FBプログラム記憶部14からモニター対象F
BとそのFBプログラム、および、それらに関連するイ
ベントと信号データを識別するためのデータを前記モニ
ター情報記憶部16とイベント発生履歴記憶部15に書
き込む処理ステップ。 (B)前記モニター対象FBを、実行状況のモニターの
ために前記モニター結果表示部11にFBロジック図と
して表示する処理ステップ。 (C)前記、FBプログラム実行管理部19の処理ステ
ップ(3)において書き込まれた、FBプログラムの起
動時における信号データの値をモニター情報記憶部16
から読込み、前記処理ステップ(B)で表示したFBロ
ジック図の対応する位置に、そのデータ値を表示する処
理ステップ。 (D)前記、FBプログラム実行管理部19の処理ステ
ップ(2)においてイベントの発生履歴記憶部15に書
き込まれたデータを読込み、このデータに基づいて前記
処理ステップ(B)で表示したFBロジック図の各イベ
ントに対応する位置に、イベントの発生回数を表示する
処理ステップ。なお、この処理ステップのうち、(C)
と(D)は、モニターを終了するまで、繰り返し実行す
る。
The monitor information collection process is executed when the FB program execution management unit 19 detects the occurrence of an event corresponding to the activation of the FB program, and is constituted by the following processing steps. (1) A processing step of determining whether the event detected by the FB program execution management unit 19 is an input event of the FB to be monitored. (2) A processing step of writing information of an event to be processed to the event occurrence history storage unit 15 when it is determined in the processing step (1) that the FB is a monitoring target FB. (3) A processing step of extracting the value of the input signal data for the monitoring target FB from the signal data storage unit 17 and writing the value to the monitor information storage unit 16. (4) The FB program corresponding to the FB to be monitored is
Processing steps executed by the B program execution unit 18. (5) A processing step of extracting the data value of the output signal from the monitoring target FB from the signal data storage unit 17 and writing the value into the monitor information storage unit 16. The monitor result display processing is performed by the FB program monitor processing unit 1.
In step 3, the process is executed when the user inputs data of the monitoring target FB via the input processing unit, and is configured by the following processing steps. (A) The monitoring target F is stored in the FB program storage unit 14 based on data input by the user through the input device.
A processing step of writing data for identifying B, its FB program, and events and signal data related to them to the monitor information storage unit 16 and the event occurrence history storage unit 15. (B) a processing step of displaying the monitoring target FB as an FB logic diagram on the monitoring result display unit 11 for monitoring the execution status. (C) The value of the signal data at the start of the FB program written in the processing step (3) of the FB program execution management unit 19 is stored in the monitor information storage unit 16.
And displaying the data value at the corresponding position in the FB logic diagram displayed in the processing step (B). (D) The data written in the event occurrence history storage unit 15 in the processing step (2) of the FB program execution management unit 19 is read, and the FB logic diagram displayed in the processing step (B) based on the data is read. A processing step of displaying the number of occurrences of an event at a position corresponding to each of the events. In this processing step, (C)
And (D) are repeatedly executed until the monitor is terminated.

【0023】本発明は、以上のモニター情報収集処理と
モニター結果表示処理により、イベント駆動型FBをも
とにしたFBプログラムの実行およびモニターを可能と
する。また、本発明は前記処理ステップ(2)におい
て、イベント発生履歴記憶部15に書き込む情報とし
て、モニター対象FB毎の発生したイベントとその発生
時刻を適用する。そして、前記処理ステップ(D)にて
表示するイベントの情報として、モニター対象FBに関
連するイベントの時系列を表示する。
The present invention makes it possible to execute and monitor an FB program based on an event-driven FB by the above-described monitor information collection processing and monitor result display processing. Further, in the present invention, in the processing step (2), an event that has occurred for each monitoring target FB and an occurrence time thereof are applied as information to be written to the event occurrence history storage unit 15. Then, as the event information to be displayed in the processing step (D), a time series of events related to the monitoring target FB is displayed.

【0024】また、本発明は、前記FBプログラムモニ
ター処理部13において、モニター時に表示する信号デ
ータを、「FBプログラム実行時の値」か、「現在の
値」かを切り替えるためのモードデータを保持し、この
データが「現在の値」に対応する値である場合に、前記
処理ステップ(C)の代わりに、信号データ記憶部17
からモニター対象FBの入出力データの値を抽出し、そ
の値を前記モニター結果表示部11に表示したFBロジ
ック図の対応する位置に表示する処理ステップを実行す
る。
Further, according to the present invention, the FB program monitor processing section 13 holds mode data for switching signal data to be displayed at the time of monitoring between “value at the time of executing the FB program” and “current value”. If this data is a value corresponding to the “current value”, the signal data storage unit 17 is used instead of the processing step (C).
, A processing step of extracting the value of the input / output data of the FB to be monitored from the FB logic diagram and displaying the value at a corresponding position in the FB logic diagram displayed on the monitor result display unit 11 is executed.

【0025】また、本発明は、利用者が入力処理部12
を介してモニター中のFBに関するイベント情報をリセ
ットするデータを入力した時に、前記イベント発生履歴
記憶部15に保持する、イベントに関する情報をクリア
ーする処理ステップを実行する。
Further, according to the present invention, the user can use the input processing unit 12.
When the data for resetting the event information related to the FB being monitored is input via the CPU, a processing step for clearing the information related to the event, which is stored in the event occurrence history storage unit 15, is executed.

【0026】本実施例の実行・モニター装置1は、処理
機能毎に複数の部分に分割し、データバス21で接続す
る構成をとっている。これは、通信回線に接続する一台
のパーソナルコンピュータにより、処理プログラム及び
記憶装置などとして容易に実現することが可能である。
前述したようなモニター結果表示部11は、FBプログ
ラムをモニターした結果と関連する情報を表示する。本
実施例では、モニター結果表示部11はCRTで構成す
る。入力処理部12は、本実施例の実行・モニター装置
の利用者からのデータの入力を処理する。本実施例で
は、入力処理部12は文字列データを入力するためのキ
ーボードとモニター結果表示部11に表示する操作スイ
ッチを指定、操作するためのマウスで構成する。
The execution / monitor device 1 of the present embodiment is configured to be divided into a plurality of parts for each processing function and connected by a data bus 21. This can be easily realized as a processing program and a storage device by one personal computer connected to a communication line.
The monitor result display unit 11 as described above displays information related to the result of monitoring the FB program. In the present embodiment, the monitor result display section 11 is constituted by a CRT. The input processing unit 12 processes input of data from a user of the execution / monitoring device of the present embodiment. In this embodiment, the input processing unit 12 includes a keyboard for inputting character string data and a mouse for designating and operating an operation switch to be displayed on the monitor result display unit 11.

【0027】FBプログラムモニター処理部13は、本
実施例の実行・モニター装置1の利用者が、入力処理部
12を介して入力するデータに応じて、モニター対象F
Bロジック図や関連データをモニター結果表示部11に
表示する機能、および、モニター対象のFBに関連する
データを次に説明するモニター情報記憶部16やイベン
ト発生履歴記憶部15に書き込む機能を有する。この機
能の詳細は後ほど説明する。図6にFBプログラムモニ
ター処理部13がモニター結果表示部11に表示するモ
ニター画面11aを示す。この画面は、モニター対象の
FBとその関連情報100a、100b、および、モニ
ターの実行を制御するための操作スイッチ120a〜f
で構成する。11aの表示内容は、後ほど処理の説明時
に行う。また、FBプログラムモニター処理部13は、
モニター対象のFBの入出力データについて、FBの実
行とは非同期に現在のデータ値を表示するか、あるい
は、FB実行時の値を表示するかを切り替えるためのモ
ードデータを保持する機能を有する。また、FBプログ
ラムモニター処理部13は、モニター対象のFBのイベ
ントについて、モニター時にデータを表示するか、ある
いは、表示しないかを切り替えるためのモードデータを
保持する機能を有する。表1にこれらのモードデータの
実施例を示す。なお、以下の本実施例の説明において
は、表に記載するデータの実施例のうち、下線を付けた
部分が処理の結果として書き込まれる、または、読込ま
れる部分である。表のその他の部分は、実施例の説明の
ために補足的に追加したものである。
The FB program monitor processing unit 13 is configured to monitor the F target according to data input by the user of the execution / monitor apparatus 1 of the present embodiment via the input processing unit 12.
It has a function of displaying the B logic diagram and related data on the monitor result display unit 11 and a function of writing data related to the FB to be monitored into the monitor information storage unit 16 and the event occurrence history storage unit 15 described below. Details of this function will be described later. FIG. 6 shows a monitor screen 11a displayed on the monitor result display unit 11 by the FB program monitor processing unit 13. This screen displays the FB to be monitored and its related information 100a and 100b, and operation switches 120a to 120f for controlling execution of the monitor.
It consists of. The display contents of 11a will be described later when the processing is described. Also, the FB program monitor processing unit 13
The input / output data of the FB to be monitored has a function of holding mode data for switching between displaying the current data value asynchronously with the execution of the FB or displaying the value at the time of the FB execution. In addition, the FB program monitor processing unit 13 has a function of holding mode data for switching whether to display data or not to display data of an FB event to be monitored during monitoring. Table 1 shows examples of these mode data. In the following description of the present embodiment, underlined portions of the data embodiments described in the table are portions to be written or read as a result of the processing. Other parts of the table are supplementarily added for the description of the embodiments.

【0028】[0028]

【表1】 また、本実施例において表1のモードデータは、図6に
示した操作スイッチ120(120a〜120f)を入
力処理部12のマウスで操作することにより利用者が変
更することが可能である。すなわち、利用者がマウスを
用いて「現在値データ表示」スイッチ120aをクリッ
クすることにより、FBプログラムモニター処理部13
は、表1の「現在値データ表示」モードの値として
「1」を書き込む。「実行時データ表示」スイッチ10
2bがクリックされた場合には、「0」を書き込む。ま
た、「イベント表示」102d、「イベント非表示」1
20dスイッチがクリックされた場合、「イベント表
示」モードの値として、それぞれ、「1」、「0」を書
き込む。
[Table 1] Further, in this embodiment, the user can change the mode data of Table 1 by operating the operation switches 120 (120a to 120f) shown in FIG. That is, when the user clicks the “display current value data” switch 120 a using a mouse, the FB program monitor processing unit 13
Writes "1" as the value of the "current value data display" mode in Table 1. "Runtime data display" switch 10
When 2b is clicked, “0” is written. Also, “event display” 102d, “event non-display” 1
When the 20d switch is clicked, “1” and “0” are written as the values of the “event display” mode, respectively.

【0029】次に、図1においてFBプログラム記憶部
14は実行・モニターの対象とするFBプログラムと、
それと対応するFBロジック図のデータを保持する。F
Bプログラム実行部18は、FBプログラム記憶部14
に保持するFBプログラムを実際に実行する機能を有す
る。FBプログラム実行管理部19は、FBプログラム
記憶部14に保持する全てのFBプログラムの起動のき
っかけとなるイベントを記憶し、イベント発生時に対応
するFBプログラムをFBプログラム実行部18で実行
する機能を有する。信号データ記憶部17は、FBプロ
グラム記憶部14に保持するFBプログラムの入出力の
データ値を記憶する。このデータ値は、前記FBプログ
ラム実行部18によりFBプログラムの実行の都度、対
応データが更新される。
Next, in FIG. 1, the FB program storage unit 14 stores an FB program to be executed / monitored,
The corresponding FB logic diagram data is held. F
The B program execution unit 18 stores the FB program storage unit 14
Has a function of actually executing the FB program stored in the FB. The FB program execution management unit 19 has a function of storing an event that triggers activation of all FB programs stored in the FB program storage unit 14 and executing the FB program corresponding to the event occurrence in the FB program execution unit 18. . The signal data storage unit 17 stores FB program input / output data values held in the FB program storage unit 14. The corresponding data is updated by the FB program execution unit 18 every time the FB program is executed.

【0030】モニター情報記憶部16は、モニター中の
FBプログラムの名称、最後にそのFBプログラムを実
行した時に、その起動のきっかけとなったイベント信号
の名称、および、そのFBプログラムの実行にて使用し
た入力データと処理の結果出力した出力データの値を保
持する機能を有する。イベント発生履歴記憶部15は、
であり、モニター対象FBプログラム毎の入出力イベン
トとその発生履歴データを保持する機能を有する。本実
施例の実行・モニター装置20は制御するプラント2に
設置する検出器や操作盤の信号の読込みや、同じくプラ
ント2に設置するポンプなどのアクチュエータへの指令
信号の出力を行う信号入出力処理部である。この信号入
出力処理部20は、読込んだ信号に応じたイベントを発
生させる機能を有する。各部の処理機能については、後
ほど処理の説明時に詳細に説明する。
The monitor information storage unit 16 stores the name of the FB program being monitored, the name of the event signal that triggered the start of the FB program when the FB program was last executed, and the name of the FB program used for executing the FB program. It has a function of retaining the value of the input data obtained and the value of the output data output as a result of the processing. The event occurrence history storage unit 15
And has a function of storing input / output events for each FB program to be monitored and its occurrence history data. The execution / monitoring device 20 according to the present embodiment is a signal input / output process for reading a signal from a detector and an operation panel installed in the plant 2 to be controlled and outputting a command signal to an actuator such as a pump also installed in the plant 2. Department. The signal input / output processing unit 20 has a function of generating an event according to the read signal. The processing function of each unit will be described later in detail when describing the processing.

【0031】本実施例の実行・モニター装置1におい
て、FBプログラムを実行中に利用者がFBプログラム
の実行状況をモニターする時には、利用者が入力処理部
12を介してモニター対象のFB素子名を入力する。例
えば、FB名の一覧リストを表示しておき、マウスで選
択する。FBプログラムモニター処理部13は、入力さ
れたモニターFB素子名と関連データをモニター情報記
憶部16に書き込む。また、FBプログラムモニター処
理部13は、イベント発生履歴記憶部14に、モニター
対象FBへの入力イベントの名称を書き込む。以下で
は、前にFBの説明で用いた図4のポンプの運転台数制
御のFBを例として用いる。表2は、利用者がモニター
対象FB素子として「台数設定器」FB素子(図4 、
100a)を選択した結果、FBプログラムモニター処
理部13がモニター情報記憶部16に書き込むデータの
実施例を示したものである。
In the execution / monitoring device 1 of this embodiment, when the user monitors the execution status of the FB program while executing the FB program, the user inputs the name of the FB element to be monitored via the input processing unit 12. input. For example, a list of FB names is displayed, and is selected with a mouse. The FB program monitor processing unit 13 writes the input monitor FB element name and related data into the monitor information storage unit 16. Further, the FB program monitor processing unit 13 writes the name of the input event to the monitored FB in the event occurrence history storage unit 14. Hereinafter, the FB for controlling the number of operating pumps in FIG. 4 used in the description of the FB will be used as an example. Table 2 shows that the user sets the “number setting device” FB element as the FB element to be monitored (FIG. 4,
As a result of selecting 100a), an example of data written by the FB program monitor processing unit 13 to the monitor information storage unit 16 is shown.

【表2】 [Table 2]

【0032】また、表3は前記モニター情報記憶部16
への書込みに続いてFBプログラムモニター処理部13
が、イベント発生履歴記憶部15に書き込むデータの実
施例を示したものである。
Table 3 shows the monitor information storage unit 16.
FB program monitor processing unit 13 following writing to
Shows an example of data to be written to the event occurrence history storage unit 15.

【表3】 [Table 3]

【0033】次に、本実施例の実行・モニター装置1に
おけるイベント発生時のFBプログラムの実行処理の流
れを、図2のフローチャートを用いて説明する。図2の
処理は、本実施例の実行・モニター装置1において、信
号入出力処理部20にてプラント20の検出器や操作盤
からのイベント信号を検知した時、あるいは、他のFB
プログラムの処理の結果としてイベントが発生した場合
にFBプログラム実行管理部19にて実行する。
Next, the flow of the execution process of the FB program when an event occurs in the execution / monitoring device 1 of the present embodiment will be described with reference to the flowchart of FIG. 2 is performed when the signal input / output processing unit 20 detects an event signal from the detector or the operation panel of the plant 20 in the execution / monitoring device 1 of the present embodiment, or other FBs.
When an event occurs as a result of processing of the program, the FB program execution management unit 19 executes the event.

【0034】まず、ステップ200では、イベント発生
履歴記憶部15を参照し発生したイベントがモニター対
象FBの入力(起動)イベントであるかどうかを判定す
る。もし、発生したイベントがモニター対象FBの入力
イベントであれば、ステップ202に進む。モニター対
象FBの入力イベントでない場合は、ステップ201に
進む。
First, in step 200, it is determined whether or not the generated event is an input (activation) event of the monitoring target FB by referring to the event occurrence history storage unit 15. If the generated event is an input event of the monitoring target FB, the process proceeds to step 202. If the event is not the input event of the monitoring target FB, the process proceeds to step 201.

【0035】ステップ201では、発生したイベントに
対応するFBをFBプログラム記憶部14から読込み、
そのFBプログラムをFBプログラム実行部18で実行
する。発生したイベントがモニター対象FBの入力イベ
ントではない場合は、これで処理を終了する。
In step 201, the FB corresponding to the event that has occurred is read from the FB program storage unit 14,
The FB program is executed by the FB program execution unit 18. If the event that has occurred is not an input event of the monitoring target FB, the process ends here.

【0036】ステップ200でイベントがモニター対象
FBの入力イベントであると判定された場合、ステップ
202で、イベント発生履歴を更新する。これはすなわ
ち、イベント発生履歴記憶部15の対応するイベントの
発生回数に1を加える。例えば、「台数増指令」イベン
トが発生した場合は、表2の入力イベント「台数増指
令」の発生回数のデータを「0」から「1」に書換え
る。
If it is determined in step 200 that the event is an input event of the monitoring target FB, in step 202, the event occurrence history is updated. That is, 1 is added to the number of occurrences of the corresponding event in the event occurrence history storage unit 15. For example, when the “number increase command” event occurs, the data of the number of occurrences of the input event “number increase command” in Table 2 is rewritten from “0” to “1”.

【0037】次にステップ203で、モニター対象FB
に対する入力データの値をモニター情報記憶部16に書
き込む。例えば(表2)の如き例である。すなわち、モ
ニター対象FBに対する入力データ名をモニター情報記
憶部16から読込み、この入力データの現在値を信号デ
ータ記憶部17から抽出し、さらにこの結果をモニター
情報記憶部16の実行値に書き込む。また、続いて、モ
ニター情報記憶部16の「最終発生イベント名」のデー
タを更新する。例えば、前記の例の場合、「最終発生イ
ベント名」のデータとして、「台数増指令」を書き込
む。
Next, at step 203, the FB to be monitored
Is written into the monitor information storage unit 16. An example is shown in Table 2 below. That is, the input data name for the monitoring target FB is read from the monitor information storage unit 16, the current value of the input data is extracted from the signal data storage unit 17, and the result is written in the execution value of the monitor information storage unit 16. Subsequently, the data of the “last event name” in the monitor information storage unit 16 is updated. For example, in the case of the above example, the “number increase command” is written as data of the “final occurrence event name”.

【0038】次に、ステップ201でモニター対象FB
の処理を実行する。この処理は、発生イベントがモニタ
ー対象FBのものでない場合と同じである。尚、最終発
生イベントとしたが、途中発生イベントの例もある。
Next, in step 201, the FB to be monitored
Execute the processing of This processing is the same as the case where the generated event is not the one of the monitoring target FB. Although the last event has been described, there is also an example of an intermediate event.

【0039】次にステップ204で、モニター対象FB
が出力するデータの値をモニター情報記憶部16に書き
込む。すなわち、モニター対象FBからの出力データ名
をモニター情報記憶部16から読込み、この出力データ
の現在値を信号データ記憶部17から抽出し、さらにこ
の結果をモニター情報記憶部16の実行値に書き込む。
本実施例の実行・モニター装置は、以上の処理によりF
Bプログラムを実行する。次に、実行・モニター装置の
利用者が、FBプログラムの実行状況をモニターするた
めに、モニター対象FBプログラムを入力した時の処理
の流れを図3のフローチャートを用いて詳細に説明す
る。
Next, at step 204, the FB to be monitored
Is written into the monitor information storage unit 16. That is, the output data name from the monitoring target FB is read from the monitor information storage unit 16, the current value of the output data is extracted from the signal data storage unit 17, and the result is written to the execution value of the monitor information storage unit 16.
The execution / monitoring device of the present embodiment performs F
Execute the B program. Next, the flow of processing when the user of the execution / monitoring device inputs a monitored FB program in order to monitor the execution status of the FB program will be described in detail with reference to the flowchart of FIG.

【0040】図3の処理は、本実施例の実行・モニター
装置1において、入力処理部12に対し利用者がモニタ
ー対象のFBプログラムを入力した時にFBプログラム
モニター処理部13において実行する。まず、ステップ
300では、利用者が入力処理部12に入力したFBプ
ログラムの情報をモニター情報記憶部16およびイベン
ト発生履歴記憶部15に書き込む。すなわち、前にFB
プログラムモニター処理部13の機能の説明時に述べた
ように、入力されたモニターFB素子名と関連データを
モニター情報記憶部16に書き込み、また、イベント発
生履歴記憶部15に、モニター対象FBへの入力イベン
トの名称を書き込む。つまり、本実施例の場合、表2、
表3に示すデータをそれぞれの記憶部に書き込む。
The processing shown in FIG. 3 is executed by the FB program monitor processing section 13 when the user inputs the FB program to be monitored to the input processing section 12 in the execution / monitor apparatus 1 of the present embodiment. First, in step 300, the information of the FB program input by the user to the input processing unit 12 is written to the monitor information storage unit 16 and the event occurrence history storage unit 15. That is, before FB
As described in the description of the function of the program monitor processing unit 13, the input monitor FB element name and related data are written in the monitor information storage unit 16, and the event occurrence history storage unit 15 is input to the monitor target FB. Write the name of the event. That is, in the case of this embodiment, Table 2,
The data shown in Table 3 is written in each storage unit.

【0041】次にステップ301では、利用者が入力し
たFBプログラムをFBプログラム記憶部11から読込
み、これをFBロジック図としてモニター結果表示部1
1に表示する。この時の図6のモニター結果表示部11
に表示するモニター画面11aは、前にFBの説明に用
いた図3の例と同一のFBロジック図を表示する場合の
実施例である。
Next, at step 301, the FB program input by the user is read from the FB program storage unit 11, and the read FB program is displayed as an FB logic diagram on the monitor result display unit 1.
1 is displayed. At this time, the monitor result display unit 11 shown in FIG.
Is an embodiment in which the same FB logic diagram as the example of FIG. 3 used for describing the FB is displayed.

【0042】次に、ステップ302でモニターの表示モ
ードが現在値データ表示モードで、すなわち、前記モー
ドデータ(表1)の「現在値データ表示」のデータが
「1」であるかどうかを判定する。この結果、モニター
の表示モードが現在値データ表示モードであればステッ
プ303に進み、そうでなければステップ304に進
む。
Next, in step 302, it is determined whether or not the display mode of the monitor is the present value data display mode, that is, whether the data of "present value data display" of the mode data (Table 1) is "1". . As a result, if the monitor display mode is the current value data display mode, the process proceeds to step 303; otherwise, the process proceeds to step 304.

【0043】ステップ303では、モニター対象FBプ
ログラムに含まれるFBにつき全ての入出力データのF
B実行時に使用したデータをモニター情報記憶部16か
ら読み出し、読み出した各データ値をモニター結果表示
部11に表示中のFBロジック図の対応するFBに入力
あるいは出力のリンク線の近傍に表示する。なお、図6
のモニター結果表示部11の画面11aは、モニター情
報記憶部16に記憶するデータが表4の時の表示例であ
る。これは、FB実行時の「緊急停止」データの値が
「0」、「ポンプ1停止」データの値が「1」であるこ
と等を示している。
In step 303, the F / Bs of all input / output data for the FB included in the FB program to be monitored
The data used at the time of executing B is read from the monitor information storage unit 16, and each read data value is displayed in the vicinity of an input or output link line in a corresponding FB of the FB logic diagram displayed on the monitor result display unit 11. FIG.
The screen 11a of the monitor result display section 11 is a display example when the data stored in the monitor information storage section 16 is as shown in Table 4. This indicates that the value of the “emergency stop” data at the time of executing the FB is “0”, the value of the “pump 1 stop” data is “1”, and the like.

【表4】 [Table 4]

【0044】ステップ304では、モニター対象FBプ
ログラムに含まれるFBにつき全ての入出力データの現
在値を信号データ記憶部17から読み出し、読み出した
各データ値をモニター結果表示部11に表示中のFBロ
ジック図の対応するFBの入力あるいは出力のリンク線
の近傍に表示する。この場合のモニター結果表示部11
の表示は、データ値140がFB実行時の値でなく信号
データ記憶部17に保持する現在値である点を除き図6
の表示と同じである。
In step 304, the current values of all input / output data for the FB included in the FB program to be monitored are read from the signal data storage unit 17, and the read data values are displayed on the monitor result display unit 11. It is displayed near the input or output link line of the corresponding FB in the figure. Monitor result display section 11 in this case
Are displayed in FIG. 6 except that the data value 140 is not the value at the time of executing the FB, but the current value held in the signal data storage unit 17.
Is the same as the display.

【0045】次に、ステップ305では、モニターのイ
ベント表示モード、すなわち、前記モードデータ(表
1)の「イベント表示」のデータが「1」であるかどう
かを判定する。この結果、モニターがイベント表示モー
ドであればステップ306に進み、そうでなければステ
ップ307に進む。ステップ306では、モニター対象
FBプログラムに含まれるFBにつき全てのイベントの
発生履歴をイベント発生履歴記憶部15から読み出し、
読み出した各発生履歴をモニター結果表示部11に表示
中のFBロジック図の対応するFBのイベントのリンク
線の近傍に表示する。本実施例では、発生履歴としてイ
ベントの発生回数を表示する。なお、図6のモニター結
果表示部11の画面11aは、イベント発生履歴記憶部
15に記憶するデータが表5の時の表示例である。これ
は、モニター開始から「台数増指令」イベントが2回、
「台数減指令」イベントが1回発生したこと等を示して
いる。
Next, in step 305, it is determined whether or not the event display mode of the monitor, that is, the data of "event display" in the mode data (Table 1) is "1". As a result, if the monitor is in the event display mode, the process proceeds to step 306; otherwise, the process proceeds to step 307. In step 306, the event histories of all events for the FB included in the FB program to be monitored are read from the event occurrence history storage unit 15,
Each of the read occurrence histories is displayed near the link line of the corresponding FB event in the FB logic diagram being displayed on the monitor result display unit 11. In this embodiment, the number of occurrences of an event is displayed as an occurrence history. The screen 11a of the monitor result display unit 11 in FIG. 6 is a display example when the data stored in the event occurrence history storage unit 15 is as shown in Table 5. This is because the “number increase command” event has been performed twice since the monitor started,
This indicates that the "number decrease command" event has occurred once.

【表5】 [Table 5]

【0046】次に、ステップ307では、利用者からの
イベントリセット要求があるかどうかを判定する。本実
施例においては、図6の表示画面11aの「イベントリ
セット」ボタン120eを利用者がクリックした場合、
イベントリセット要求が発生したと判断する。ステップ
307でイベントリセット要求がないと判定された場
合、ステップ309に進む。ステップ307でイベント
リセット要求があると判定された場合は、ステップ30
8に進み、イベント発生履歴記憶部15のイベント発生
履歴データをクリアする。本実施例では、前記表3の全
てのイベントに対する「発生回数」データに「0」を書
き込む。
Next, at step 307, it is determined whether or not there is an event reset request from the user. In the present embodiment, when the user clicks the “event reset” button 120e on the display screen 11a in FIG.
It is determined that an event reset request has occurred. If it is determined in step 307 that there is no event reset request, the process proceeds to step 309. If it is determined in step 307 that there is an event reset request, step 30
Proceeding to S8, the event occurrence history data in the event occurrence history storage unit 15 is cleared. In this embodiment, “0” is written in the “occurrence count” data for all the events in Table 3.

【0047】次に、ステップ309では、利用者からの
モニター終了要求があるかどうかを判定する。本実施例
においては、図6の表示画面の実施例11aの「モニタ
ー終了」ボタン120fを利用者がクリックした場合、
モニター終了要求が発生したと判断する。ステップ30
9でモニター終了要求がないと判定された場合、ステッ
プ302に戻る。ステップ309でモニター終了要求が
あると判定された場合は、ステップ310に進む。ステ
ップ310では、ステップ301でモニター情報記憶部
16、イベント発生履歴記憶部15に書き込んだモニタ
ー対象FB情報をすべて消去する。
Next, in step 309, it is determined whether or not there is a monitor termination request from the user. In this embodiment, when the user clicks the "end monitor" button 120f of the embodiment 11a on the display screen of FIG.
It is determined that a monitor termination request has occurred. Step 30
If it is determined in step 9 that there is no monitor end request, the process returns to step 302. If it is determined in step 309 that there is a monitor end request, the process proceeds to step 310. In step 310, all the monitoring target FB information written in the monitor information storage unit 16 and the event occurrence history storage unit 15 in step 301 is deleted.

【0048】本実施例の実行・モニター装置1は、以上
の説明の様にステップ200〜204の処理によってモ
ニター対象FBに関するイベントの発生状況、および、
実行時の使用したデータを収集し、同時にステップ30
0〜310の処理により収集したデータを表示する。本
実施例の実行・モニター装置1の利用者は、この様なF
Bの実行状況のモニター結果を参照することにより、F
Bプログラムのデバックや保守を容易に行うことが可能
となる。
As described above, the execution / monitor apparatus 1 according to the present embodiment performs the processing of steps 200 to 204 to generate an event regarding the monitored FB,
Collect the data used during the run and at the same time step 30
The data collected by the processing of 0 to 310 is displayed. The user of the execution / monitoring device 1 of the present embodiment can use such F
By referring to the result of monitoring the execution status of B,
Debugging and maintenance of the B program can be easily performed.

【0049】なお、以上の実施例の説明においては、モ
ニター画面に表示するイベントの発生履歴の情報は、モ
ニター開始以降、あるいは、利用者がイベントリセット
を実行した以降のモニター対象FBの入出力イベント発
生回数のみであった。しかし、これは前記ステップ20
2でイベント発生履歴記憶部15に書き込む情報、およ
び、ステップ306でモニター結果表示部に表示する情
報を変更することにより、イベントの発生回数のみでは
なく発生の時系列の情報とすることができる。以下に時
系列の情報を表示するために、前記の実施例に追加して
実行する処理について説明する。
In the above description of the embodiment, the information of the event occurrence history displayed on the monitor screen is the input / output event of the monitored FB after the start of the monitor or after the user executes the event reset. Only the number of occurrences. However, this is the same as in step 20 above.
By changing the information to be written in the event occurrence history storage unit 15 in step 2 and the information to be displayed on the monitor result display unit in step 306, it is possible to obtain not only the number of occurrences of the event but also information of the time series of the occurrence. In the following, a description will be given of a process executed in addition to the above-described embodiment to display time-series information.

【0050】まず、イベント発生履歴記憶部15は、前
記、表2に実施例を示したようなモニター対象FBのイ
ベントについての発生回数のデータに加え、イベント名
とその発生時刻からなるデータを保持する。前記の「速
度設定器」FBをモニターする場合の、この発生時刻を
保持した結果の実施例を表6に示す。この、イベントの
発生時刻のデータは、前記のステップ202にてFBプ
ログラム実行管理部19が、前記のイベント発生回数の
更新と同時に実行し、モニター対象イベントの発生順に
順次追加する。
First, the event occurrence history storage unit 15 holds data including the event name and the time of occurrence, in addition to the data on the number of occurrences of the event of the monitoring target FB as shown in the embodiment in Table 2 above. I do. Table 6 shows an example of the result of holding the occurrence time when monitoring the "speed setting device" FB. The event occurrence time data is executed by the FB program execution management unit 19 in step 202 at the same time as the update of the event occurrence count, and is sequentially added in the order in which the monitored events occur.

【表6】 [Table 6]

【0051】次に、このイベントの発生時刻の情報は、
ステップ306にてFBプログラムモニター処理部13
がモニター結果表示部11にモニター対象のイベント毎
にタイムチャートとして表示する。前記の「速度設定
器」FBをモニターする場合について、モニター結果表
示部11に表示するタイムチャート、すなわち、イベン
ト発生履歴の表示画面の実施例11bを図7に示す。こ
の図に示すように、イベント発生履歴の表示画面では、
モニター対象FBのイベント毎に、発生した時刻にマー
カー150を表示する。
Next, information on the occurrence time of this event is as follows:
In step 306, the FB program monitor processing unit 13
Displays a time chart on the monitor result display unit 11 for each event to be monitored. FIG. 7 shows a time chart displayed on the monitor result display section 11, that is, an example 11b of a display screen of an event occurrence history in the case of monitoring the "speed setting device" FB. As shown in this figure, on the event occurrence history display screen,
For each event of the monitoring target FB, a marker 150 is displayed at the time of occurrence.

【0052】なお、イベントの発生時刻の情報をモニタ
ーする場合は、前記ステップ308にてFBプログラム
モニター処理部13がイベント発生履歴のクリアを実行
する時に、同時にイベント発生履歴記憶部15にて保持
する前記イベントの発生時刻の情報をクリアする。
When the information of the event occurrence time is monitored, when the FB program monitor processing section 13 executes the clearing of the event occurrence history in the step 308, the information is simultaneously stored in the event occurrence history storage section 15. Clear the information on the occurrence time of the event.

【0053】以上説明したように本実施の形態によれ
ば、FBプログラムの実行時において、利用者は、指定
したFBについてのイベントの発生履歴を表示装置にて
確認することができる。これは、本発明によりモニター
対象のFBの実行毎にその入出力イベントの発生履歴を
イベント発生履歴記憶部に書き込むと共に、この情報を
逐次表示装置に表示することにより実現されたものであ
る。この様に、モニター対象FBのイベントの発生履歴
をモニターすることにより、利用者は容易にイベント駆
動型制御プログラムのデバック・保守を行うことができ
る。たとえば、利用者は、あるFBが実行されたか否
か、あるいは、どの位の頻度でFBが実行されているの
か、さらには、どのイベントによりFBが起動されたか
などの情報を、このモニターにより容易に得ることがで
きるようになる。この様にイベント駆動型の制御プログ
ラムをFBで記述した制御ロジック、すなわち、実際に
実行される制御プログラムより抽象度の高いレベルでモ
ニターすることが可能となることにより、本発明の制御
プログラムの実行・モニター装置の利用者は、従来より
もより短い時間で、制御プログラムのデバック等を行う
ことができる。
As described above, according to the present embodiment, at the time of executing the FB program, the user can confirm the event occurrence history for the specified FB on the display device. This is realized by writing the input / output event occurrence history into the event occurrence history storage unit every time the FB to be monitored is executed according to the present invention, and sequentially displaying this information on the display device. As described above, by monitoring the event occurrence history of the monitoring target FB, the user can easily debug and maintain the event-driven control program. For example, the monitor makes it easy for the user to determine whether or not a certain FB has been executed, how frequently the FB has been executed, and which event has triggered the FB. You can get to. As described above, the event-driven control program can be monitored at a higher level of abstraction than the control logic described in the FB, that is, the control program actually executed. -The user of the monitor device can debug the control program in a shorter time than before.

【0054】発生履歴データとして、回数、時刻、タイ
ムチャート、等としたが、それ以外のデータ例もありう
る。尚、プラント制御例としたが、データ処理にも適用
できる。この場合、データ処理の実行の過程でのイベン
ト発生及びその追跡に利用できる。
Although the occurrence history data is the number of times, time, time chart, etc., other data examples are also possible. Although the example of the plant control has been described, the present invention can be applied to data processing. In this case, it can be used for event occurrence and tracking thereof during the execution of data processing.

【発明の効果】本発明によれば、イベント駆動型制御プ
ログラムの実行中にその実行状況をモニター可能になっ
た。
According to the present invention, the execution status of the event-driven control program can be monitored during execution.

【図面の簡単な説明】[Brief description of the drawings]

【図1】ブロック図である。FIG. 1 is a block diagram.

【図2】本発明の一実施形態を示す制御プログラムのモ
ニター装置の処理の流れを示すフローチャートである。
FIG. 2 is a flowchart illustrating a flow of processing of a monitor device of a control program according to an embodiment of the present invention.

【図3】本発明の一実施形態を示す制御プログラムのモ
ニター装置の処理の流れを示すフローチャートである。
FIG. 3 is a flowchart showing a process flow of a monitor device of a control program according to an embodiment of the present invention.

【図4】イベント駆動型FBを用いて記述した制御ロジ
ック図の例を示す図である。
FIG. 4 is a diagram illustrating an example of a control logic diagram described using an event-driven FB.

【図5】図4の例のFB素子による処理の詳細を示す図
である。
FIG. 5 is a diagram showing details of processing by the FB element in the example of FIG. 4;

【図6】表示画面の実施形態を示す図である。FIG. 6 is a diagram showing an embodiment of a display screen.

【図7】表示画面の実施形態を示す図である。FIG. 7 is a diagram showing an embodiment of a display screen.

【符号の説明】[Explanation of symbols]

1 制御プログラムの実行・モニター装置 2 プラント 11 モニター結果表示部 12 入力処理部 13 FBプログラムモニター処理部 14 FBプログラム記憶部 15 イベント発生履歴記憶部 16 モニター情報記憶部 17 信号データ記憶部 18 FBプログラム実行部 19 FBプログラム実行管理部 20 信号入出力処理部 100 FB素子 101,102 イベント信号 103,104,105 データ信号 106 内部状態 107 処理 120 操作ボタン 130 イベントモニター値 140 データモニター値 200〜204,300〜310 処理ステップ Reference Signs List 1 Control program execution / monitoring device 2 Plant 11 Monitor result display unit 12 Input processing unit 13 FB program monitor processing unit 14 FB program storage unit 15 Event occurrence history storage unit 16 Monitor information storage unit 17 Signal data storage unit 18 FB program execution Unit 19 FB program execution management unit 20 signal input / output processing unit 100 FB element 101, 102 event signal 103, 104, 105 data signal 106 internal state 107 processing 120 operation button 130 event monitor value 140 data monitor value 200 to 204, 300 to 310 processing steps

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 データ状態の変化に伴う1つ以上のイベ
ントの発生により起動されるイベント駆動型制御プログ
ラムの実行・モニター方法において、該制御プログラム
を起動するイベントを表す信号線により制御プログラム
間の関係を示すブロック図を表示装置に表示し、該ブロ
ック図に含まれるブロック素子に接続するイベント信号
線に対応するイベントの所定の時間内における発生回数
を記憶し、前記ブロック図の所定の位置に表示すること
を特徴とするイベント駆動型制御プログラムの実行・モ
ニター方法。
1. A method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in a data state. A block diagram showing the relationship is displayed on a display device, and the number of occurrences of an event corresponding to an event signal line connected to a block element included in the block diagram within a predetermined time is stored, and at a predetermined position in the block diagram. An execution / monitoring method of an event-driven control program characterized by displaying.
【請求項2】 データ状態の変化に伴う1つ以上のイベ
ントの発生により起動されるイベント駆動型制御プログ
ラムの実行・モニター方法において、該制御プログラム
を起動するイベントを表す信号線により制御プログラム
間の関係を示すブロック図を表示装置に表示し、該ブロ
ック図に含まれるブロック素子に接続するイベント信号
線に対応するイベントの発生履歴を記憶し、該記憶した
発生履歴をもとに前記表示するブロック素子に対応する
イベントの過去の発生状況を示すタイムチャートを表示
することを特徴とするイベント駆動型制御プログラムの
実行・モニター方法。
2. A method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in a data state. A block diagram showing the relationship is displayed on a display device, an event history corresponding to an event signal line connected to a block element included in the block diagram is stored, and the display is performed based on the stored occurrence history. A method of executing / monitoring an event-driven control program, characterized by displaying a time chart showing a past occurrence state of an event corresponding to an element.
【請求項3】 データ状態の変化に伴う1つ以上のイベ
ントの発生により起動されるイベント駆動型制御プログ
ラムの実行・モニター方法において、該制御プログラム
への入力、出力データを表す信号線により制御プログラ
ム間の関係を示すブロック図を表示装置に表示し、該ブ
ロック図に含まれるブロック素子に対応する制御プログ
ラムの起動時における入力データの値、および、該制御
プログラムの処理終了時の出力データの値を記憶し、前
記ブロック図の所定の位置に表示することを特徴とする
イベント駆動型制御プログラムの実行・モニター方法。
3. A method for executing / monitoring an event-driven control program which is started by the occurrence of one or more events accompanying a change in a data state, wherein the control program is controlled by a signal line representing input and output data to the control program. A block diagram showing the relationship between the two is displayed on the display device, and the value of input data at the start of the control program corresponding to the block element included in the block diagram and the value of output data at the end of processing of the control program And displaying it at a predetermined position in the block diagram.
【請求項4】 データ状態の変化に伴う1つ以上のイベ
ントの発生により起動されるイベント駆動型制御プログ
ラムの実行・モニター方法において、制御プログラムの
制御内容でグループ分けしたFBプログラムを記憶する
と共に、各FBプログラムに対応し、イベント入出力線
とデータ入出力線とを明示した、FB対応のブロック図
データを記憶する第1の手段と、発生するイベントに従
って制御プログラムを構成する第1の手段に記憶された
FBプログラムを起動し実行する第2の手段と、表示装
置とを備え、 モニター対象のFBプログラム及び関連情報を指定する
ステップと、 該指定FB対応のプログラム図データを第1の手段から
読み出し上記表示装置の画面上にブロック図として表示
するステップと、 第2の手段での制御プログラム実行中に発生したイベン
トが上記指定モニター対象のFBプログラムの起動イベ
ントであるかチェックし、この起動イベントを含む当該
FBプログラムに係わるイベントの発生履歴、及びこの
FBプログラムの実行中の入出力データを格納するステ
ップと、 該格納したイベントの発生履歴及び入出力データを取り
出し表示装置に表示中のブロック図の関連個所に表示す
るステップと、 を有するイベント駆動型制御プログラムの実行・モニタ
ー方法。
4. A method for executing / monitoring an event-driven control program activated by the occurrence of one or more events accompanying a change in a data state, the method comprising: storing an FB program grouped by control contents of the control program; First means for storing block diagram data corresponding to the FB, corresponding to each FB program and explicitly indicating an event input / output line and a data input / output line, and first means for configuring a control program according to an event to be generated. A second means for activating and executing the stored FB program; a display device; a step of designating the FB program to be monitored and related information; and a program figure data corresponding to the designated FB from the first means. Reading and displaying a block diagram on the screen of the display device; It is checked whether the event occurred during the execution of the FB program is a start event of the FB program to be specified and monitored, an occurrence history of an event relating to the FB program including the start event, and input / output data during execution of the FB program. And a step of extracting the stored event occurrence history and input / output data and displaying the data at a relevant portion of the block diagram being displayed on the display device, and executing and monitoring the event-driven control program.
【請求項5】 前記イベント発生履歴は、特定の制御プ
ログラムに関する発生イベントとその発生時刻を含むも
のとし、前記表示装置には、イベントの時系列を表示す
るものとしたことを特徴とする請求項4のイベント駆動
型制御プログラムの実行・モニター方法。
5. The event occurrence history includes an event related to a specific control program and an occurrence time thereof, and the display device displays a time series of the event. How to run and monitor event driven control programs.
【請求項6】 利用者が入力装置を介してイベント情報
をリセットするデータを入力した時に、前記イベント格
納するイベントに関する情報をクリアーする処理ステッ
プを有するものとしたことを特徴とする請求項4のイベ
ント駆動型制御プログラムの実行・モニター方法。
6. The method according to claim 4, further comprising the step of clearing information relating to the event stored in the event when the user inputs data for resetting the event information via an input device. How to execute and monitor event-driven control programs.
【請求項7】 データ状態の変化に伴う1つ以上のイベ
ントの発生による起動される、イベント駆動型制御プロ
グラムの実行・モニター装置において、該制御プログラ
ム、及びこのプログラムを起動するイベントを表す信号
線により制御プログラム間の関係を示すブロック図デー
タを保持する第1の記憶手段と、該ブロック図に含まれ
る特定のブロック素子に接続するイベント信号線に対応
するイベントの発生状況のデータを保持する第2の記憶
手段と、外部からの入力データに応じて、前記第1の記
憶手段からブロック図データを読込みブロック図を表示
し、かつ、該表示したブロック図に関連するイベントの
発生状況のデータを、前記第2の記憶手段から読込み、
表示中のブロック図の対応する位置に表示する手段を有
することを特徴とするイベント駆動型制御プログラムの
実行・モニター装置。
7. An event-driven control program execution / monitoring device which is started by the occurrence of one or more events accompanying a change in a data state, wherein the control program and a signal line representing an event for starting the program are provided. A first storage unit for storing block diagram data indicating a relationship between control programs, and a second storage unit for storing data of an occurrence state of an event corresponding to an event signal line connected to a specific block element included in the block diagram. A block diagram data is read from the first storage unit in accordance with input data from the outside and a block diagram is displayed, and data on an occurrence state of an event related to the displayed block diagram is stored. , Read from the second storage means,
An execution / monitoring device for an event-driven control program, comprising: means for displaying at a position corresponding to a block diagram being displayed.
【請求項8】 データ状態の変化に伴う1つ以上のイベ
ントの発生による起動される、イベント駆動型制御プロ
グラムの実行・モニター装置において、前記ブロック図
を表示する手段が、表示中のブロック図に関連するイベ
ントの発生状況のデータを、前記第2の記憶手段から読
込み、これをもとにして発生イベントとその発生時刻の
関係を示すタイムチャートを表示する機能を有すること
を特徴とする請求項7のイベント駆動型制御プログラム
の実行・モニター装置。
8. An apparatus for executing and monitoring an event-driven control program, which is activated by the occurrence of one or more events accompanying a change in data state, wherein the means for displaying the block diagram includes: A function of reading a data of an occurrence state of a related event from the second storage means and displaying a time chart showing a relation between the occurrence event and the occurrence time based on the data. 7. An event-driven control program execution / monitoring device.
【請求項9】 データ状態の変化に伴う1つ以上のイベ
ントの発生による起動される、イベント駆動型制御プロ
グラムの実行・モニター装置において、該制御プログラ
ム、及びこのプログラムを起動するイベントを表す信号
線により制御プログラム間の関係を示すブロック図デー
タを保持するFBプログラム記憶手段と、該制御プログ
ラムに基づき処理を実行する機能を有するFBプログラ
ム実行手段と、該制御プログラムの起動のタイミングを
与えるイベントの発生を検知し、これにより該制御プロ
グラムを前記FBプログラム実行手段で実行させるFB
プログラム実行管理手段と、制御プログラムの実行の結
果得られる出力データを保持する信号データ記憶手段
と、特定の制御プログラムの起動のきっかけとなるイベ
ントの発生状況を保持するイベント発生履歴記憶手段
と、該制御プログラムがイベントにより起動した時の入
力データの値と該イベントの情報を保持するモニター情
報記憶手段と、前記ブロック図および関連データを表示
する機能を有するモニター結果表示手段と、利用者から
の入力を処理する入力処理手段と、前記入力処理手段を
介して利用者が入力する前記制御プログラム、あるい
は、FBプログラムを特定する情報に応じて、前記モニ
ター結果表示手段に対応するブロック図、および、関連
データを表示する機能を有するFBプログラムモニター
処理手段を備えること特徴とするイベント駆動型制御プ
ログラムの実行・モニター装置。
9. An execution / monitoring device for an event-driven control program, which is activated by the occurrence of one or more events associated with a change in data state, and a signal line representing an event that activates the control program. FB program storage means for holding block diagram data indicating the relationship between control programs, FB program execution means having a function of executing processing based on the control program, and generation of an event giving the timing of starting the control program FB, whereby the control program is executed by the FB program execution means.
A program execution management means, a signal data storage means for holding output data obtained as a result of execution of the control program, an event occurrence history storage means for holding an occurrence state of an event which triggers activation of a specific control program, Monitor information storage means for holding the value of input data when the control program is started by an event and information on the event; monitor result display means having a function of displaying the block diagram and related data; input from a user Processing, and a block diagram corresponding to the monitor result display according to the control program input by the user via the input processing or information for specifying the FB program. FB program monitor processing means having a function of displaying data is provided. Execution and monitoring device for event-driven control program to.
【請求項10】 前記イベント発生履歴記憶手段に保持
する特定の制御プログラムに関するイベントの発生状況
のデータをクリアーする手段を有することを特徴とする
請求項イベント駆動型制御プログラムの実行・モニター
装置。
10. An execution / monitoring device for an event-driven control program, comprising: means for clearing data on the occurrence status of an event relating to a specific control program held in said event occurrence history storage means.
【請求項11】 前記モニター結果表示手段に表示する
ブロック図の入力データの値として、制御プログラム実
行時に用いた過去の値、あるいは、前記信号データ記憶
部に保持する現在の値、のうちどちらを表示するかを選
択する手段と、該選択する手段により現在の値が選択さ
れた時に、前記信号データ記憶部から制御プログラムに
関する入力データの値を抽出し、モニター結果表示手段
の対応する位置に表示する手段を有することを特徴とす
る請求項9のイベント駆動型制御プログラムの実行・モ
ニター装置。
11. The value of the input data of the block diagram displayed on the monitor result display means may be any one of a past value used at the time of execution of the control program or a current value held in the signal data storage unit. Means for selecting whether to display, and when the current value is selected by the selecting means, extracts the value of input data relating to the control program from the signal data storage unit and displays the value at a corresponding position on the monitor result display means 10. The apparatus for executing and monitoring an event-driven control program according to claim 9, further comprising means for executing.
【請求項12】 イベント駆動型制御プログラムにより
制御を実行するイベント駆動型制御プログラム実行装置
において、 制御プログラムの制御内容でグループ分けしたFBプロ
グラムを記憶する第1の手段と、 各FBプログラムに対応し、イベント入出力系路とデー
タ入出力系路を明示した、FB対応のブロック図データ
を記憶する第2の手段と、 発生するイベントに従って制御プログラムを構成する第
1の手段に記憶されたFBプログラムを起動し実行する
第3の手段と、 モニター対象のFBプログラムを指定する第4の手段
と、 該指定FB対応のブロック図データを第2の手段から読
み出し画面上にブロック図として表示する第5の手段
と、 第3の手段での制御プログラム実行中に発生したイベン
トが、第4の手段で指定したモニター対象のFBプログ
ラムの起動イベントであるか否かチェックし、この起動
イベントであれば、この起動イベントを含む当該FBプ
ログラムに係わるイベントの発生履歴、及びこのイベン
トで起動されたFBプログラムの実行中の入出力デー
タ、を格納させる第6の手段と、 指定内容に従って第6の手段での対応する情報を読み出
し関連個所に表示させる第7の手段と、 を備えるイベント駆動型制御プログラム実行モニター装
置。
12. An event-driven control program execution device for executing control by an event-driven control program, wherein the first means for storing FB programs grouped by the control content of the control program; Means for storing block diagram data corresponding to the FB, which explicitly specifies an event input / output path and a data input / output path, and an FB program stored in the first means for configuring a control program according to an event to be generated A third means for activating and executing the program; a fourth means for designating the FB program to be monitored; and a fifth means for reading the block diagram data corresponding to the designated FB from the second means and displaying the data as a block diagram on a screen. And an event generated during the execution of the control program by the third means is monitored by the monitor designated by the fourth means. -Check whether the event is an activation event of the target FB program, and if the event is an activation event, an occurrence history of an event relating to the FB program including the activation event, and the execution of the FB program activated by this event An event-driven control program execution monitor device, comprising: sixth means for storing the input / output data of the above; and seventh means for reading out the corresponding information in the sixth means in accordance with the designated contents and displaying the information at a relevant location.
JP2000036422A 2000-02-15 2000-02-15 Method and device for performing and monitoring event- driven control program Pending JP2001228916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000036422A JP2001228916A (en) 2000-02-15 2000-02-15 Method and device for performing and monitoring event- driven control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000036422A JP2001228916A (en) 2000-02-15 2000-02-15 Method and device for performing and monitoring event- driven control program

Publications (1)

Publication Number Publication Date
JP2001228916A true JP2001228916A (en) 2001-08-24

Family

ID=18560471

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000036422A Pending JP2001228916A (en) 2000-02-15 2000-02-15 Method and device for performing and monitoring event- driven control program

Country Status (1)

Country Link
JP (1) JP2001228916A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009146039A (en) * 2007-12-12 2009-07-02 Omron Corp Safety control system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009146039A (en) * 2007-12-12 2009-07-02 Omron Corp Safety control system

Similar Documents

Publication Publication Date Title
US6175206B1 (en) Robot information processor
JPH0561646B2 (en)
CN102246109B (en) Dynamic views in a modeling of an automation system
JPH10505179A (en) Graphic programming interface for machine / process control equipment with parameter pre-link configuration
JPH09509511A (en) Information display system for active redundant information process control.
JP2003256203A (en) System and method for developing automatic machine application program, program for executing the method and storage medium stored with the program
US20210004319A1 (en) Debugging an executable control flow graph that specifies control flow
US20110202496A1 (en) Method, apparatus or software for construction of rules for use in a complex event processing system
CN110795071A (en) User interface design and code separation method supporting real-time data dynamic binding
JP2013073510A (en) Monitoring control system, comment information registration method for monitoring control system and comment information registration program for monitoring control system
JP5014370B2 (en) Plant monitoring and control system
JP2001228916A (en) Method and device for performing and monitoring event- driven control program
JP7352152B2 (en) Information processing systems, programmable displays, and information processing equipment
CN111324088B (en) Information processing apparatus
JP2005527887A (en) Generation method of automation program
AU2006336766B2 (en) Plant control system
JP3402446B2 (en) Monitor device for programmable controller
JP2000075919A (en) Method and device for defining man-machine screen representing transition state
JP2001005517A (en) Monitor method for control program and its device
JP2003529835A (en) Control method, control device, and control software for mechanism and technical system
JP2770228B2 (en) Knowledge-based plant information processing system
CN114518734B (en) Control model integration method, device and medium thereof
WO2023112772A1 (en) Robot programming assistance device, robot programming assistance program, and robot programming assistance method
JP3857576B2 (en) Polymer material design system and polymer material design program
JPH0950371A (en) Device and method for program generation support

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050705

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050902

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20051004