JPH11282721A - Method and device for monitoring sequence program - Google Patents

Method and device for monitoring sequence program

Info

Publication number
JPH11282721A
JPH11282721A JP10079413A JP7941398A JPH11282721A JP H11282721 A JPH11282721 A JP H11282721A JP 10079413 A JP10079413 A JP 10079413A JP 7941398 A JP7941398 A JP 7941398A JP H11282721 A JPH11282721 A JP H11282721A
Authority
JP
Japan
Prior art keywords
sequence program
cycle
token
sequence
program
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
JP10079413A
Other languages
Japanese (ja)
Inventor
Masahiro Koyama
昌宏 小山
Kenjiro Fujii
健二郎 藤井
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 JP10079413A priority Critical patent/JPH11282721A/en
Publication of JPH11282721A publication Critical patent/JPH11282721A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To simply discriminate the execution route of a sequence program in each cycle without needing user's labor by performing display in a step that is currently executed and also performing display that can be visually distinguished in steps that are passed in the past in each cycle. SOLUTION: For instance, steps S100, S101, S105 and S107 represent pass steps which are already executed and a step S104 represents a step which is currently executed. A light color token is shown in the steps S100, S101, S105 and S107, a dark color token is shown in the step S104 that is now executed and for example, the light color token is light red and the dark color token is dark red. Thus, the steps S100, S101, S105 and S107 are distinguished from the step S104 that is now executed by the color tone of a token and the execution route of a sequence can be intuitively confirmed by such a manner that the steps S100, S101, S105 and S107 also remain their token display.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、自動化装置のプロ
グラムのモニタ方法に係り、特に、SFC(シーケンシ
ャル・ファンクション・チャート)で記述されたシーケ
ンスプログラム(以下、SFCプログラム)の実行状態
をモニタする方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of monitoring a program of an automation device, and more particularly to a method of monitoring an execution state of a sequence program (hereinafter, an SFC program) described in an SFC (Sequential Function Chart). About.

【0002】[0002]

【従来の技術】従来のSFCプログラムのモニタ方法に
関する第1の公知例としては、「プログラマブルコント
ローラの新しいプログラミングテクニック」(近代図
書、1994年)のPP.129−131に記載されて
いるSFCプログラムのモニタ方法が挙げられる。この
公知例には、現在実行中のステップにのみトークンを表
示する方法が述べられている。
2. Description of the Related Art A first known example of a conventional monitoring method of an SFC program is disclosed in "New Programming Techniques for Programmable Controllers" (Modern Book, 1994), PP. 129-131. This known example describes a method of displaying a token only in a currently executing step.

【0003】また、第2の公知例として、特開平5−3
41819号公報に記載されているSFCプログラムの
デバッグ方法が挙げられる。この公知例には、ステップ
の実行履歴をルートテーブルとして記憶して、これを予
め作成しておいた正常ルートテーブルと比較すること
で、SFCプログラムをデバッグする方法が述べられて
いる。
A second known example is disclosed in Japanese Patent Laid-Open No.
There is a debugging method of an SFC program described in Japanese Patent No. 41819. This known example describes a method of debugging an SFC program by storing a step execution history as a route table and comparing it with a normal route table created in advance.

【0004】さらに、第3の公知例として、特開平4−
335404号公報に記載されているシーケンスプログ
ラムのデバッグ方法が挙げられる。この公知例には、現
在実行されているステップを第1の表示パターンで表示
し、既に実行されたステップを第2の表示パターンで表
示する方法が述べられている。
Further, as a third known example, Japanese Patent Laid-Open No.
There is a method of debugging a sequence program described in JP-A-335404. This known example describes a method of displaying a currently executed step in a first display pattern and displaying already executed steps in a second display pattern.

【0005】[0005]

【発明が解決しようとする課題】上記第1の公知例で
は、現在実行中のステップにのみトークンを表示してい
たため、状態の遷移が速いとき、すなわちトークンの移
動が速いときに、ステップの実行状態を目視で追うこと
が困難になり、実行状態を把握しづらくなるという問題
がある。また、上記第2の公知例では、シーケンスが複
雑で、サイクル毎にトークンの通るルートが変化すると
き、正常ルートテーブルを予め作成する作業にかなりの
手間を必要とするという問題がある。また、上記第3の
公知例では、既に実行されたステップにも表示を残すこ
とにより、未実行のステップを一目で確認できるが、サ
イクル毎の実行ルートを区別できないので、所定のサイ
クルで正しい実行ルートを通過したのかどうかを確認で
きないという問題がある。
In the first known example, since the token is displayed only in the currently executing step, when the state transition is fast, that is, when the token moves fast, the step is executed. There is a problem that it is difficult to visually follow the state, and it is difficult to grasp the execution state. Further, in the second known example, there is a problem that the sequence is complicated, and when a route through which a token passes changes in each cycle, it takes a considerable amount of time to prepare a normal route table in advance. Also, in the third known example, by leaving a display on the already executed steps, the unexecuted steps can be checked at a glance, but the execution route for each cycle cannot be distinguished, so that the correct execution in a predetermined cycle is not possible. There is a problem that it is not possible to confirm whether the vehicle has passed the route.

【0006】そこで、本発明では、現在実行中のステッ
プに表示を行うとともに、過去に通過したステップにも
サイクル毎に目視で区別できる表示を行うことにより、
シーケンスプログラムのサイクル毎の実行ルートを簡単
に判別できるモニタ方法およびそのようなモニタ装置を
提供することを課題とする。
Accordingly, in the present invention, a display is made at the step currently being executed, and a display that can be visually distinguished for each cycle at the step passed in the past is provided.
An object of the present invention is to provide a monitoring method and such a monitoring device that can easily determine an execution route for each cycle of a sequence program.

【0007】[0007]

【課題を解決するための手段】上記課題を達成するた
め、本発明は、シーケンスプログラムの実行状態をモニ
タするためのシーケンスプログラムのモニタ方法におい
て、シーケンスプログラムのフローをステップ単位で表
示し、そのフロー上で、現在実行中のステップを目視で
識別可能なように表示するとともに、過去に通過したス
テップに対してもその各ステップがシーケンスプログラ
ムの何サイクル目に通過したかを目視で識別可能なよう
に表示することを特徴とするシーケンスプログラムのモ
ニタ方法を開示する。
According to the present invention, there is provided a method of monitoring a sequence program for monitoring the execution state of a sequence program, the method comprising the steps of: displaying a sequence program flow in units of steps; Above, the currently executing step is displayed so as to be visually identifiable, and it is also possible to visually identify in what cycle of the sequence program each step has passed for the past step. A method for monitoring a sequence program, which is displayed on the monitor, is disclosed.

【0008】また、本発明は、前記現在実行中のステッ
プの表示及び前記過去に通過したステップのサイクル別
の表示は、各ステップに付した記号の色調、大きさ、ま
たは形状の少なくとも1つが異なることによって識別可
能にすることを特徴とするシーケンスプログラムのモニ
タ方法を開示する。
In the present invention, the display of the currently executed step and the display of the step that has passed in the past for each cycle are different in at least one of the color tone, size, or shape of the symbol attached to each step. A method for monitoring a sequence program, characterized in that the sequence program can be identified by the above method.

【0009】また、本発明は、前記シーケンスプログラ
ムがSFCプログラムであり、前記記号がトークンであ
ることを特徴とするシーケンスプログラムのモニタ方法
を開示する。
[0009] The present invention also discloses a method of monitoring a sequence program, wherein the sequence program is an SFC program, and the symbol is a token.

【0010】また、本発明は、前記現在実行中のステッ
プ及び前記過去に通過したステップの各々に対して、そ
のステップが何サイクル目に実行されたかを示すサイク
ルカウントを表示可能としたことを特徴とするシーケン
スプログラムのモニタ方法を開示する。
[0010] In the present invention, a cycle count indicating which cycle the step is executed can be displayed for each of the currently executed step and the past step. A method of monitoring a sequence program is disclosed.

【0011】さらに、本発明は、シーケンスプログラム
の実行状態をモニタするためのシーケンスプログラムの
モニタ装置において、シーケンスプログラムをあらかじ
め記憶しておくシーケンスプログラム記憶手段と、該シ
ーケンスプログラム記憶手段に記憶されたシーケンスプ
ログラムの流れをステップ単位に表示するためのシーケ
ンス表示手段と、該シーケンス表示手段が表示する流れ
の中で、現在実行中のステップに対して目視で識別可能
なように表示するための現行ステップ表示手段と、前記
シーケンス表示手段が表示する流れの中で、過去に通過
したステップに対してその各ステップがシーケンスプロ
グラムの何サイクル目に通過したかを目視で識別可能な
ように表示するための通過ステップ表示手段と、を具備
することを特徴とするシーケンスプログラムのモニタ装
置を開示する。
Further, the present invention relates to a sequence program monitoring device for monitoring the execution state of a sequence program, wherein the sequence program storage means for storing the sequence program in advance, and the sequence program stored in the sequence program storage means. Sequence display means for displaying the flow of the program in steps, and current step display for displaying the currently executed step in the flow displayed by the sequence display means so as to be visually identified. Means, and a passage for displaying in a sequence displayed by the sequence display means, a step which has passed in the past so that each step has passed in the sequence program so that it can be visually identified. And step display means. It discloses a monitor device of a sequence program that.

【0012】[0012]

【発明の実施の形態】以下、添付図面を参照して、本発
明を適用した実施の形態について説明する。図1は、本
発明を適用した制御装置と本発明のプログラムモニタ装
置の構成例を示すブロック図である。制御装置101
は、従来のプログラマブルコントローラと同一構成を有
する。演算部101aは、シーケンスプログラム解釈実
行手順記憶部101dに格納された解釈手順にしたが
い、シーケンスプログラム記憶部101eに格納された
シーケンスプログラムを読み出し、その命令を解釈し、
命令にしたがって入力部101bからデータを取り込
み、演算して、その結果を出力部101cに出力する処
理を行う。ここで、シーケンスプログラムはSFCなど
で記述されたプログラムであり、実行ステップ記憶部1
01fには、プログラムのどのステップが現在実行され
ているかを示すステップ番号が格納されている。また、
通信制御部101gは、モニタ装置102との通信を行
うための手段であり、シーケンスプログラムのダウンロ
ード、実行ステップ番号などのデータの転送を可能とす
る。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 1 is a block diagram showing a configuration example of a control device to which the present invention is applied and a program monitor device of the present invention. Control device 101
Has the same configuration as a conventional programmable controller. The operation unit 101a reads the sequence program stored in the sequence program storage unit 101e according to the interpretation procedure stored in the sequence program interpretation execution procedure storage unit 101d, interprets the instruction,
According to the instruction, data is input from the input unit 101b, processed, and the result is output to the output unit 101c. Here, the sequence program is a program described in SFC or the like, and the execution step storage unit 1
01f stores a step number indicating which step of the program is currently being executed. Also,
The communication control unit 101g is a unit for performing communication with the monitor device 102, and enables downloading of a sequence program and transfer of data such as an execution step number.

【0013】モニタ装置102は、制御装置101専用
の周辺機器であるか、あるいは汎用のパーソナルコンピ
ュータなどである。演算部102aは、シーケンスプロ
グラムモニタ手順記憶部102dに格納された手順にし
たがい、シーケンスプログラム記憶部102eに格納さ
れたプログラム(シーケンスプログラム記憶部101e
に格納されたプログラムと同一内容を含むもの)の制御
装置101における実行状態をモニタする。このとき、
通信制御部102gによって、制御装置101の実行ス
テップ記憶部101fに格納されたステップ番号を取得
し、これを表示部102cからの表示内容に反映させ
る。操作部102bでは、モニタ方法の切り替えなどを
入力する。
The monitor device 102 is a peripheral device dedicated to the control device 101 or a general-purpose personal computer. The arithmetic unit 102a executes the program (sequence program storage unit 101e) stored in the sequence program storage unit 102e according to the procedure stored in the sequence program monitoring procedure storage unit 102d.
Monitor the execution state of the control device 101 (which includes the same contents as the program stored in the control device 101). At this time,
The communication control unit 102g acquires the step number stored in the execution step storage unit 101f of the control device 101, and reflects the acquired step number on the display content from the display unit 102c. In the operation unit 102b, switching of a monitoring method and the like are input.

【0014】図2は、SFCプログラムの例を示す。S
FCは、ステップ201aと、トランジション201b
と、このステップ201aとトランジション201bを
相互接続する有向接続線201cの各要素から構成され
ている。また、ステップ201aは、そのステップに唯
一に割り付けられたステップ番号(S101など)を有
し、そのステップにおける実行処理を示すアクション
(図示せず)を伴う。トランジション201bは、前の
ステップから次のステップへのトランジション条件(図
示せず)を伴う。なお、アクションとトランジション条
件は、何らかのプログラミング言語(例えば、ラダー図
など)で記述される。
FIG. 2 shows an example of the SFC program. S
The FC comprises a step 201a and a transition 201b
And a directed connection line 201c interconnecting the step 201a and the transition 201b. Step 201a has a step number (such as S101) uniquely assigned to the step, and is accompanied by an action (not shown) indicating an execution process in that step. Transition 201b involves a transition condition (not shown) from the previous step to the next step. Note that the action and the transition condition are described in some programming language (for example, a ladder diagram).

【0015】一般にSFCプログラムは、同時動作が可
能な複数のシーケンス単位から構成されており、これを
ユニットと呼ぶことにする。このように同時動作可能な
シーケンスをユニットとして分割し、記述することで、
各ユニットの現在実行中のステップは唯一に決定され
る。図2は、SFCの2つのユニットをそれぞれ別のウ
ィンドウ201、202に表示した例を示しており、本
実施の形態のモニタ装置102でも、このようにモニタ
の対象となるSFCのユニットをそれぞれ別のウィンド
ウに表示することができる。なお、各ウィンドウをスク
ロールすることで、SFCの表示範囲を移動できるもの
とする。
In general, an SFC program is composed of a plurality of sequence units that can operate simultaneously, and these are called units. By dividing a sequence that can operate simultaneously as a unit and describing it,
The currently executing step of each unit is uniquely determined. FIG. 2 shows an example in which two units of the SFC are displayed in separate windows 201 and 202, respectively. In the monitor device 102 of the present embodiment, the units of the SFC to be monitored are separated from each other. Window. The display range of the SFC can be moved by scrolling each window.

【0016】図3は、前記第1の公知例におけるSFC
プログラムのモニタ方法の表示例を示している。この図
では、それぞれのウィンドウ201、202に表示され
たSFCのユニットの現在実行中のステップにトークン
(ハッチングを施した円形の記号)301、302が表
示されている。このようにSFCプログラムの実行状態
の推移は、各ユニットにおけるトークンの移動としてモ
ニタできる。しかし、この第1の公知例では、現在実行
中のステップにのみトークンを表示していたため、状態
の遷移が速いとき、すなわちトークンの移動が速いと
き、ステップの実行状態を目視で追うことが困難にな
り、実行状態を把握しづらくなるという問題点があっ
た。
FIG. 3 shows an SFC in the first known example.
9 shows a display example of a program monitoring method. In this figure, tokens (hatched circular symbols) 301 and 302 are displayed in the currently executing steps of the SFC unit displayed in the windows 201 and 202, respectively. Thus, the transition of the execution state of the SFC program can be monitored as the movement of the token in each unit. However, in the first known example, since the token is displayed only in the currently executing step, it is difficult to visually follow the execution state of the step when the state transition is fast, that is, when the token moves fast. And it becomes difficult to grasp the execution state.

【0017】図4は、前記第2の公知例におけるルート
テーブルの例を示す。この公知例では、SFCプログラ
ムのモニタを開始すると、実行ステップ番号402の履
歴がルートテーブルに記憶される。また、一般的にSF
Cプログラムでは何種類かのループが繰り返し実行され
ることが多いので、このループを1サイクルとし、モニ
タ開始後何サイクル目を実行しているのかをサイクルカ
ウント401として記憶する。なお、図4は、図2また
は図3に示したウィンドウ201に表示されたSFCの
ユニットの実行状態をモニタしたものであり、ステップ
S104を各サイクルの終点(以下、サイクルエンド)
としてサイクルカウント401を計算している。すなわ
ち、サイクルカウント401の初期値を1とし、これに
ステップS104に到達した回数を加算してサイクルカ
ウント401に記憶している。通常、SFCのどのステ
ップがサイクルエンドになるのかは必ずしも記述されな
いので、モニタを開始する際にサイクルエンドに相当す
るステップを指定することになる。図4のルートテーブ
ルを作成する際にも、ステップS104がサイクルエン
ドであることを指定したものとする。このように作成し
たルートテーブルを予め作成しておいた正常ルートテー
ブルと比較することにより、SFCプログラムをデバッ
グすることができる。しかし、この第2の公知例では、
シーケンスが複雑でサイクル毎にトークンの通るルート
が変化するとき、正常ルートテーブルを予め作成する作
業にかなりの手間を要するという問題があった。
FIG. 4 shows an example of a route table in the second known example. In this known example, when the monitoring of the SFC program is started, the history of the execution step number 402 is stored in the route table. In general, SF
Since many types of loops are repeatedly executed in the C program, this loop is defined as one cycle, and the number of cycles executed after the start of monitoring is stored as a cycle count 401. FIG. 4 is a diagram in which the execution state of the SFC unit displayed in the window 201 shown in FIG. 2 or 3 is monitored, and step S104 is defined as the end point of each cycle (hereinafter, cycle end).
And the cycle count 401 is calculated. That is, the initial value of the cycle count 401 is set to 1, and the number of times of reaching the step S104 is added to the initial value and stored in the cycle count 401. Normally, it is not always described which step of the SFC is the cycle end, so that when monitoring is started, a step corresponding to the cycle end is specified. It is assumed that when the route table of FIG. 4 is created, it is specified that step S104 is the cycle end. The SFC program can be debugged by comparing the route table thus created with a normal route table created in advance. However, in this second known example,
When the sequence is complicated and the route through which the token passes changes in each cycle, there is a problem that the work of preparing the normal route table in advance requires a considerable amount of time.

【0018】図6は、本発明のSFCプログラムのモニ
タ方法による表示の一例を示す。この図では、図4のル
ートテーブルに示した1サイクル目の実行状態を示すも
のであり、ステップS100、S101、S105、S
107が既に実行したステップ(以下、通過ステッ
プ)、ステップS104が現在実行中のステップを示
す。通過ステップのそれぞれには淡色のトークン601
(図中、ハッチングを施した円形の記号)が表示され、
実行中のステップには濃色のトークン602(図中、ク
ロスハッチングを施した円形の記号)が表示されてい
る。実際の表示では、例えば、淡色のトークン601は
淡い赤色、濃色のトークン602は濃い赤色となるよう
にする。このように通過ステップと実行中のステップと
をトークンの色調(ここでは色の濃度)で区別し、通過
ステップにもトークンの表示を残すことで、シーケンス
の実行ルートを直感的に確認することができる。すなわ
ち、トークンの移動が速いときや、シーケンスの分岐が
多く、サイクル毎に実行ルートが変化するようなときで
も、トークンの動きを目視で追うことができ、プログラ
ムの実行状態も容易に把握することができる。なお、前
記第3の公知例における表示方法でも、1サイクル目ま
での表示は、図6の表示とほぼ同じになる。
FIG. 6 shows an example of a display according to the SFC program monitoring method of the present invention. In this figure, the execution state of the first cycle shown in the route table of FIG. 4 is shown, and steps S100, S101, S105, S
Step 107 indicates a step that has already been executed (hereinafter, a passing step), and step S104 indicates a step that is currently being executed. Each passing step has a light token 601
(The hatched circle symbol in the figure) is displayed,
A dark token 602 (a cross-hatched circular symbol in the figure) is displayed in the step being executed. In an actual display, for example, the light token 601 is set to light red, and the dark token 602 is set to dark red. In this way, the passing step and the step being executed are distinguished by the tone of the token (here, the color density), and the token is also displayed in the passing step, so that the execution route of the sequence can be checked intuitively. it can. In other words, even when the token moves quickly or when the sequence branches frequently and the execution route changes every cycle, the movement of the token can be tracked visually, and the execution state of the program can be easily grasped. Can be. In the display method in the third known example, the display up to the first cycle is almost the same as the display in FIG.

【0019】図7は、本発明のSFCプログラムのモニ
タ方法による別の表示例を示す。この図では、図4のル
ートテーブルに示した2サイクル目までの実行状態を示
すものであり、ステップS100、S101、S10
5、S107、S104が1サイクル目の通過ステッ
プ、ステップS101、S108が2サイクル目に既に
通過したステップ、ステップS104が現在実行中のス
テップを示す。1サイクル目の通過ステップのそれぞれ
には淡色のトークン601(図中、斜線のハッチングを
施した円形の記号)が表示され、2サイクル目の通過ス
テップのそれぞれにはトークン601と別の淡色のトー
クン701(図中、横線のハッチングを施した円形の記
号)が表示され、実行中のステップには濃色のトークン
702(図中、縦横線のクロスハッチングを施した円形
の記号)が表示されている。ただしステップS101
は、1サイクル目、2サイクル目でともに実行されてい
るが、このようなときはより新しく実行された方のサイ
クルを表すようにしている。そして実際の表示では、例
えば、淡色のトークン601は淡い青色、淡色のトーク
ン701は淡い緑色、濃色のトークン702は濃い緑色
となる。このように通過ステップと実行中ステップをト
ークンの色調で区別し、さらにサイクル毎の通過ステッ
プも色調で区別することで、サイクル毎の実行ルートを
直感的に確認できる。すなわち、トークンの移動が速い
ときや、シーケンスのサイクル毎に実行ルートが変化す
るときでも、トークンの動きを目視で追うことができ、
サイクル毎のプログラムの実行状態も容易に把握でき
る。なお、サイクル毎のトークン色の一覧はトークン色
のリファレンス704として表示されるものとする。
FIG. 7 shows another display example according to the SFC program monitoring method of the present invention. In this figure, the execution state up to the second cycle shown in the route table of FIG. 4 is shown, and steps S100, S101, S10
5, S107 and S104 indicate the first cycle passing steps, steps S101 and S108 indicate the steps already passed in the second cycle, and step S104 indicates the currently executing step. A light-colored token 601 (indicated by a hatched circle in the figure) is displayed in each of the first cycle passing steps, and a different light-colored token from the token 601 is displayed in each of the second cycle passing steps. 701 (a circular symbol with horizontal hatching in the figure) is displayed, and a dark token 702 (a circular symbol with vertical and horizontal cross-hatching in the figure) is displayed in the step being executed. I have. However, step S101
Are executed in the first cycle and the second cycle, but in such a case, the cycle executed more recently is indicated. In actual display, for example, the light token 601 is light blue, the light token 701 is light green, and the dark token 702 is dark green. In this way, the passing step and the executing step are distinguished by the tone of the token, and the passing step of each cycle is also distinguished by the tone, so that the execution route for each cycle can be intuitively confirmed. That is, even when the movement of the token is fast or the execution route changes in each cycle of the sequence, the movement of the token can be visually followed,
The execution state of the program for each cycle can be easily grasped. Note that a list of token colors for each cycle is displayed as a token color reference 704.

【0020】このような表示を行うためには、先に述べ
たサイクルカウントを計算するため、SFCのユニット
のサイクルエンドをモニタ開始の際に指定しておく必要
がある。図7の場合、ステップS104がサイクルエン
ドとなるので、モニタ開始の際に、ステップS104が
サイクルエンドであることを指定する。このとき、図7
のステップS104の左横に、このステップがサイクル
エンドであることを示す記号(塗りつぶした三角形の記
号)703が表示される。このようにサイクルエンドを
指定しておけば、サイクル毎の通過ステップのトークン
色を変えて表示することができる。
In order to perform such display, it is necessary to designate the cycle end of the SFC unit at the start of monitoring in order to calculate the cycle count described above. In the case of FIG. 7, since step S104 is the cycle end, it is specified that step S104 is the cycle end at the time of starting the monitoring. At this time, FIG.
A symbol (filled triangle symbol) 703 indicating that this step is the cycle end is displayed on the left side of step S104. If the cycle end is designated in this way, the token color of the passing step for each cycle can be changed and displayed.

【0021】図8は、サイクルカウントに応じたトーク
ン色を例を示す。この図では、過去6サイクルの通過ス
テップを判別できるように、6組の濃淡のトークン色を
定義している。すなわち、サイクルカウントを6で割っ
た余り801に応じて、実行中ステップのトークン色8
02と通過ステップのトークン色803が決まる。な
お、それぞれのトークン色は色番号によって区別される
ものとする。
FIG. 8 shows an example of a token color according to the cycle count. In this figure, six sets of dark and light token colors are defined so that the passage steps of the past six cycles can be determined. In other words, according to the remainder 801 obtained by dividing the cycle count by 6, the token color 8
02 and the token color 803 of the passage step are determined. Note that each token color is distinguished by a color number.

【0022】図10は、図7の表示例に示したSFCプ
ログラムのモニタ方法を実現するための処理フローを示
す。なお、この処理フローをソフトウェア化したもの
が、モニタ装置102のシーケンスプログラムモニタ手
順記憶部102dに格納される。この処理フローは、複
数のユニットから構成されるシーケンスに対応してお
り、まず、モニタ処理をスタートすると、全トークンの
表示をクリアし(処理1000)、ユニットUN(UN
=1〜UMAX,UMAX:ユニット数)のサイクルカ
ウントCN(UN)を1に初期化し(処理1001)、
さらに、ユニットUNの現ステップ番号SN(UN)及
び前ステップ番号LSN(UN)をそれぞれ0に初期化
する(処理1002)。次いでユニット番号UNを1に
初期化し(処理1003)、ユニットUNを表示するウ
ィンドウの有無を調べる(処理1004)。ユニットU
Nを表示するウインドウが存在すれば(処理1004で
“YES”)、ユニットUNの現ステップ番号SN(U
N)を取得する(処理1005)。ここで取得したデー
タSN(UN)は、モニタ装置102の実行ステップ記
憶部102fに格納される。この現ステップ番号SN
(UN)が0より大きく、かつ前ステップ番号LSN
(UN)と異なれば(処理1006で“YES”)、図8
に示したようなサイクルカウントに応じた実行中ステッ
プのトークン色(濃色)の色番号COLと通過ステップ
のトークン色(淡色)の色番号LCOLを計算する(処
理1007)。
FIG. 10 shows a processing flow for realizing the method of monitoring the SFC program shown in the display example of FIG. A software version of this processing flow is stored in the sequence program monitoring procedure storage unit 102d of the monitor device 102. This processing flow corresponds to a sequence composed of a plurality of units. First, when the monitoring processing is started, the display of all tokens is cleared (processing 1000), and the unit UN (UN
= 1 to UMAX, UMAX: number of units), the cycle count CN (UN) is initialized to 1 (process 1001).
Further, the current step number SN (UN) and the previous step number LSN (UN) of the unit UN are each initialized to 0 (process 1002). Next, the unit number UN is initialized to 1 (process 1003), and it is checked whether there is a window for displaying the unit UN (process 1004). Unit U
If there is a window displaying N ("YES" in step 1004), the current step number SN (U
N) is acquired (process 1005). The data SN (UN) acquired here is stored in the execution step storage unit 102f of the monitor device 102. This current step number SN
(UN) is greater than 0 and the previous step number LSN
If it is different from (UN) (“YES” in the processing 1006), FIG.
Then, the color number COL of the token color (dark color) of the executing step and the color number LCOL of the token color (light color) of the passing step according to the cycle count as shown in (1) are calculated (process 1007).

【0023】さらに、ステップLSN(UN)に通過ス
テップであることを示す淡色(色番号LCOL)のトー
クンを表示し(処理1008)、ステップSN(UN)
に現在実行中のステップを示す濃色(色番号COL)の
トークンを表示する(処理1009)。さらに、前ステ
ップ番号LSN(UN)に現ステップ番号SN(UN)
を代入し、前ステップ番号LSN(UN)を更新する
(処理1010)。また、現ステップ番号SN(UN)
が上述のように指定されたサイクルエンドのステップ番
号に等しければ(処理1011)、サイクルカウントC
N(UN)に1を加算する(処理1012)。また、現
ステップ番号SN(UN)がサイクルエンドのステップ
番号と異なれば(処理1011で“NO”)、サイクルカ
ウントCN(UN)を更新しない。また、現ステップ番
号SN(UN)が0、または前ステップ番号LSN(U
N)と同じならば(処理1006で“NO”)、処理10
07から処理1012までの処理をスキップする。ま
た、ユニットUNを表示するウィンドウが存在しないな
らば(処理1004で“NO”)、処理1005から処理
1012までの処理をスキップする。こうして処理10
13へ移り、ユニット番号UNとその最大値UMAXを
比較し、ユニット番号UNの方が小さいならば(処理1
013で“YES”)、UNに1を加算し(処理101
4)、ユニット番号UNがUMAXと等しければ(処理
1013で“NO”)、UNを1に戻す(処理101
5)。最後にモニタ終了でなければ、処理1004に戻
って同様の処理を繰り返す(処理1016)。
Further, a light-colored (color number LCOL) token indicating the passing step is displayed in step LSN (UN) (processing 1008), and step SN (UN)
A token of a dark color (color number COL) indicating the currently executed step is displayed (process 1009). Further, the current step number SN (UN) is added to the previous step number LSN (UN).
Is substituted, and the previous step number LSN (UN) is updated (process 1010). Also, the current step number SN (UN)
Is equal to the cycle end step number specified as described above (process 1011), the cycle count C
One is added to N (UN) (process 1012). If the current step number SN (UN) is different from the cycle end step number ("NO" in step 1011), the cycle count CN (UN) is not updated. Also, the current step number SN (UN) is 0 or the previous step number LSN (U
N) ("NO" in step 1006),
The processing from 07 to 1012 is skipped. If there is no window displaying the unit UN (“NO” in step 1004), the processing from step 1005 to step 1012 is skipped. Thus processing 10
13 and compares the unit number UN with its maximum value UMAX. If the unit number UN is smaller (processing 1
"YES" at 013), and 1 is added to UN (processing 101
4) If the unit number UN is equal to UMAX ("NO" in step 1013), the UN is returned to 1 (step 101).
5). Finally, if the monitoring is not completed, the process returns to the process 1004 to repeat the same process (process 1016).

【0024】図5は、図1示したモニタ装置102の実
行ステップ記憶部102fのデータ構造を示す。実行ス
テップ記憶部102fには、ユニット番号501(U
N)に応じた現ステップ番号502(SN(UN))、
前ステップ番号503(LSN(UN))、サイクルエ
ンドのステップ番号504、サイクルカウント505
(CN(UN))が記憶されており、これらの情報に基
づいて図10の処理が実現される。
FIG. 5 shows the data structure of the execution step storage unit 102f of the monitor device 102 shown in FIG. The execution step storage unit 102f stores the unit number 501 (U
N) corresponding to the current step number 502 (SN (UN)),
Previous step number 503 (LSN (UN)), cycle end step number 504, cycle count 505
(CN (UN)) is stored, and the processing in FIG. 10 is realized based on the information.

【0025】なお、本実施の形態では、通過ステップと
実行中ステップをトークンの色調(色の濃度)により区
別するシーケンスプログラムのモニタ方法を説明した
が、別の実施の形態として、トークンの大きさや形状な
どにより、通過ステップと実行中ステップを区別する方
法も同様にして可能である。また、トークンを用いず
に、各ステップを表す矩形ブロックそのものに着色を行
ったり、矩形ブロックの大きさを変えたり、多重の枠で
囲まれた矩形ブロックを用いたりすることも可能であ
る。
In the present embodiment, a method of monitoring a sequence program in which the passing step and the executing step are distinguished by the tone (color density) of the token has been described. A method for distinguishing a passing step from an executing step based on a shape or the like is also possible. Instead of using the token, it is also possible to color the rectangular block itself representing each step, change the size of the rectangular block, or use a rectangular block surrounded by multiple frames.

【0026】また、別の実施の形態として、図6や図7
に示したトークンにサイクルカウントの数値を付記した
表示を用いる方法も可能である。図9は、図7の表示に
サイクルカウントの数値を付記したモニタ方法の表示の
一例を示す。図9の表示の例では、注目したいステップ
S101にポインタ901をあわせると、そのステップ
に表示されているトークン701の右横に、そのステッ
プを通過したサイクルのサイクルカウント履歴902が
表示されている。例えば、サイクルカウント履歴902
「1,2,3」は、1サイクル目、2サイクル目、3サ
イクル目においてステップS101を通過したことを示
す。このようなサイクルカウント履歴902を表示する
ことにより、サイクル毎の実行ルートをより容易に確認
することができる。
FIGS. 6 and 7 show another embodiment.
It is also possible to use a display in which the token shown in FIG. FIG. 9 shows an example of the display of the monitoring method in which the value of the cycle count is added to the display of FIG. In the display example of FIG. 9, when the pointer 901 is moved to the step S101 of interest, a cycle count history 902 of the cycle that has passed that step is displayed on the right side of the token 701 displayed at that step. For example, the cycle count history 902
“1, 2, 3” indicates that step S101 has been passed in the first cycle, the second cycle, and the third cycle. By displaying such a cycle count history 902, it is possible to more easily confirm the execution route for each cycle.

【0027】なお、以上では、SFCを表示しその各ス
テップ上に状態を表示するものとしたが、SFCに限ら
ず、他の処理の流れを示すフローに対しても本発明が適
用可能なことはいうまでもない。
In the above description, the SFC is displayed and the status is displayed on each step. However, the present invention is applicable not only to the SFC but also to a flow indicating another processing flow. Needless to say.

【0028】[0028]

【発明の効果】以上説明したように、本発明によれば、
現在実行中のステップに表示を行うだけではなく、通過
したステップにもサイクル毎に目視で区別できる表示を
行うようにしたので、ユーザの手間を必要とすることな
く、シーケンスプログラムのサイクル毎の実行ルートを
簡単に判別できるようになり、シーケンスプログラムを
デバッグする際の作業効率を向上することができる。
As described above, according to the present invention,
In addition to displaying not only the currently executing step, but also the step that has been passed, a display that can be visually distinguished for each cycle is performed, so that the sequence program can be executed every cycle without the user's effort. The route can be easily determined, and the work efficiency in debugging the sequence program can be improved.

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

【図1】本発明を適用した制御装置と本発明のプログラ
ムモニタ装置の構成例を示すブロック図。
FIG. 1 is a block diagram showing a configuration example of a control device to which the present invention is applied and a program monitor device of the present invention.

【図2】SFCプログラムのユニットを表示したウィン
ドウの例を示す図。
FIG. 2 is a diagram illustrating an example of a window displaying units of an SFC program.

【図3】従来のSFCプログラムのモニタ方法による表
示例を示す図。
FIG. 3 is a view showing a display example by a conventional monitoring method of an SFC program.

【図4】別の従来のSFCプログラムのモニタ方法にお
けるルートテーブルの例を示す図。
FIG. 4 is a diagram showing an example of a route table in another conventional SFC program monitoring method.

【図5】図1に示したプログラムモニタ装置の一実施の
形態の実行ステップ記憶部のデータ構造を示す図。
FIG. 5 is a diagram showing a data structure of an execution step storage unit of the embodiment of the program monitoring device shown in FIG. 1;

【図6】本発明のSFCプログラムのモニタ方法による
表示例を示す図。
FIG. 6 is a view showing a display example of the SFC program monitoring method of the present invention.

【図7】本発明のSFCプログラムのモニタ方法による
別の表示例を示す図。
FIG. 7 is a view showing another display example according to the SFC program monitoring method of the present invention.

【図8】図7に示したSFCプログラムのモニタ方法に
おけるサイクルカウントに応じたトークン色の例を示す
図。
FIG. 8 is a view showing an example of a token color according to a cycle count in the monitoring method of the SFC program shown in FIG. 7;

【図9】本発明のSFCプログラムのモニタ方法による
トークンにサイクルカウントの数値を付記した表示例を
示す図。
FIG. 9 is a diagram showing a display example in which a cycle count value is added to a token according to the SFC program monitoring method of the present invention.

【図10】本発明のSFCプログラムのモニタ方法の処
理フロー例を示す図。
FIG. 10 is a diagram showing an example of a processing flow of an SFC program monitoring method of the present invention.

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

101 制御装置 101a 演算部 101b 入力部 101c 出力部 101d シーケンスプログラム解釈実行手順記憶部 101e シーケンスプログラム記憶部 101f 実行ステップ記憶部 101g 通信制御部 101h 電源部 102 モニタ装置 102a 演算部 102b 操作部 102c 表示部 102d シーケンスプログラムモニタ手順記憶部 102e シーケンスプログラム記憶部 102f 実行ステップ記憶部 102g 通信制御部 102h 電源部 201、202 ウィンドウ 201a ステップ 201b トランジション 201c 有向接続線 301、302 トークン 401 サイクルカウント 402 実行ステップ番号 501 ユニット番号 502 現ステップ番号 503 前ステップ番号 504 サイクルエンドのステップ番号 505 サイクルカウント 601 通過ステップのトークン 602 実行中ステップのトークン 701 通過ステップのトークン 702 実行中ステップのトークン 703 サイクルエンドのステップを示す記号 704 トークン色のリファレンス 801 サイクルカウントを6で割った余り 802 実行中ステップのトークン色 803 通過ステップのトークン色 901 ポインタ 902 サイクルカウント履歴 101 control device 101a calculation unit 101b input unit 101c output unit 101d sequence program interpretation execution procedure storage unit 101e sequence program storage unit 101f execution step storage unit 101g communication control unit 101h power supply unit 102 monitoring device 102a calculation unit 102b operation unit 102c display unit 102d Sequence program monitor procedure storage unit 102e Sequence program storage unit 102f Execution step storage unit 102g Communication control unit 102h Power supply unit 201, 202 Window 201a Step 201b Transition 201c Directed connection line 301, 302 Token 401 Cycle count 402 Execution step number 501 Unit number 502 Current step number 503 Previous step number 504 Step number at cycle end 5 05 Cycle count 601 Passing step token 602 Executing step token 701 Passing step token 702 Executing step token 703 Symbol indicating cycle end step 704 Token color reference 801 Remainder of cycle count divided by 6 802 Running Step token color 803 Passing step token color 901 Pointer 902 Cycle count history

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 シーケンスプログラムの実行状態をモニ
タするためのシーケンスプログラムのモニタ方法におい
て、 シーケンスプログラムのフローをステップ単位で表示
し、そのフロー上で、現在実行中のステップを目視で識
別可能なように表示するとともに、過去に通過したステ
ップに対してもその各ステップがシーケンスプログラム
の何サイクル目に通過したかを目視で識別可能なように
表示することを特徴とするシーケンスプログラムのモニ
タ方法。
1. A monitoring method of a sequence program for monitoring an execution state of a sequence program, wherein a flow of the sequence program is displayed in units of steps, and a currently executing step can be visually identified on the flow. A sequence program monitoring method for displaying a step of a sequence program that has been passed in the past so that the step of the sequence program can be visually identified.
【請求項2】 前記現在実行中のステップの表示及び前
記過去に通過したステップのサイクル別の表示は、各ス
テップに付した記号の色調、大きさ、または形状の少な
くとも1つが異なることによって識別可能にすることを
特徴とする請求項1に記載のシーケンスプログラムのモ
ニタ方法。
2. The display of the currently executed steps and the display of the steps passed in the past in each cycle can be identified by at least one of a color tone, a size, and a shape of a symbol attached to each step being different. 2. The monitoring method of a sequence program according to claim 1, wherein:
【請求項3】 前記シーケンスプログラムはSFCプロ
グラムであり、前記記号はトークンであることを特徴と
する請求項2に記載のシーケンスプログラムのモニタ方
法。
3. The method according to claim 2, wherein the sequence program is an SFC program, and the symbols are tokens.
【請求項4】 前記現在実行中のステップ及び前記過去
に通過したステップの各々に対して、そのステップが何
サイクル目に実行されたかを示すサイクルカウントを表
示可能としたことを特徴とする請求項1ないし請求項3
のいずれかに記載のシーケンスプログラムのモニタ方
法。
4. The method according to claim 1, wherein a cycle count indicating a cycle in which the step is executed can be displayed for each of the currently executed step and the past step. 1 to Claim 3
The monitoring method of the sequence program according to any one of the above.
【請求項5】 シーケンスプログラムの実行状態をモニ
タするためのシーケンスプログラムのモニタ装置におい
て、 シーケンスプログラムをあらかじめ記憶しておくシーケ
ンスプログラム記憶手段と、 該シーケンスプログラム記憶手段に記憶されたシーケン
スプログラムの流れをステップ単位に表示するためのシ
ーケンス表示手段と、 該シーケンス表示手段が表示する流れの中で、現在実行
中のステップに対して目視で識別可能なように表示する
ための現行ステップ表示手段と、 前記シーケンス表示手段が表示する流れの中で、過去に
通過したステップに対してその各ステップがシーケンス
プログラムの何サイクル目に通過したかを目視で識別可
能なように表示するための通過ステップ表示手段と、 を具備することを特徴とするシーケンスプログラムのモ
ニタ装置。
5. A sequence program monitoring device for monitoring an execution state of a sequence program, comprising: a sequence program storage unit for storing the sequence program in advance; and a flow of the sequence program stored in the sequence program storage unit. Sequence display means for displaying in steps, current step display means for displaying the currently executed step in the flow displayed by the sequence display means so as to be visually identifiable, Passing step display means for displaying in a flow displayed by the sequence display means, a step which has passed in the past so that each step can be visually identified as to which cycle of the sequence program each step has passed; A sequence comprising: Program of the monitor device.
JP10079413A 1998-03-26 1998-03-26 Method and device for monitoring sequence program Pending JPH11282721A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10079413A JPH11282721A (en) 1998-03-26 1998-03-26 Method and device for monitoring sequence program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10079413A JPH11282721A (en) 1998-03-26 1998-03-26 Method and device for monitoring sequence program

Publications (1)

Publication Number Publication Date
JPH11282721A true JPH11282721A (en) 1999-10-15

Family

ID=13689190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10079413A Pending JPH11282721A (en) 1998-03-26 1998-03-26 Method and device for monitoring sequence program

Country Status (1)

Country Link
JP (1) JPH11282721A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249593A (en) * 2006-03-15 2007-09-27 Omron Corp Program monitoring device for programmable controller
JP2007280379A (en) * 2006-03-15 2007-10-25 Omron Corp Program monitor device for programmable controller
JP2019159456A (en) * 2018-03-08 2019-09-19 富士ゼロックス株式会社 Information processing system and information processing program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007249593A (en) * 2006-03-15 2007-09-27 Omron Corp Program monitoring device for programmable controller
JP2007280379A (en) * 2006-03-15 2007-10-25 Omron Corp Program monitor device for programmable controller
JP4662077B2 (en) * 2006-03-15 2011-03-30 オムロン株式会社 Program monitor device for programmable controller
JP2019159456A (en) * 2018-03-08 2019-09-19 富士ゼロックス株式会社 Information processing system and information processing program

Similar Documents

Publication Publication Date Title
US6981226B2 (en) Flowchart programming for industrial controllers, in particular motion controllers
EP1624352B1 (en) Manual restart learning process and manual restart process for an automated system
JP2762893B2 (en) Programmable controller and method of executing SFC program using the programmable controller
US6442436B1 (en) Multi-tasking system, recording medium in which program thereof is recorded, and processing device
US5953226A (en) Control system having an application function with integrated self diagnostics
US11960925B2 (en) Program generating device, program generating method, and information storage medium
EP1089150B1 (en) Monitor apparatus for sequential-function-chart-type programmable controller
JP3554854B2 (en) Business job execution related diagram display method
JP5014370B2 (en) Plant monitoring and control system
JPH11282721A (en) Method and device for monitoring sequence program
JPH11149312A (en) Plant monitoring device and recording medium recording plant monitoring program
JP2522057B2 (en) Distributed control system
US6992644B1 (en) Peripheral device of a programmable controller and monitoring method of the peripheral device
JPH09222911A (en) Method for diagnosing fault for nc machine tool and device therefor
JP7022049B2 (en) Recognition device, system and recognition method
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
JP2533373B2 (en) Control program creation method
JPH01199212A (en) Control system for operating procedure of interactive display device
JP2003157105A (en) Control system, and its program and recording medium
JPH0679245B2 (en) Programmable controller sequence program execution method
JP2921228B2 (en) Programmable controller
JP3413860B2 (en) Debug method
JPH0816217A (en) Device for monitoring operation state of programmable controller
JPH01223504A (en) Sampling trace system for programmable controller
JPH04367029A (en) Programming device for programmable controller