JP2002163020A - Method and device for detecting abnormality in programmable controller - Google Patents

Method and device for detecting abnormality in programmable controller

Info

Publication number
JP2002163020A
JP2002163020A JP2000359254A JP2000359254A JP2002163020A JP 2002163020 A JP2002163020 A JP 2002163020A JP 2000359254 A JP2000359254 A JP 2000359254A JP 2000359254 A JP2000359254 A JP 2000359254A JP 2002163020 A JP2002163020 A JP 2002163020A
Authority
JP
Japan
Prior art keywords
input
sequence program
data
output
programmable controller
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
JP2000359254A
Other languages
Japanese (ja)
Inventor
Yasuyuki Kishi
靖之 岸
Kosaku Kitada
耕作 北田
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP2000359254A priority Critical patent/JP2002163020A/en
Publication of JP2002163020A publication Critical patent/JP2002163020A/en
Pending legal-status Critical Current

Links

Landscapes

  • Testing And Monitoring For Control Systems (AREA)
  • Programmable Controllers (AREA)

Abstract

PROBLEM TO BE SOLVED: To extract a cause of abnormality in a programmable controller by simple processing. SOLUTION: A program reading means 11 reads a sequence program PR1, and in input and output data reading means 12 reads input and output data IO1 as a required specification. A data table 14 wherein combinations of the input and output data IO1 in every hour are served as data groups is prepared in an input and output operation decoding means 13. A following operation determining means 15 determines the presence of a logical inconsistency when the data group in the every hour is applied to the sequence program PR1, ratiocinates a cause of the logical inconsistency, when the logical inconsistency exists, by tracing an input and an output concerned, going upstream from the group of the input and the output in which the inconsistency is generated out of the sequence program PR1, and outputs a ratiocinated result from a result output means 16.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、プログラマブルコ
ントローラにおける異常検出方法およびその装置に関す
るものであり、詳しくは、プログラマブルコントローラ
における開発中のシーケンスプログラムの誤り、シーケ
ンスプログラムの完成後における制御対象との不整合、
動作中の制御対象に生じる異常等のプログラマブルコン
トローラにおける異常を検出する技術に関するものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for detecting an abnormality in a programmable controller. More specifically, the present invention relates to an error in a sequence program under development in a programmable controller and an error in a control target after completion of the sequence program. Alignment,
The present invention relates to a technique for detecting an abnormality in a programmable controller such as an abnormality occurring in a control target during operation.

【0002】[0002]

【従来の技術】従来から、プログラマブルコントローラ
における異常の一種である制御対象の故障の際の診断を
行う技術として、特開平10−97318号公報に記載
されているように、基準パターンと異常時のパターンと
を比較することによって異常診断を行うものが提案され
ている。
2. Description of the Related Art Conventionally, as a technique for diagnosing a failure of a control target, which is a kind of abnormality in a programmable controller, as disclosed in Japanese Patent Application Laid-Open No. Hei 10-97318, a reference pattern and an abnormal state are disclosed. A device that performs an abnormality diagnosis by comparing with a pattern has been proposed.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した公
報に記載の技術では、基準パターンと異常時のパターン
とを比較するものであるから、2次元のパターン同士を
比較することになり、比較的複雑な処理を必要とすると
いう問題がある。
However, in the technique described in the above-mentioned publication, the reference pattern and the pattern at the time of abnormality are compared, so that two-dimensional patterns are compared with each other. There is a problem that complicated processing is required.

【0004】本発明は上記事由に鑑みて為されたもので
あり、その目的は、プログラマブルコントローラの異常
の原因を比較的簡単な処理で抽出することができるプロ
グラマブルコントローラにおける異常検出方法およびそ
の装置を提供することにある。
SUMMARY OF THE INVENTION The present invention has been made in view of the above circumstances, and has as its object to provide a method and apparatus for detecting an abnormality in a programmable controller which can extract the cause of the abnormality in the programmable controller by relatively simple processing. To provide.

【0005】[0005]

【課題を解決するための手段】請求項1の発明は、プロ
グラマブルコントローラを動作させるシーケンスプログ
ラムおよび前記シーケンスプログラムに関連付けたプロ
グラマブルコントローラの入出力データが読込手段を通
して入力され、次動作判定手段により所定時刻における
入出力データの組合せをシーケンスプログラムに適用し
たときのシーケンスプログラムと入出力データの組合せ
との整合性から論理矛盾の有無を判定するとともに、論
理矛盾が生じているときにはシーケンスプログラムのう
ち論理矛盾を生じた入出力の組合せから遡って関連する
入出力を追跡することにより論理矛盾の原因を推論し、
推論結果を結果出力手段から出力することを特徴とす
る。
According to a first aspect of the present invention, a sequence program for operating a programmable controller and input / output data of the programmable controller associated with the sequence program are input through a reading unit, and a predetermined time is determined by a next operation determining unit. Is used to determine the presence or absence of a logical inconsistency based on the consistency between the sequence program and the combination of input and output data when the combination of input and output data is applied to the sequence program. Infer the cause of logical inconsistency by tracking related I / Os retroactively from the resulting I / O combinations,
The inference result is output from the result output means.

【0006】請求項2の発明は、請求項1の発明におい
て、前記入出力データを制御対象の動作タイミングの要
求仕様を表す入出力データとし、この入出力データから
入出力動作解読手段を用いて時刻毎の組合せをデータ組
として抽出することによりデータ組の時系列であるデー
タテーブルを作成し、前記次動作判定手段ではデータテ
ーブルの各データ組とシーケンスプログラムとの整合性
から論理矛盾の有無を判定することにより、シーケンス
プログラムの中での論理矛盾の原因箇所を推論すること
を特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the input / output data is used as input / output data representing a required specification of operation timing of a control target, and input / output operation decoding means is used from the input / output data. A data table which is a time series of the data set is created by extracting a combination for each time as a data set, and the next operation determining means determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. By determining, the cause of the logical contradiction in the sequence program is inferred.

【0007】請求項3の発明は、請求項2の発明におい
て、前記結果出力手段では前記要求仕様のうち論理矛盾
を生じたデータ組を含む部分のタイムチャートを可視化
して出力するとともに前記タイムチャートの中に論理矛
盾を生じたタイミングを示し、前記次動作判定手段によ
り推論された矛盾の原因箇所および内容を表すメッセー
ジをタイムチャートとともに可視化して出力することを
特徴とする。
According to a third aspect of the present invention, in the second aspect of the present invention, the result output means visualizes and outputs a time chart of a part including a data set in which a logical inconsistency occurs in the required specifications, and outputs the time chart. The timing at which a logical inconsistency occurs is shown in, and a message indicating the cause and content of the inconsistency inferred by the next operation determining means is visualized and output together with a time chart.

【0008】請求項4の発明は、請求項2または請求項
3の発明において、前記次動作判定手段により推論され
た前記シーケンスプログラム中での論理矛盾の原因箇所
について修正案を作成し、作成した修正案のうち論理矛
盾を解消する修正案を結果出力手段により可視化して出
力することを特徴とする。
According to a fourth aspect of the present invention, in the second or third aspect, a correction plan is created and created for a cause of a logical inconsistency in the sequence program inferred by the next operation determining means. Among the amendments, the amendment for resolving the logical contradiction is visualized and output by the result output means.

【0009】請求項5の発明は、請求項1の発明におい
て、前記入出力データを実動作時の制御対象の異常発生
の時刻における入出力データとし、前記次動作判定手段
ではこの入出力データのデータ組とシーケンスプログラ
ムとの整合性から論理矛盾の有無を判定することによ
り、制御対象について論理矛盾の原因箇所を推論するこ
とを特徴とする。
According to a fifth aspect of the present invention, in the first aspect of the present invention, the input / output data is used as input / output data at the time of occurrence of an abnormality in a control target in an actual operation, and the next operation determining means outputs the input / output data. By determining the presence or absence of a logical inconsistency based on the consistency between the data set and the sequence program, a cause of the logical inconsistency is inferred for the control target.

【0010】請求項6の発明は、請求項1の発明におい
て、前記入出力データを制御対象の異常発生の時刻を含
む所定の時間範囲の入出力データとし、この入出力デー
タから入出力動作解読手段を用いて時刻毎の組合せをデ
ータ組として抽出することによりデータ組の時系列であ
るデータテーブルを作成し、前記次動作判定手段ではデ
ータテーブルの各データ組とシーケンスプログラムとの
整合性から論理矛盾の有無を判定することにより、制御
対象について論理矛盾の原因箇所を推論することを特徴
とする。
According to a sixth aspect of the present invention, in the first aspect of the present invention, the input / output data is input / output data in a predetermined time range including a time of occurrence of an abnormality of a control target, and the input / output operation is decoded from the input / output data. A data table which is a time series of the data set is created by extracting a combination for each time as a data set by using the means, and the next operation determining means determines a logical table based on the consistency between each data set of the data table and the sequence program. By determining the presence or absence of a contradiction, a cause of the logical contradiction is inferred for the control target.

【0011】請求項7の発明は、請求項5または請求項
6の発明において、前記次動作判定手段により推論され
た矛盾の原因箇所および内容を表すメッセージを結果出
力手段により可視化して出力することを特徴とする。
According to a seventh aspect of the present invention, in the fifth or sixth aspect of the present invention, a message representing a cause and a content of the contradiction inferred by the next operation determining means is visualized and output by a result output means. It is characterized by.

【0012】請求項8の発明は、請求項5ないし請求項
7の発明において、前記シーケンスプログラムが制御対
象を実動作させるプログラマブルコントローラにすでに
実装されているシーケンスプログラムであって、通信手
段を介してプログラマブルコントローラから転送され、
さらに前記入出力データが通信手段を介してプログラマ
ブルコントローラから転送されることを特徴とする。
According to an eighth aspect of the present invention, in the invention of the fifth to seventh aspects, the sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object, and Transferred from the programmable controller,
Further, the input / output data is transferred from the programmable controller via communication means.

【0013】請求項9の発明は、プログラマブルコント
ローラを動作させるシーケンスプログラムおよび前記シ
ーケンスプログラムに関連付けたプログラマブルコント
ローラの入力データが読込手段を通して入力され、プロ
グラマブルコントローラと等価な模擬制御手段に前記入
力データを与えてシーケンスプログラムを実行するとと
もに、制御対象を模擬して結果出力手段がディスプレイ
装置に表示したシミュレーションモデルを、模擬制御手
段でのシーケンスプログラムの実行に伴って動作させる
ことを特徴とする。
According to a ninth aspect of the present invention, a sequence program for operating the programmable controller and input data of the programmable controller associated with the sequence program are input through the reading means, and the input data is given to the simulation control means equivalent to the programmable controller. And executing the simulation model displayed on the display device by the result output means by simulating the control target in accordance with the execution of the sequence program by the simulation control means.

【0014】請求項10の発明は、請求項9の発明にお
いて、前記模擬制御手段に与える入力データのオンオフ
の時間間隔の最小単位をタイミング生成手段により生成
した基準タイミングの周期とするようにタイミング規制
手段で規制し、タイミング生成手段では基準タイミング
の周期を可変としていることを特徴とする。
According to a tenth aspect of the present invention, in the ninth aspect of the present invention, the timing control is performed such that the minimum unit of the ON / OFF time interval of the input data supplied to the simulation control means is the cycle of the reference timing generated by the timing generation means. And the timing generation means makes the period of the reference timing variable.

【0015】請求項11の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが読込手段を通して入力され、入
力データのオンオフの時間間隔の最小単位をタイミング
生成手段により生成した基準タイミングの周期とするよ
うにタイミング規制手段で規制するとともに、タイミン
グ生成手段では基準タイミングの周期を可変としてあ
り、さらにプログラマブルコントローラと等価な模擬制
御手段に前記入力データを与えてシーケンスプログラム
を実行するとともに、模擬制御手段でのシーケンスプロ
グラムの実行に伴う出力データと模擬制御手段に与えら
れた入力データとから結果出力手段によりタイムチャー
トを生成することを特徴とする。
According to an eleventh aspect of the present invention, the sequence program for operating the programmable controller and the input data of the programmable controller associated with the sequence program are input through the reading means, and the minimum unit of the ON / OFF time interval of the input data is determined by the timing generating means. The timing control means regulates the cycle of the reference timing to be the same as the cycle of the reference timing generated, and the cycle of the reference timing is variable in the timing generation means. The input data is given to the simulation control means equivalent to a programmable controller, and the sequence program is executed. And generating a time chart by the result output means from output data accompanying execution of the sequence program by the simulation control means and input data given to the simulation control means. And butterflies.

【0016】請求項12の発明は、請求項11の発明に
おいて、前記結果出力手段では、制御対象を模擬してデ
ィスプレイ装置に表示したシミュレーションモデルを、
前記タイムチャートにより表される入出力データのタイ
ミングで動作させることを特徴とする。
In a twelfth aspect of the present invention based on the eleventh aspect, the result output means includes a simulation model simulating a control target and displayed on a display device.
The operation is performed at the timing of input / output data represented by the time chart.

【0017】請求項13の発明は、請求項11の発明に
おいて、前記結果出力手段では、制御対象の動作タイミ
ングの要求仕様として与えられる入出力データのタイム
チャートと、前記タイムチャートとを比較することによ
り相違点を抽出し、抽出結果のメッセージを可視化して
出力することを特徴とする。
According to a thirteenth aspect, in the eleventh aspect, the result output means compares a time chart of input / output data given as a required specification of an operation timing of a control target with the time chart. , The differences are extracted, and a message of the extraction result is visualized and output.

【0018】請求項14の発明は、請求項9ないし請求
項13の発明において、前記制御対象がそれぞれ1つの
処理を完結させる複数個のブロックの集合であって、前
記シミュレーションモデルが各ブロックに対応するサブ
モデルの組合せとして構成されていることを特徴とす
る。
According to a fourteenth aspect, in the ninth to thirteenth aspects, the controlled object is a set of a plurality of blocks each of which completes one process, and the simulation model corresponds to each block. It is characterized by being configured as a combination of sub-models.

【0019】請求項15の発明は、請求項9ないし請求
項14の発明において、前記シーケンスプログラムが制
御対象を実動作させるプログラマブルコントローラにす
でに実装されているシーケンスプログラムであって、通
信手段を介してプログラマブルコントローラから転送さ
れることを特徴とする。
According to a fifteenth aspect of the present invention, in the ninth to fourteenth aspects of the present invention, the sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object, and It is characterized by being transferred from a programmable controller.

【0020】請求項16の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入出力データが入力される読込手段と、所定
時刻における入出力データの組合せをシーケンスプログ
ラムに適用したときのシーケンスプログラムと入出力デ
ータの組合せとの整合性から論理矛盾の有無を判定する
とともに、論理矛盾が生じているときにはシーケンスプ
ログラムのうち論理矛盾を生じた入出力の組合せから遡
って関連する入出力を追跡することにより論理矛盾の原
因を推論する次動作判定手段と、推論結果を出力する結
果出力手段とを備えるものである。
According to a sixteenth aspect of the present invention, a sequence program for operating a programmable controller, reading means for inputting input / output data of the programmable controller associated with the sequence program, and a combination of input / output data at a predetermined time are included in the sequence program. Determine whether there is a logical inconsistency based on the consistency between the sequence program and the combination of input / output data when applied, and if there is a logical inconsistency, go back to the sequence program from the combination of I / O that caused the logical inconsistency. The next operation determining means for inferring the cause of the logical inconsistency by tracing the input / output performed, and the result output means for outputting the inference result.

【0021】請求項17の発明は、請求項16の発明に
おいて、前記入出力データを制御対象の動作タイミング
の要求仕様を表す入出力データとし、この入出力データ
から時刻毎の組合せをデータ組として抽出することによ
りデータ組の時系列であるデータテーブルを作成する入
出力動作解読手段を付加し、前記次動作判定手段ではデ
ータテーブルの各データ組とシーケンスプログラムとの
整合性から論理矛盾の有無を判定することにより、シー
ケンスプログラムの中での論理矛盾の原因箇所を推論す
るものである。
According to a seventeenth aspect, in the sixteenth aspect, the input / output data is input / output data representing a required specification of an operation timing of a control target, and a combination for each time is defined as a data set from the input / output data. An input / output operation decoding means for creating a data table which is a time series of a data set by extraction is added, and the next operation determination means determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. By determining, the cause of the logical contradiction in the sequence program is inferred.

【0022】請求項18の発明は、請求項16の発明に
おいて、前記入出力データを実動作時の制御対象の異常
発生の時刻における入出力データとし、前記次動作判定
手段ではこの入出力データのデータ組とシーケンスプロ
グラムとの整合性から論理矛盾の有無を判定することに
より、制御対象について論理矛盾の原因箇所を推論する
ものである。
According to an eighteenth aspect of the present invention, in the invention of the sixteenth aspect, the input / output data is used as input / output data at the time of occurrence of an abnormality in a controlled object during actual operation, and the next operation determining means outputs the input / output data. By determining the presence / absence of a logical inconsistency based on the consistency between the data set and the sequence program, the cause of the logical inconsistency is inferred for the control target.

【0023】請求項19の発明は、請求項16の発明に
おいて、前記入出力データを制御対象の異常発生の時刻
を含む所定の時間範囲の入出力データとし、この入出力
データから時刻毎の組合せをデータ組として抽出するこ
とによりデータ組の時系列であるデータテーブルを作成
する入出力動作解読手段を付加し、前記次動作判定手段
ではデータテーブルの各データ組とシーケンスプログラ
ムとの整合性から論理矛盾の有無を判定することによ
り、制御対象について論理矛盾の原因箇所を推論するも
のである。
According to a nineteenth aspect, in the sixteenth aspect, the input / output data is input / output data in a predetermined time range including the time of occurrence of an abnormality in the control target, and the input / output data is combined for each time. Is extracted as a data set, an input / output operation decoding means for creating a data table which is a time series of the data set is added, and the next operation determination means determines the logic based on the consistency between each data set of the data table and the sequence program. By determining the presence or absence of inconsistency, the cause of the logical inconsistency is inferred for the control target.

【0024】請求項20の発明は、請求項18または請
求項19の発明において、前記シーケンスプログラムが
制御対象を実動作させるプログラマブルコントローラに
すでに実装されているシーケンスプログラムであって、
プログラマブルコントローラからシーケンスプログラム
および前記入出力データを転送する通信手段が付加され
ているものである。
According to a twentieth aspect of the present invention, the sequence program according to the eighteenth or nineteenth aspect, wherein the sequence program is already mounted on a programmable controller for causing a controlled object to actually operate,
A communication means for transferring a sequence program and the input / output data from the programmable controller is added.

【0025】請求項21の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが入力される読込手段と、プログ
ラマブルコントローラと等価であって前記入力データが
与えられてシーケンスプログラムを実行する模擬制御手
段と、制御対象を模擬したシミュレーションモデルをデ
ィスプレイ装置に表示する結果出力手段とを備え、結果
出力手段が模擬制御手段でのシーケンスプログラムの実
行に伴ってシミュレーションモデルを動作させるもので
ある。
According to a twenty-first aspect of the present invention, a sequence program for operating a programmable controller and read means for inputting input data of the programmable controller associated with the sequence program are provided, and the input data is equivalent to the programmable controller and provided with the input data. Simulation program means for executing a sequence program, and a result output means for displaying a simulation model simulating an object to be controlled on a display device, wherein the result output means executes the simulation model in accordance with the execution of the sequence program by the simulation control means. To make it work.

【0026】請求項22の発明は、請求項21の発明に
おいて、所定の周期で基準タイミングを生成するタイミ
ング生成手段と、前記模擬制御手段に与える入力データ
のオンオフの時間間隔の最小単位を前記基準タイミング
の周期とするように規制するタイミング規制手段とを付
加し、タイミング生成手段では基準タイミングの周期を
可変としているものである。
According to a twenty-second aspect of the present invention, in the twenty-first aspect of the present invention, the timing generation means for generating the reference timing at a predetermined cycle, and the minimum unit of the on / off time interval of the input data to be supplied to the simulation control means is set to the reference value. A timing regulating means for regulating the cycle of the timing is added, and the cycle of the reference timing is made variable in the timing generating means.

【0027】請求項23の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが入力される読込手段と、所定の
周期で基準タイミングを生成するタイミング生成手段
と、前記模擬制御手段に与える入力データのオンオフの
時間間隔の最小単位を前記基準タイミングの周期とする
ように規制するタイミング規制手段と、プログラマブル
コントローラと等価であって前記入力データが与えられ
てシーケンスプログラムを実行する模擬制御手段と、制
御対象を模擬したシミュレーションモデルをディスプレ
イ装置に表示する結果出力手段とを備え、タイミング生
成手段では基準タイミングの周期を可変としてあり、模
擬制御手段でのシーケンスプログラムの実行に伴う出力
データと模擬制御手段に与えられた入力データとから結
果出力手段によりタイムチャートを生成するものであ
る。
According to a twenty-third aspect of the present invention, a sequence program for operating a programmable controller, reading means for inputting input data of the programmable controller associated with the sequence program, and timing generating means for generating a reference timing at a predetermined cycle are provided. A timing control means for restricting a minimum unit of an on / off time interval of input data to be supplied to the simulation control means to be a cycle of the reference timing; and a sequence program provided with the input data being equivalent to a programmable controller. And a result output means for displaying a simulation model simulating the control target on a display device. The timing generation means has a variable reference timing cycle. And it generates a time chart by result output unit from the input data supplied to the output data and the simulated control means associated with the execution of Nsu program.

【0028】請求項24の発明は、請求項21ないし請
求項23の発明において、前記シーケンスプログラムが
制御対象を実動作させるプログラマブルコントローラに
すでに実装されているシーケンスプログラムであって、
プログラマブルコントローラからシーケンスプログラム
を転送する通信手段が付加されているものである。
According to a twenty-fourth aspect of the present invention, in the invention of the twenty-first to twenty-third aspects, the sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object,
A communication means for transferring a sequence program from the programmable controller is added.

【0029】[0029]

【発明の実施の形態】以下に説明する本発明の実施の形
態として、第1の実施の形態では、プログラマブルコン
トローラ(以下、PLCと略称する)において開発中の
シーケンスプログラムの誤りを検出してデバッグ作業を
効率化することによりシーケンスプログラムの作成を支
援する機能を持つ装置を例示し、第2の実施の形態で
は、動作中の制御対象に異常が発生したときに異常の発
生箇所を容易に検出する故障診断を支援する機能を持つ
装置を例示する。また、第3の実施の形態では、シーケ
ンスプログラムの完成後においてシーケンスプログラム
と制御対象との整合性を制御対象に生じる現象(動作)
を通して検証することにより実システムの運転開始前に
プログラムの修正の要否や制御対象の調整の要否を抽出
する機能を有した装置を例示する。各実施形態において
説明する装置は、いずれもPLCを動作させるシーケン
スプログラムと、シーケンスプログラムに関連付けたP
LCの入出力データとを入力情報として上述の機能を実
現するものであるが、各機能については互いに独立して
いるから、各装置は通常は目的に応じて個別に使用され
る。ただし、第1の実施の形態の装置や第2の実施の形
態の装置を用いてPLCの動作の異常の有無を検出した
後に、第3の実施の形態の装置を用いて異常を制御対象
に生じる現象として検証したり、逆に、第3の実施の形
態の装置を用いて制御対象に生じた異常な現象の発生原
因を第1の実施の形態の装置や第2の実施の形態の装置
を用いて抽出するというように、第1の実施の形態の装
置や第2の実施の形態の装置と第3の実施の形態の装置
とを連携させて用いることが可能である。したがって、
第1の実施の形態の装置や第2の実施の形態の装置を実
現するプログラムと第3の実施の形態の装置を実現する
プログラムとを1台のコンピュータに実装しておき、実
行するプログラムを切り換えて使用することが可能であ
る。そこで、第3の実施の形態の装置は第1の実施の形
態の装置ないし第2の実施の形態の装置に機能を付加し
た構成として例示する。また、第1の実施の形態の装置
と第2の実施の形態の装置とは、入力される情報と出力
する情報とに相違があるが、主要な処理内容は共通して
いるから、装置の構成を表すブロック図は同じものを用
いる。ただし、第1の実施の形態の装置と第2の実施の
形態の装置とではブロック図として記載された各手段の
機能には相違する部分もある。
DESCRIPTION OF THE PREFERRED EMBODIMENTS As an embodiment of the present invention described below, in a first embodiment, a programmable controller (hereinafter abbreviated as PLC) detects and debugs an error in a sequence program under development. A device having a function of supporting the creation of a sequence program by improving work efficiency is exemplified. In the second embodiment, when an abnormality occurs in a control target during operation, the location of the abnormality can be easily detected. An example of a device having a function of supporting failure diagnosis will be described. Further, in the third embodiment, a phenomenon (operation) in which consistency between the sequence program and the control target occurs in the control target after the completion of the sequence program
An example of a device having a function of extracting the necessity of correcting a program and the necessity of adjusting a control target before starting the operation of an actual system by verifying through an example. In each of the devices described in the embodiments, the sequence program for operating the PLC and the P associated with the sequence program
The above-described functions are realized by using the input / output data of the LC as input information. However, since each function is independent of each other, each device is usually used individually according to the purpose. However, after detecting the presence / absence of abnormality in the operation of the PLC using the device of the first embodiment or the device of the second embodiment, the abnormality is set as a control target by using the device of the third embodiment. It is verified as a phenomenon that occurs, and conversely, the cause of the abnormal phenomenon that has occurred in the control target using the apparatus of the third embodiment is caused by the apparatus of the first embodiment or the apparatus of the second embodiment. For example, the apparatus of the first embodiment, the apparatus of the second embodiment, and the apparatus of the third embodiment can be used in cooperation with each other. Therefore,
A program that implements the apparatus of the first embodiment or the apparatus of the second embodiment and a program that implements the apparatus of the third embodiment are mounted on a single computer, and the program to be executed is It is possible to switch and use. Therefore, the device according to the third embodiment is exemplified as a configuration obtained by adding a function to the device according to the first embodiment or the device according to the second embodiment. Also, the device of the first embodiment and the device of the second embodiment are different in the information to be input and the information to be output, but the main processing contents are common. The same block diagram shows the configuration. However, the device of the first embodiment and the device of the second embodiment have some differences in the function of each means described as a block diagram.

【0030】(第1の実施の形態)本実施形態では、プ
ログラマブルコントローラ(以下、PLCと略称する)
を動作させるシーケンスプログラムの開発中にシーケン
スプログラムが要求仕様を満たすか否かを検証する目的
で用いる装置を例示する。本実施形態は、パーソナルコ
ンピュータのようなコンピュータにプログラムを実装す
ることにより実現されるものであって、入力装置として
キーボードやマウスを備え、出力装置として少なくとも
ディスプレイ装置を備える。また、出力装置として必要
に応じてプリンタを備えていてもよい。
(First Embodiment) In this embodiment, a programmable controller (hereinafter abbreviated as PLC) will be described.
A device used for the purpose of verifying whether or not the sequence program satisfies the required specifications during the development of the sequence program for operating the device will be exemplified. The present embodiment is realized by mounting a program on a computer such as a personal computer, and includes a keyboard and a mouse as an input device, and at least a display device as an output device. Further, a printer may be provided as an output device as needed.

【0031】本実施形態では、図1に示すように、開発
中のシーケンスプログラムPR1と、このシーケンスプ
ログラムPR1に対する要求仕様として与えられるPL
Cの入出力データIO1とを入力情報とする。シーケン
スプログラムPR1および入出力データIO1は、それ
ぞれ読込手段としてのプログラム読込手段11および入
出力データ読込手段12により読み込まれる。シーケン
スプログラムPR1や入出力データIO1は、適宜の記
憶媒体に記録されているものを用いたり、通信手段17
を通して外部から入力されるものを用いる。
In the present embodiment, as shown in FIG. 1, a sequence program PR1 under development and a PL given as a required specification for the sequence program PR1 are provided.
The input / output data IO1 of C is input information. The sequence program PR1 and the input / output data IO1 are read by a program reading unit 11 and an input / output data reading unit 12, respectively, as reading units. As the sequence program PR1 and the input / output data IO1, those recorded on an appropriate storage medium can be used.
Is input from the outside through.

【0032】本実施形態では、シーケンスプログラムP
R1として、図3に示す内容のものを想定しており、図
示するシーケンスプログラムPR1は、PLCを動作さ
せるシーケンスプログラムPR1の一部分であるが、1
つの処理を完結させるための一連の制御を行う部分を表
している。図示例ではシーケンスプログラムPR1がラ
ダー図の形式で表現され、5個の入力X0,X1,X
2,X3,X7と3個の出力Y10,Y20,Y21と
を備える。
In this embodiment, the sequence program P
It is assumed that R1 has the content shown in FIG. 3, and the illustrated sequence program PR1 is a part of the sequence program PR1 for operating the PLC.
It represents a part that performs a series of controls for completing one process. In the illustrated example, the sequence program PR1 is expressed in the form of a ladder diagram, and five inputs X0, X1, X
2, X3, X7 and three outputs Y10, Y20, Y21.

【0033】入出力データ読込手段12により読み込ま
れた入出力データIO1は入出力動作解読手段13に入
力される。制御対象の動作タイミングの要求仕様として
与えられる入出力データIO1は一般に、図4(a)の
ように、シーケンスプログラムPR1に関連付けて入力
X0,X1,X2,X3,X7および出力Y10,Y2
0,Y21のオンオフを表すタイムチャートの形式で与
えられている。入出力動作解読手段13では、タイミン
グ決定手段13aにより決められる適宜のタイミングで
時刻毎の入力X0,X1,X2,X3,X7および出力
Y10,Y20,Y21の組合せが抽出する(抽出時刻
を図4(a)では0〜9の数字で示している)。つま
り、図4(b)のように時刻毎の入出力の組み合わせを
それぞれデータ組(図4(b)の縦一列がそれぞれデー
タ組になる)として抽出したデータテーブル14を作成
する。図4(b)において「0」はオフ、「1」はオン
を示している。タイミング決定手段13aは、一定の時
間間隔でデータ組を抽出してもよいが、入出力の変化点
(立ち上がりと立ち下がり)の時刻毎に変化点の直後の
データ組を抽出してもよい。このようにして求めたデー
タ組は、PLCの各瞬間ごとの入力X0,X1,X2,
X3,X7および出力Y10,Y20,Y21の状態を
表している。
The input / output data IO1 read by the input / output data reading means 12 is input to the input / output operation decoding means 13. The input / output data IO1 given as a required specification of the operation timing of the controlled object is generally associated with the sequence program PR1 and has inputs X0, X1, X2, X3, X7 and outputs Y10, Y2 as shown in FIG.
It is given in the form of a time chart showing ON / OFF of 0, Y21. The input / output operation decoding means 13 extracts a combination of inputs X0, X1, X2, X3, X7 and outputs Y10, Y20, Y21 at each time at an appropriate timing determined by the timing determining means 13a (the extraction time is shown in FIG. 4). (In (a), it is shown by the number of 0-9.) That is, as shown in FIG. 4B, the data table 14 is created by extracting the combination of input and output at each time as a data set (one vertical column in FIG. 4B becomes a data set). In FIG. 4B, “0” indicates off and “1” indicates on. The timing determining means 13a may extract the data set at a fixed time interval, or may extract the data set immediately after the change point at each input / output change point (rise and fall). The data set obtained in this way is used as inputs X0, X1, X2,
It shows the states of X3, X7 and outputs Y10, Y20, Y21.

【0034】プログラム読込手段11により読み込まれ
たシーケンスプログラムPR1と、入出力データIO1
に基づいて作成されたデータテーブル14とは、次動作
判定手段15に与えられ、入力されたシーケンスプログ
ラムPR1が要求仕様として与えられた入出力データI
O1を満たすか否かが検証される。次動作判定手段15
では、要求仕様から得られた各データ組をシーケンスプ
ログラムPR1に順次適用し、シーケンスプログラムP
R1の入力X0,X1,X2,X3,X7にデータ組を
適用したときに、シーケンスプログラムPR1における
入出力の論理関係では得られない出力Y10,Y20,
Y21が生じているときにシーケンスプログラムPR1
が要求仕様を満たしていないと判定する。つまり、次動
作判定手段15では、データ組をシーケンスプログラム
PR1に適用したときにシーケンスプログラムPR1に
よって得られる出力Y10,Y20,Y21とデータ組
の出力Y10,Y20,Y21とのオンオフが異なって
いるときに、シーケンスプログラムPR1における入力
X0,X1,X2,X3,X7と出力Y10,Y20,
Y21との論理的な結合関係(論理和、論理積、否定の
関係)に矛盾(以下、「論理矛盾」という)があると判
断する。
The sequence program PR1 read by the program reading means 11 and the input / output data IO1
And a data table 14 created based on the input / output data I and the input sequence program PR1 given as a required specification.
It is verified whether O1 is satisfied. Next operation determination means 15
Then, the data sets obtained from the required specifications are sequentially applied to the sequence program PR1, and the sequence program P1
When a data set is applied to inputs X0, X1, X2, X3, and X7 of R1, outputs Y10, Y20,
Sequence program PR1 when Y21 occurs
Is determined not to satisfy the required specifications. That is, the next operation determining means 15 determines whether the output Y10, Y20, Y21 obtained by the sequence program PR1 when the data set is applied to the sequence program PR1 is different from the output Y10, Y20, Y21 of the data set. In the sequence program PR1, inputs X0, X1, X2, X3, X7 and outputs Y10, Y20,
It is determined that there is an inconsistency (hereinafter, referred to as "logical inconsistency") in the logical connection relationship (logical OR, AND, and negation) with Y21.

【0035】たとえば、図3に示したシーケンスプログ
ラムPR1に対して、図4(b)に示すデータ組DT1
を適用すると、シーケンスプログラムPR1では、入力
X1,X2の論理積によって出力Y10が決定されるの
に対して、データ組DT1では入力X1がオフかつ入力
X2がオンであるときに出力Y10がオンであるから論
理矛盾を生じている。本実施形態において入出力データ
IO1は要求仕様によって与えられ、データ組DT1は
要求仕様に基づくものであるから誤りはないと仮定して
よく、したがって論理矛盾はシーケンスプログラムPR
1の誤りを原因として生じたと考えることができる。な
お、図3においてはシーケンスプログラムPR1をラダ
ー図で表したが、シーケンスプログラムPR1をたとえ
ばニモニックを用いて記述する場合でも同様の処理が可
能である。
For example, for the sequence program PR1 shown in FIG. 3, a data set DT1 shown in FIG.
Is applied, the output Y10 is determined by the logical product of the inputs X1 and X2 in the sequence program PR1, whereas the output Y10 is on when the input X1 is off and the input X2 is on in the data set DT1. There is a logical contradiction. In the present embodiment, the input / output data IO1 is given by the required specification, and since the data set DT1 is based on the required specification, it may be assumed that there is no error.
1 can be considered to have occurred. Although the sequence program PR1 is shown in a ladder diagram in FIG. 3, the same processing can be performed when the sequence program PR1 is described using, for example, a mnemonic.

【0036】要するに、次動作判定手段15において
は、データテーブル14に含まれる各データ組のうち入
力となるデータをシーケンスプログラムPR1に順次適
用し、そのときのデータ組の出力とシーケンスプログラ
ムPR1により得られた出力とを比較し、両者が不一致
であると論理矛盾が生じていると判断する。また、デー
タテーブル14のすべてのデータ組について論理矛盾が
生じなければ、シーケンスプログラムPR1が要求仕様
を満たすものと判断する。要するに、シーケンスプログ
ラムPR1と要求仕様との整合性によってシーケンスプ
ログラムPR1と要求仕様との間の論理矛盾の有無を判
定するのである。
In short, the next operation determining means 15 sequentially applies input data of each data set included in the data table 14 to the sequence program PR1, and obtains the output of the data set at that time and the sequence program PR1. The output and the output are compared, and if they do not match, it is determined that a logical contradiction has occurred. If there is no logical inconsistency in all data sets in the data table 14, it is determined that the sequence program PR1 satisfies the required specifications. In short, it is determined whether there is a logical inconsistency between the sequence program PR1 and the required specification based on the consistency between the sequence program PR1 and the required specification.

【0037】ところで、次動作判定手段15では上述の
ような論理矛盾を検出すると、シーケンスプログラムP
R1において論理矛盾を生じた出力から遡り、この出力
に関連する入力および出力(つまり、この出力の決定に
要する入力および出力)を追跡して抽出する(この処理
を本実施形態では「ラダーカバレッジ」と呼ぶ)。ラダ
ーカバレッジによって、論理矛盾を生じた出力に関連す
る入力および出力と、その論理的な結合関係とが抽出さ
れるから、データテーブル14と照合することによっ
て、論理矛盾の原因箇所を推論することが可能になる。
When the next operation judging means 15 detects the above logical inconsistency, the sequence program P
R1 is traced back from the output where the logical contradiction occurred, and the input and output related to this output (that is, the input and output required to determine this output) are tracked and extracted (this processing is referred to as “ladder coverage” in this embodiment). ). Since the ladder coverage extracts the input and output related to the output causing the logical inconsistency and its logical connection, it is possible to infer the cause of the logical inconsistency by collating with the data table 14. Will be possible.

【0038】上述した例では、出力Y10について論理
矛盾が発生しており、ラダーカバレッジを行えば、入力
X1,X2(入力)の論理積(結合関係)が出力Y10
であることがわかるから、これらについて論理矛盾の原
因箇所を推論する。まず第1には、図4(b)のデータ
組DT1をシーケンスプログラムPR1に適用したとき
に論理矛盾を生じたのであるから、出力Y10がオンで
あるべきであるのに、シーケンスプログラムPR1にお
いては出力Y10がオンではないという意味で、「出力
Y10が出力されていない」という推論結果が得られ
る。また、出力Y10を決定するのは、2つの入力X
1,X2と、入力X1,X2の結合関係とであるから、
「入力X1,X2が誤っている」、「入力X1,X2の
結合関係が誤っている」という原因箇所についての推論
結果が得られる。これらの推論結果のメッセージは、デ
ィスプレイ装置の画面上に要求仕様のタイムチャートと
ともに一覧表示される。また、タイムチャートの中には
どの時点で論理矛盾が発生したかの位置がカーソル線
(縦線)によって示される。したがって、シーケンスプ
ログラムPR1の作成者は、画面上に一覧表示された箇
所について、タイムチャートを参照しながらシーケンス
プログラムPR1を修正すればよいことになり、シーケ
ンスプログラムPR1のデバッグ作業を容易に行うこと
ができる。要するに、ラダーカバレッジを行うことによ
って、論理矛盾の原因箇所の範囲を絞り込むことができ
るのである。
In the above-described example, a logical contradiction occurs in the output Y10, and if ladder coverage is performed, the logical product (association relation) of the inputs X1 and X2 (inputs) becomes the output Y10.
Therefore, the cause of the logical contradiction is inferred for these. First, when the data set DT1 of FIG. 4 (b) is applied to the sequence program PR1, a logical contradiction occurs. Therefore, although the output Y10 should be on, the sequence program PR1 has An inference result that “the output Y10 is not output” is obtained in the sense that the output Y10 is not on. The output Y10 is determined by two inputs X
1, X2 and the connection relationship between the inputs X1, X2,
An inference result is obtained for the cause of "the inputs X1 and X2 are incorrect" and "the connection relationship between the inputs X1 and X2 is incorrect". These inference result messages are displayed in a list on the screen of the display device together with a time chart of the required specifications. In the time chart, the position at which the logical contradiction occurred is indicated by a cursor line (vertical line). Therefore, the creator of the sequence program PR1 only needs to modify the sequence program PR1 for the places listed on the screen while referring to the time chart, so that the sequence program PR1 can be easily debugged. it can. In short, by performing ladder coverage, the range of the cause of the logical inconsistency can be narrowed down.

【0039】シーケンスプログラムPR1のデバッグ作
業をさらに容易にするために、上述のように論理矛盾の
原因箇所を推論するだけではなく、論理矛盾の原因箇所
に対して論理矛盾を解消するためのシーケンスプログラ
ムPR1の修正案が作成され、作成された修正案が結果
出力手段16に含まれる出力装置としてのディスプレイ
装置に示される。論理矛盾を解消する修正案は、論理矛
盾を生じた箇所の入力と出力との結合関係を次動作判定
手段15に設けたルールベースに照合することによって
推論される。推論結果は入力に関するオンオフの反転
(否定)あるいは入力の結合関係の変更という形で与え
られる。
In order to further facilitate the debugging work of the sequence program PR1, not only the inference of the cause of the logical inconsistency as described above, but also a sequence program for eliminating the logical inconsistency for the cause of the logical inconsistency A correction plan for PR1 is prepared, and the prepared correction plan is shown on a display device as an output device included in the result output means 16. The amendment for resolving the logical inconsistency is inferred by checking the connection relationship between the input and the output at the location where the logical inconsistency has occurred with the rule base provided in the next operation determining means 15. The inference result is given in the form of inversion (negation) of on / off with respect to the input or change of the connection relation of the input.

【0040】上述した例について示すと、2つの入力X
1,X2の論理演算によって1つの出力Y10を得る関
係であるから、このような形式では論理矛盾が生じたと
きの修正案として、各入力X1,X2について一方を反
転するか(つまり、常開接点ならば常閉接点に変更し、
常閉接点ならば常開接点に変更する)、2つの入力X
1,X2の結合関係を論理積とするか、2つの入力X
1,X2の結合関係を論理和とするか、2つの入力X
1,X2の一方を削除するかの修正案が検討される。通
常は複数種類の修正案が抽出されるから、各修正案をシ
ーケンスプログラムPR1に折り込んだ後に、論理矛盾
を生じたデータ組を用いて論理矛盾の発生の有無を再度
検証する。ここで、すべての修正案について検証を行
い、論理矛盾が解消されていれば、その修正案を結果出
力手段16を通してディスプレイ装置に出力する。シー
ケンスプログラムPR1の実際の修正は人手によって行
うことになるが、修正個所と修正内容とを絞り込んでい
るから、シーケンスプログラムPR1の修正を容易に行
うことができる。
In the example described above, two inputs X
Since one output Y10 is obtained by a logical operation of X1 and X2, in such a format, as a correction plan when a logical contradiction occurs, one of the inputs X1 and X2 is inverted (that is, normally open). If it is a contact, change it to a normally closed contact,
If it is a normally closed contact, change it to a normally open contact.)
The conjunction of 1, X2 is taken as a logical product, or two inputs X
1, or X2 is a logical sum or two inputs X
A correction plan for deleting one of X1 and X2 is considered. Normally, a plurality of types of correction plans are extracted. Therefore, after each correction plan is inserted into the sequence program PR1, the presence / absence of the occurrence of the logical inconsistency is verified again using the data set in which the logical inconsistency has occurred. Here, all the correction plans are verified, and if the logical contradiction is resolved, the correction plans are output to the display device through the result output unit 16. Although the actual modification of the sequence program PR1 is performed manually, the modification of the sequence program PR1 can be easily performed because the modification location and the modification content are narrowed down.

【0041】上述した処理手順をまとめると図2のよう
になる。すなわち、シーケンスプログラムPR1の開発
中においては、要求仕様として与えられる入出力データ
IO1から作成したデータ組をシーケンスプログラムP
R1に当てはめることにより、論理矛盾の有無を検証す
る(S1)。データ組のうちの1つでも論理矛盾を生じ
る場合には、ラダーカバレッジを行って、論理矛盾を生
じた出力に関連する入力を抽出し(S2)、その結果を
結果出力手段16を通してディスプレイ装置に表示す
る。このように、論理矛盾の原因箇所が絞り込まれる
と、その部分の入力と出力との関係を次動作判定手段1
5に設けたルールベースに照合することによってシーケ
ンスプログラムPR1の修正案を抽出する(S3)。次
に、抽出された修正案をシーケンスプログラムPR1の
中に埋め込んで(S4)、論理矛盾を生じたデータ組を
シーケンスプログラムPR1に再度適用し(S5)、こ
れによって論理矛盾が解消されるか否かを再度検証する
(S6)。ステップS6の検証により論理矛盾が解消さ
れた場合には、ステップS3において抽出された修正案
を提示するために出力する。ここで、ステップS3にお
いて抽出された修正案が複数存在する場合に、論理矛盾
を生じたデータ組による論理矛盾を解消する修正案も複
数存在することがある。この場合には、当該データ組に
よって論理矛盾が解消されるすべての修正案をディスプ
レイ装置に表示し、どの修正案を選択するかはシーケン
スプログラムPR1の作成者にまかせることとする。ま
た、シーケンスプログラムPR1が修正された後には、
図2の処理を再度繰り返して、データテーブル14のす
べてのデータ組についてシーケンスプログラムPR1と
の論理矛盾の有無を検証する。
FIG. 2 summarizes the above-described processing procedure. That is, during the development of the sequence program PR1, the data set created from the input / output data IO1 given as the required specification is stored in the sequence program P1.
By applying to R1, it is verified whether there is a logical contradiction (S1). If even one of the data sets causes a logical inconsistency, ladder coverage is performed to extract the input related to the output that caused the logical inconsistency (S2), and the result is sent to the display device through the result output means 16. indicate. As described above, when the cause of the logical inconsistency is narrowed down, the relationship between the input and output of that part is determined by the next operation determining means 1.
Then, a correction plan of the sequence program PR1 is extracted by collating with the rule base provided in S5 (S3). Next, the extracted correction plan is embedded in the sequence program PR1 (S4), and the data set having the logical contradiction is applied again to the sequence program PR1 (S5). Is verified again (S6). If the logical inconsistency is resolved by the verification in step S6, the correction plan extracted in step S3 is output for presentation. Here, when there are a plurality of correction plans extracted in step S3, there may be a plurality of correction plans for resolving the logical contradiction caused by the data set in which the logical contradiction has occurred. In this case, all the amendments whose logical contradiction is eliminated by the data set are displayed on the display device, and it is left to the creator of the sequence program PR1 to select which amendment is to be selected. After the sequence program PR1 is modified,
The process of FIG. 2 is repeated again to verify whether or not there is a logical inconsistency with the sequence program PR1 for all data sets in the data table 14.

【0042】なお、上述した例では1つのデータ組につ
いて論理矛盾が生じたときに、そのデータ組について論
理矛盾を解消するように修正案を設定しているが、1つ
のデータ組の論理矛盾だけではなく、そのデータ組の前
後の少なくとも1組のデータ組についても矛盾が生じな
いように修正案を設定すれば、修正案の信頼性をより向
上させることができ、結果的にシーケンスプログラムP
R1のデバッグ作業の効率がさらに向上することにな
る。
In the above example, when a logical inconsistency occurs in one data set, a correction plan is set so as to eliminate the logical inconsistency in that data set. However, if the correction plan is set so as not to cause inconsistency in at least one data set before and after the data set, the reliability of the correction plan can be further improved, and as a result, the sequence program P
The efficiency of the debugging work of R1 is further improved.

【0043】(第2の実施の形態)第1の実施の形態で
は、要求仕様として与えられる入出力データIO1には
誤りはなく、開発中のシーケンスプログラムPR1には
バグが含まれている可能性があるものとして、データ組
をシーケンスプログラムPR1に適用したときに論理矛
盾が生じると、論理矛盾の原因をシーケンスプログラム
PR1に求める構成とした。これに対して、本実施形態
ではすでに制御対象を制御しているシーケンスプログラ
ムPR2に対して、制御対象の実動作により得られた入
出力データIO2から得られたデータ組を適用し、論理
矛盾が生じたときにはその原因を制御対象に求めるもの
である。したがって、本実施形態の構成は図1に示した
第1の実施の形態と同様である。
(Second Embodiment) In the first embodiment, there is no error in the input / output data IO1 given as the required specification, and there is a possibility that the sequence program PR1 under development contains bugs. When there is a logical contradiction when a data set is applied to the sequence program PR1, the cause of the logical contradiction is determined in the sequence program PR1. On the other hand, in the present embodiment, the data set obtained from the input / output data IO2 obtained by the actual operation of the control target is applied to the sequence program PR2 which has already controlled the control target, and logical contradiction occurs. When it occurs, its cause is sought from the control target. Therefore, the configuration of this embodiment is the same as that of the first embodiment shown in FIG.

【0044】本実施形態では、基本的には制御対象にお
いて異常(故障)が生じた時刻の1組のデータ組を1次
元データとして入出力データIO2に用いるが、異常が
生じた時刻の前後のタイムチャートから第1の実施の形
態と同様にして作成したデータテーブル14を2次元デ
ータとして入出力データIO2に用いるようにしてもよ
い。つまり、入出力データIO2は制御対象に異常が生
じたときに入出力データ読込手段12に読み込まれる。
1次元データか2次元データかにはかかわらずシーケン
スプログラムPR2に適用すれば論理矛盾の有無を検証
することができる。本実施形態では、シーケンスプログ
ラムPR2が完成品であるから、論理矛盾が発生すれば
制御対象の異常と考えることができる。
In this embodiment, basically, one set of data at the time when an abnormality (failure) occurs in the control target is used as one-dimensional data in the input / output data IO2, but before and after the time when the abnormality occurs. The data table 14 created from the time chart in the same manner as in the first embodiment may be used as the two-dimensional data for the input / output data IO2. That is, the input / output data IO2 is read by the input / output data reading means 12 when an abnormality occurs in the control target.
Regardless of whether the data is one-dimensional data or two-dimensional data, if it is applied to the sequence program PR2, it is possible to verify whether there is a logical contradiction. In this embodiment, since the sequence program PR2 is a completed product, if a logical contradiction occurs, it can be considered that the control target is abnormal.

【0045】本実施形態においても第1の実施の形態と
同様に図6(a)のようなシーケンスプログラムPR2
を想定する。このシーケンスプログラムをニモニックを
用いて記述すると図6(b)のようになる。ここでは入
出力データIO2として2次元データを用いるものと
し、制御対象の異常発生時の前後において得られた入力
X0,X1,X2,X3,X10と出力Y20,Y21
と内部リレーR0とのオンオフの状態が入出力データI
O2として得られているものとする。つまり、第1の実
施の形態と同様にして、図7(a)のようなタイムチャ
ートを有する入出力データIO2について図7(b)の
ようなデータテーブル14を作成する。ここに、故障診
断を行う場合には、入出力データIO2のうちの各入力
および各出力の変化点ごとにデータ組を生成する。図7
(a)に実線で示す入出力データIO2は制御対象が正
常である場合であって、図7(a)に破線で示す入出力
データIO2は制御対象に故障が生じた場合の例を示し
ている。また、図7(b)のデータテーブルは図7
(a)に破線で示す状態に対応しており、「No.」の
欄における0〜9の数字は図7(a)における各変化点
を示す数字0〜9に対応している。正常時と異常時とで
はNo.4、No.5、No.7においてデータ組が変
化し、正常時においてはシーケンスプログラムPR2と
データ組とは整合しているから、故障時にはこれらのデ
ータ組では論理矛盾が生じることになる。
In this embodiment, as in the first embodiment, the sequence program PR2 shown in FIG.
Is assumed. This sequence program is described using mnemonics as shown in FIG. Here, it is assumed that two-dimensional data is used as the input / output data IO2, and inputs X0, X1, X2, X3, and X10 and outputs Y20, Y21 obtained before and after the occurrence of an abnormality in the control target.
ON / OFF state of the internal relay R0 and the input / output data I
It is assumed that it has been obtained as O2. That is, similarly to the first embodiment, the data table 14 as shown in FIG. 7B is created for the input / output data IO2 having the time chart as shown in FIG. 7A. Here, when performing a failure diagnosis, a data set is generated for each change point of each input and each output of the input / output data IO2. FIG.
FIG. 7A shows an example in which the input / output data IO2 indicated by a solid line indicates that the control target is normal, and FIG. 7A indicates an example in which the input / output data IO2 indicated by a broken line indicates that the control target has a failure. I have. Also, the data table of FIG.
7A corresponds to the state indicated by the broken line, and the numbers 0 to 9 in the column of “No.” correspond to the numbers 0 to 9 indicating the respective changing points in FIG. No. for normal and abnormal cases. 4, no. 5, no. 7, the data set changes, and the sequence program PR2 and the data set match in the normal state, so that in the event of a failure, logical inconsistency occurs in these data sets.

【0046】本実施形態では、このような論理矛盾の発
生に基づいて、制御対象における異常の発生箇所および
異常の発生原因となる入力を追跡する。異常の発生原因
によっては1次元データのみでは異常の発生箇所を特定
できないことがあるが、1次元データを適用する処理は
短時間で終了するから、まず1次元データで簡易的に異
常の発生箇所を検出し、1次元データでは異常の発生箇
所が検出されなかったときに2次元データを用いればよ
い。2次元データは異常の発生時点の前後の情報を含ん
でいるから、異常の発生箇所を確実に抽出することがで
きる。こうして異常の発生箇所が抽出されると、ルール
ベースに照合することによって、異常の発生原因の候補
を抽出することができる。ルールベースには、たとえば
図8のような形で各入力(原因信号)と異常原因とを対
応付けたルールが格納され、異常の発生箇所としての入
力が与えられると、異常の発生原因を抽出することがで
きる。
In the present embodiment, based on the occurrence of such a logical contradiction, the location where the abnormality occurs in the control target and the input that causes the abnormality are tracked. Depending on the cause of the abnormality, it may not be possible to identify the location of the abnormality using only the one-dimensional data. However, since the process of applying the one-dimensional data is completed in a short time, first, the location of the occurrence of the abnormality using the one-dimensional data is simply simplified. May be detected, and two-dimensional data may be used when no abnormal location is detected in the one-dimensional data. Since the two-dimensional data includes information before and after the time of occurrence of the abnormality, it is possible to reliably extract the location of the occurrence of the abnormality. When the location of the occurrence of the abnormality is extracted in this way, by collating with the rule base, it is possible to extract the candidate of the cause of the abnormality. The rule base stores a rule in which each input (cause signal) is associated with an abnormality cause in a form as shown in FIG. 8, for example, and when an input is given as an abnormality occurrence location, the abnormality occurrence cause is extracted. can do.

【0047】制御対象の故障の有無を検出する処理手順
をまとめると図5のようになる。すなわち、制御対象に
異常が生じたときには、1次元データないし2次元デー
タを入出力データとしてデータテーブルを作成し(もし
くは、異常発生時点のデータ組を抽出し)、PLCに実
装されているシーケンスプログラムにデータ組を適用す
る。こうしてシーケンスプログラムにデータ組を適用し
たときの論理矛盾の有無を検証し(S1)、論理矛盾が
生じていれば論理矛盾の生じている入力および出力を抽
出し(S2)、さらに入力か出力かを判別する(S
3)。出力(内部リレーを含む)である場合には、次動
作判定手段15においてラダーカバレッジを行うことで
故障の発生箇所(入力)を追跡する(S4)。ラダーカ
バレッジにより異常の発生箇所である入力が抽出される
か、ステップS3において入力と判断されている場合に
は、異常の原因箇所としての入力を抽出し(S5)、ル
ールベースに照合して異常の発生原因の候補を抽出する
(S6)。要するに、基本的には第1の実施の形態と同
様の処理によって、シーケンスプログラムPR2の中に
おいて異常の発生箇所である入力を検出し、この入力に
よって制御対象における異常の原因箇所および異常の発
生原因をルールベースにより特定するのである。他の構
成および動作は第1の実施の形態と同様である。
FIG. 5 summarizes the processing procedure for detecting the presence / absence of a failure in the control target. That is, when an abnormality occurs in the control target, a data table is created using one-dimensional data or two-dimensional data as input / output data (or a data set at the time of occurrence of the abnormality is extracted), and the sequence program mounted on the PLC is executed. Apply the data set to. In this way, it is verified whether or not there is a logical inconsistency when the data set is applied to the sequence program (S1). If there is a logical inconsistency, the input and output having the logical inconsistency are extracted (S2). Is determined (S
3). If it is an output (including an internal relay), the ladder coverage is performed by the next operation determination means 15 to track the location (input) of the failure (S4). The input which is the location where the abnormality has occurred is extracted by the ladder coverage, or if the input is determined in step S3, the input as the location where the abnormality is caused is extracted (S5) and collated with the rule base for the abnormality. A candidate for the cause of the occurrence is extracted (S6). In short, the input which is the location of the abnormality in the sequence program PR2 is detected by the processing basically similar to that of the first embodiment, and the input causes the location of the abnormality and the cause of the abnormality in the control target. Is specified by the rule base. Other configurations and operations are the same as those of the first embodiment.

【0048】(第3の実施の形態)本実施形態は、シー
ケンスプログラムの完成後にシーケンスプログラムを実
行することにより制御対象との整合性を検証しようとす
るものである。すなわち、シーケンスプログラムが要求
仕様を満たすように作成されているとしても、PLCと
制御対象との動作タイミングや制御対象の構成要素間の
動作タイミングにずれがあったり、制御対象を動作させ
るときに制御対象の構成要素間で干渉を生じたりするこ
とがある。このような現象は、要求仕様として与えられ
た入出力データに誤りが含まれている場合や、制御対象
の稼働中に制御対象の経時変化によって要求仕様として
最初に与えた入出力データとずれが生じてきた場合など
に生じる可能性がある。
(Third Embodiment) This embodiment is intended to verify the consistency with the control target by executing the sequence program after the completion of the sequence program. That is, even if the sequence program is created so as to satisfy the required specifications, there is a deviation in the operation timing between the PLC and the control target, the operation timing between the components to be controlled, and the control when the control target is operated. Interference may occur between components of interest. Such a phenomenon occurs when the input / output data given as the required specification contains an error, or when the controlled object changes over time during operation of the controlled object, there is a deviation from the input / output data originally given as the required specification. It may occur when it occurs.

【0049】そこで、本実施形態では制御対象を実際に
制御するのではなく、図9に示すように、制御対象を模
擬するシミュレーションモデル23を結果出力手段16
に設けたディスプレイ装置に表示するとともに、PLC
の動作を模擬する模擬制御手段22によりシーケンスプ
ログラムを実行してシミュレーションモデル23をディ
スプレイ装置の画面上で動作させるようにしてある。本
実施形態の機能は第1の実施の形態の装置ないし第2の
実施の形態の装置に付加してあり、プログラム読込手段
11およびデータ読込手段12は上述した実施形態のも
のと共通に用いている。ただし、本実施形態では、デー
タ読込手段12を通して与えられる入出力データのうち
入力データのみを用いることになる。たとえば、要求仕
様として与えられる入出力データのうち入力データのみ
を抽出して用いたり、稼働中の制御対象に設けたセンサ
などによって発生する入力データのみを用いる。また、
出力データは模擬制御手段22に入力データを与えるこ
とによって生成される。
Therefore, in this embodiment, instead of actually controlling the controlled object, as shown in FIG. 9, a simulation model 23 simulating the controlled object is output to the result output means 16.
Display on the display device provided in the
Is executed by the simulation control means 22 for simulating the above operation, and the simulation model 23 is operated on the screen of the display device. The function of this embodiment is added to the device of the first embodiment or the device of the second embodiment, and the program reading means 11 and the data reading means 12 are used in common with those of the above-described embodiment. I have. However, in the present embodiment, only input data is used among input / output data provided through the data reading unit 12. For example, of the input / output data given as required specifications, only input data is extracted and used, or only input data generated by a sensor or the like provided in an operating control target is used. Also,
The output data is generated by providing the simulation control means 22 with input data.

【0050】データ読込手段12を通して得られた入力
データはタイミング規制手段21に入力され、タイミン
グ規制手段21においては入力データの立ち上がりおよ
び立ち下がりをタイミング生成手段21aでクロック信
号として生成された基準タイミングに同期させる。つま
り、タイミング規制手段21では入力データのオンオフ
の最小間隔を基準タイミングの周期とする。タイミング
生成手段21aは基準タイミングの周期が可変であっ
て、基準タイミングの周期を変化させることによって制
御対象のタクトタイムを変化させたときのPLCと制御
対象との整合性を検証することが可能になっている。タ
イミング規制手段21から出力された入力データはPL
Cを模擬する模擬制御手段22に与えられ、入力データ
に対応する出力データが生成され、また結果出力手段1
6に設けたシミュレーションモデル23が制御される。
したがって、シミュレーションモデル23の動作をディ
スプレイ装置の画面上で確認することにより、制御対象
が正常に動作するか否かを容易に知ることができる。
The input data obtained through the data reading means 12 is input to the timing control means 21. The timing control means 21 sets the rise and fall of the input data to the reference timing generated as a clock signal by the timing generation means 21a. Synchronize. That is, the timing control unit 21 sets the minimum interval between the ON and OFF of the input data as the cycle of the reference timing. The timing generation means 21a can change the cycle of the reference timing and change the cycle of the reference timing to verify the consistency between the PLC and the control target when the tact time of the control target is changed. Has become. The input data output from the timing control means 21 is PL
C is provided to the simulation control means 22 for simulating C, and output data corresponding to the input data is generated.
The simulation model 23 provided in 6 is controlled.
Therefore, by checking the operation of the simulation model 23 on the screen of the display device, it can be easily known whether or not the control target operates normally.

【0051】たとえば、要求仕様における入力データが
図11(a)に示すものであるときに、タイミング生成
手段21aからの基準タイミングを図11(b)のよう
な周期で与え基準タイミングの立ち上がりによって入力
データをラッチするとすれば、図11(c)のような入
力データを模擬制御手段22に与えることができる。ま
た、図11(d)のような周期で基準タイミングを与え
ると、図11(e)のようになる。つまり、基準タイミ
ングが可変であることによって、1つの入力データから
立ち上がりおよび立ち下がりのタイミングが異なる入力
データを生成することができる。このように基準タイミ
ングを変更して模擬制御手段22を動作させたときの入
出力データおよびデータテーブル14の例を図12およ
び図13に示す。図12および図13において各図
(a)は入出力データのタイムチャートであり、各図
(b)は各図(a)に対応するデータテーブル14であ
る。また、図12は基準タイミングの周期を10mse
cとした場合、図13は5msecとした場合の例を示
している。このように、基準タイミングの周期を10m
sec、20msec、25msecなどに変化させて
シーケンスプログラムの動作を確認すれば、シーケンス
プログラムで対応可能な制御対象の動作速度を知ること
が可能になる。つまり、制御対象のタクトタイムを変化
させたときのシーケンスプログラムと制御対象との整合
性を検証することが可能になる。
For example, when the input data in the required specification is as shown in FIG. 11 (a), the reference timing from the timing generation means 21a is given in a cycle as shown in FIG. 11 (b) and input at the rise of the reference timing. If data is latched, input data as shown in FIG. 11C can be given to the simulation control means 22. When the reference timing is given in a cycle as shown in FIG. 11D, the result becomes as shown in FIG. That is, since the reference timing is variable, it is possible to generate input data having different rising and falling timings from one input data. FIGS. 12 and 13 show examples of input / output data and the data table 14 when the simulation control unit 22 is operated by changing the reference timing in this way. 12 and 13, each figure (a) is a time chart of input / output data, and each figure (b) is a data table 14 corresponding to each figure (a). FIG. 12 shows that the cycle of the reference timing is 10 msec.
FIG. 13 shows an example in the case of 5 msec. Thus, the cycle of the reference timing is 10 m
If the operation of the sequence program is confirmed by changing the speed to 20 msec, 25 msec, or the like, it becomes possible to know the operation speed of the control target that can be handled by the sequence program. That is, it is possible to verify the consistency between the sequence program and the control target when the tact time of the control target is changed.

【0052】ところで、工場設備のような制御対象は、
図14に示すように、それぞれ1つの処理を完結させる
複数個のブロックBL1〜BL3の集合として構成され
ることが多い。図示例では、部品を供給する投入部とし
てのブロックBL1と、部品の位置を監視して定位置に
調整する調整部としてのブロックBL2と、部品を組み
付けるベースマシン部としてのブロックBL3とが結合
されて制御対象として構成されている。つまり、ブロッ
クBL1の結果を受けてブロックBL2が動作し、さら
にブロックBL2の結果を受けてブロックBL3が動作
するように、ブロックBL1〜BL3が関連付けられて
いる。そこで、シミュレーションモデル23を各ブロッ
クBL1〜BL3に対応するサブモデルの組合せとして
構成してある。シミュレーションモデル23をサブモデ
ルの組合せとして構成することによって、制御対象とシ
ーケンスプログラムとの整合性の検証を行う部位の範囲
を絞ることが可能になり、作業を迅速に行うことが可能
になる。しかも、サブモデルとなるプログラムをライブ
ラリ化しておけば、各サブモデルを他の制御対象の構成
要素として組み込むことが可能になり、シミュレーショ
ンモデルを効率よく作成することが可能になる。
By the way, controlled objects such as factory equipment are:
As shown in FIG. 14, it is often configured as a set of a plurality of blocks BL1 to BL3 each completing one process. In the illustrated example, a block BL1 as an input unit for supplying a component, a block BL2 as an adjustment unit for monitoring the position of the component and adjusting it to a fixed position, and a block BL3 as a base machine unit for mounting the component are combined. Are configured as controlled objects. That is, the blocks BL1 to BL3 are associated so that the block BL2 operates in response to the result of the block BL1 and the block BL3 operates in response to the result of the block BL2. Therefore, the simulation model 23 is configured as a combination of sub-models corresponding to the blocks BL1 to BL3. By configuring the simulation model 23 as a combination of sub-models, it is possible to narrow down the range of the part for verifying the consistency between the control target and the sequence program, and to perform the operation quickly. In addition, if a program to be a sub model is stored in a library, each sub model can be incorporated as another component to be controlled, and a simulation model can be efficiently created.

【0053】一方、このような制御対象に対応するシー
ケンスプログラムは、各ブロックBL1〜BL3に対応
する部分ごとのモジュールの組み合わせとして作成され
る。つまり、ブロックBL1に対応するモジュールの結
果を受けてブロックBL2に対応するモジュールが実行
され、ブロックBL2に対応するモジュールの結果を受
けてブロックBL3に対応するモジュールが実行される
ようにモジュール間が関連付けられることになる。シー
ケンスプログラムを上述のような基準でモジュール化し
ておけば、第1の実施の形態や第2の実施の形態におい
てラダーカバレッジを行う範囲をモジュールの範囲とす
ることが可能になり、矛盾の発生箇所や調整箇所の特定
が容易になる。なお、ブロックBL1〜BL3ごとにモ
ジュールを構成してライブラリ化しておけば、他の制御
対象において同様のブロックBL1〜BL3を用いる際
にモジュールを再利用することができ、シーケンスプロ
グラムの作成効率を高めることができる。
On the other hand, a sequence program corresponding to such an object to be controlled is created as a combination of modules for each part corresponding to each of the blocks BL1 to BL3. That is, the modules are associated with each other such that the module corresponding to the block BL2 is executed in response to the result of the module corresponding to the block BL1, and the module corresponding to the block BL3 is executed in response to the result of the module corresponding to the block BL2. Will be done. If the sequence program is modularized based on the above-described standard, the range in which ladder coverage is performed in the first and second embodiments can be set as the range of the module. It is easy to specify the adjustment point. If a module is configured for each of the blocks BL1 to BL3 and is made into a library, the module can be reused when the same block BL1 to BL3 is used in another control target, and the efficiency of creating a sequence program is improved. be able to.

【0054】シーケンスプログラムをモジュールに分割
する技術として、制御対象を構成するブロックBL1〜
BL3を単位とするのではなく、シーケンスプログラム
自身の構造に基づいてモジュール化することも可能であ
る。いま、シーケンスプログラムをラダー図で表せば図
15(a)のようになり、ニモニックで表せば図15
(b)のようになるものとする。ラダー図においては1
つの出力に接続されている線が、この出力を決定する入
力であるから、シーケンスプログラムを各出力ごとにモ
ジュールとして分割し、各モジュールにおける出力が他
のモジュールの入力として用いられるときには、入力と
なる側のモジュールを出力となる側のモジュールの下位
とする関係で階層化することができる。ここで、図示例
の入出力の関連を一覧できるように表形式で表すと図1
6のようになる。図16において左欄は入力、右欄は出
力であり、このような入出力の関係は第1の実施の形態
や第2の実施の形態において用いたラダーカバレッジの
技術を採用して各出力に関連する入力を遡ることによっ
て容易に知ることができる。図示例では、出力Y10は
内部リレー(制御対象への入出力ではなくメモリ上のフ
ラグ)R0に対する入力であって、かつ内部リレーR0
は出力Y21の入力になっており、出力Y21は他の出
力を決める入力にはなっていない。また、出力Y20は
シーケンスプログラムの他の箇所での入力になっていな
い。そこで、出力Y20と出力Y21とは同位の階層と
し、出力Y10は出力Y21の下位の階層として、各出
力Y10,Y20,Y21を階層化することができる。
すなわち、図16において各出力Y10,Y20,Y2
1に対応したモジュールM1〜M3を設定しているとす
れば、図17に示すような階層関係をシーケンスプログ
ラムから求めることができる。このようにシーケンスプ
ログラムをモジュール化するとともに階層化しておけ
ば、矛盾が生じたときに矛盾の発生箇所や調整箇所を特
定するために行うラダーカバレッジの範囲を制限するこ
とができる。
As a technique for dividing a sequence program into modules, blocks BL1 to BL1 constituting a control target are used.
Instead of using BL3 as a unit, it is also possible to modularize based on the structure of the sequence program itself. Now, if the sequence program is represented by a ladder diagram, it becomes as shown in FIG.
(B). 1 in the ladder diagram
Since the line connected to one output is the input that determines this output, the sequence program is divided as a module for each output, and becomes an input when the output in each module is used as an input of another module It is possible to create a hierarchy in which the module on the side is lower than the module on the output side. Here, if the input / output relations in the illustrated example are represented in a table format so that they can be listed, FIG.
It looks like 6. In FIG. 16, the left column is an input, and the right column is an output. Such an input / output relationship is applied to each output by employing the ladder coverage technique used in the first and second embodiments. The relevant input can be easily known by going back. In the illustrated example, the output Y10 is an input to the internal relay (not an input / output to the control target but a flag on a memory) R0, and the internal relay R0
Is an input of the output Y21, and the output Y21 is not an input for determining another output. Further, the output Y20 is not an input at any other part of the sequence program. Therefore, the outputs Y20, Y20, and Y21 can be hierarchized, with the output Y20 and the output Y21 being the same level, and the output Y10 being the lower level of the output Y21.
That is, in FIG. 16, each output Y10, Y20, Y2
If the modules M1 to M3 corresponding to 1 are set, the hierarchical relationship as shown in FIG. 17 can be obtained from the sequence program. If the sequence programs are modularized and hierarchized in this way, the range of the ladder coverage for specifying the location where the inconsistency occurs and the adjustment location when the inconsistency occurs can be limited.

【0055】本実施形態を用いて完成後のシーケンスプ
ログラムと制御対象との整合性を検証する際の処理手順
について以下に例を示す。本実施形態では、図10に示
すように、シミュレーションを行う前に、シーケンスプ
ログラムと要求仕様との論理矛盾の有無を検証する(S
1)。これには模擬制御手段22により得られる入出力
データからデータテーブル14を作成して第1の実施の
形態と同様の技術を適用する。つまり、各データ組をシ
ーケンスプログラムに適用して論理矛盾の有無を検証す
る。論理矛盾があれば、その出力から遡って関連する入
力を抽出するラダーカバレッジを行うことにより論理矛
盾の箇所を絞り込む(S2)。論理矛盾の箇所を絞り込
めば、その箇所がどのサブモデルに対応するかを知るこ
とができるから、サブモデルを選択し(S3)、シーケ
ンスプログラムにおいてサブモデルを動作させる部分を
模擬制御手段22によって実行する(S4)。模擬制御
手段22によりシーケンスプログラムを実行した結果は
シミュレーションモデル23の動作としてディスプレイ
装置の画面上に表示される(S5)。ここで、シミュレ
ーションモデルの動きによって異常の発生箇所を知るこ
とができる。シミュレーションモデルの動きに異常があ
れば(S6)、論理矛盾を生じた部位に相当する入力デ
ータを修正して(S7)、サブモデルを再度動作させる
(S8)。入力データの修正は、論理矛盾を生じたと考
えられる入力データのオンオフを反転する修正とする。
ステップS8においてサブモデルを動作させた結果はデ
ィスプレイ装置の画面上に表示され(S9)、ここで動
作の異常がなければ論理矛盾を生じた原因箇所が修正し
た入力データの箇所であるとして、論理矛盾の原因箇所
を出力する(S10)。論理矛盾を解消するにはどの入
力の値を反転させればよいかを知ることができ、用意さ
れたシーケンスプログラムによって制御対象を動作させ
るには、どの箇所でどのようなタイミングの信号を発生
させればよいかがわかり、実際の制御対象の調整が容易
になるのである。ここにおいて、基準タイミングを変化
させることによっても動作の異常を解消することが可能
な場合もあるから、必要に応じて基準タイミングを変化
させて同様の作業を行うようにしてもよい。
An example of the processing procedure for verifying the consistency between the completed sequence program and the control target using this embodiment will be described below. In the present embodiment, as shown in FIG. 10, before performing the simulation, it is verified whether or not there is a logical inconsistency between the sequence program and the required specification (S
1). For this purpose, the data table 14 is created from the input / output data obtained by the simulation control means 22, and the same technique as in the first embodiment is applied. That is, each data set is applied to a sequence program to verify whether there is a logical inconsistency. If there is a logical inconsistency, ladder coverage is performed to extract a related input retroactively from the output, thereby narrowing down the part of the logical inconsistency (S2). If the location of the logical contradiction is narrowed down, it is possible to know which sub-model the location corresponds to. Therefore, the sub-model is selected (S3), and the part for operating the sub-model in the sequence program is controlled by the simulation control means 22. Execute (S4). The result of executing the sequence program by the simulation control means 22 is displayed on the screen of the display device as the operation of the simulation model 23 (S5). Here, the location of occurrence of an abnormality can be known from the movement of the simulation model. If there is an abnormality in the movement of the simulation model (S6), the input data corresponding to the part where the logical contradiction occurs is corrected (S7), and the sub model is operated again (S8). The correction of the input data is a correction for inverting the on / off of the input data which is considered to have caused the logical contradiction.
The result of operating the sub-model in step S8 is displayed on the screen of the display device (S9). If there is no abnormality in the operation, it is assumed that the cause of the logical inconsistency is the corrected input data location. The cause of the inconsistency is output (S10). It is possible to know which input value should be inverted to resolve the logic inconsistency. This makes it easy to adjust the actual control target. Here, there is a case where the abnormal operation can be eliminated by changing the reference timing. Therefore, the same operation may be performed by changing the reference timing as needed.

【0056】ところで、上述したように模擬制御手段2
2においては入力データに基づいて出力データを生成す
るから、この出力データを入力データと併せることによ
って入出力データに相当するタイムチャートを生成する
ことができる。このようにして生成されたタイムチャー
トは結果出力手段16を通してディスプレイ装置の画面
に表示される。また、このタイムチャートとシミュレー
ションモデル23とを併せてディスプレイ装置の画面に
表示し、シミュレーションモデル23の動きをタイムチ
ャートに関連付けて表示すれば、シミュレーションモデ
ル23の動作に異常があるときに、どの入力ないし出力
に関連して異常が生じたのかを容易に知ることができる
ことになる。あるいはまた、模擬制御手段22により生
成したタイムチャートを要求仕様のタイムチャートとと
もにディスプレイ装置の画面に表示し、両者の比較によ
り相違点を抽出し、抽出結果のメッセージを可視化して
出力するようにしてもよい。
By the way, as described above, the simulation control means 2
In 2, the output data is generated based on the input data. Therefore, a time chart corresponding to the input / output data can be generated by combining the output data with the input data. The time chart generated in this way is displayed on the screen of the display device through the result output means 16. In addition, if the time chart and the simulation model 23 are displayed together on the screen of the display device, and the movement of the simulation model 23 is displayed in association with the time chart, when there is an abnormality in the operation of the simulation model 23, any input In addition, it is possible to easily know whether an abnormality has occurred in relation to the output. Alternatively, the time chart generated by the simulation control means 22 is displayed on the screen of the display device together with the time chart of the required specification, the difference is extracted by comparing the two, the message of the extraction result is visualized and output. Is also good.

【0057】なお、上述したように、通信手段17を通
してシーケンスプログラムや入出力データを受け取るよ
うにすれば、PLCや制御対象が遠方に設置されている
場合でも、第2の実施の形態において説明した故障診断
の技術や第3の実施の形態において説明した模擬制御手
段22を用いることによって、PLCや制御対象の異常
を容易に検出することができ、遠隔地に設置されたPL
Cや制御対象であってもシーケンスプログラムの修正や
制御対象の調整の指示が可能になる。
As described above, if the sequence program and the input / output data are received through the communication means 17, even if the PLC or the control target is installed at a remote place, the description has been given in the second embodiment. By using the fault diagnosis technique and the simulation control means 22 described in the third embodiment, it is possible to easily detect an abnormality in the PLC or the control target, and to use a PL installed in a remote place.
Even for C or the control target, the sequence program can be corrected or the control target can be adjusted.

【0058】たとえば、制御対象に原因不明の異常が生
じたときに、シーケンスプログラムおよび実動作の入出
力データをシーケンスプログラムの開発元に転送し、開
発元において制御対象の動作を模擬制御手段22で模擬
したり、次動作判定手段15で整合性を検証したりする
ことにより、異常の箇所および原因を追跡することが可
能になる。
For example, when an unknown error occurs in the controlled object, the sequence program and the input / output data of the actual operation are transferred to the developer of the sequence program. By simulating or verifying the consistency by the next operation determination unit 15, it is possible to track the location and cause of the abnormality.

【0059】上述した実施形態は図1ないし図9に示し
た装置をコンピュータにより実現する例を示したが、P
LCに組み込むようにしてもよい。この場合には模擬制
御手段22としてPLCを用いることができるから、よ
り正確なシミュレーションが可能になる。
The above-described embodiment shows an example in which the apparatus shown in FIGS. 1 to 9 is realized by a computer.
You may make it incorporate in LC. In this case, since a PLC can be used as the simulation control means 22, more accurate simulation can be performed.

【0060】[0060]

【発明の効果】請求項1の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入出力データが読込手段を通して入力され、
次動作判定手段により所定時刻における入出力データの
組合せをシーケンスプログラムに適用したときのシーケ
ンスプログラムと入出力データの組合せとの整合性から
論理矛盾の有無を判定するとともに、論理矛盾が生じて
いるときにはシーケンスプログラムのうち論理矛盾を生
じた入出力の組合せから遡って関連する入出力を追跡す
ることにより論理矛盾の原因を推論し、推論結果を結果
出力手段から出力することを特徴としており、シーケン
スプログラムと入出力データの組合せとの整合性によっ
て論理矛盾の有無を判断するから、論理演算のみの簡単
な処理でシーケンスプログラムと入出力データとの整合
性を検証することができる。しかも、論理矛盾があると
きには入出力を遡って追跡することにより論理矛盾の原
因を推論することができるから、論理矛盾の原因箇所を
修正するように対処することで異常に対して容易に対処
することができる。さらに、論理矛盾が生じた箇所に関
連した箇所のみで論理矛盾の原因箇所を推論するから比
較的短時間で原因箇所を見つけることが可能になる。
According to a first aspect of the present invention, a sequence program for operating a programmable controller and input / output data of the programmable controller associated with the sequence program are input through a read unit,
The next operation determining means determines whether or not there is a logical inconsistency based on the consistency between the sequence program and the combination of the input and output data when the combination of the input and output data at the predetermined time is applied to the sequence program. The sequence program is characterized by inferring the cause of the logic inconsistency by tracing the related inputs and outputs retroactively from the combination of the inputs and outputs that caused the logic inconsistency, and outputting the inference result from the result output means. The presence / absence of a logical inconsistency is determined based on the consistency between the combination of the sequence program and the input / output data. Therefore, the consistency between the sequence program and the input / output data can be verified by a simple process using only the logical operation. In addition, when there is a logical inconsistency, the cause of the logical inconsistency can be inferred by tracing back and forth the input / output, so that it is possible to easily cope with the abnormality by correcting the cause of the logical inconsistency. be able to. Furthermore, since the cause of the logical contradiction is inferred only from the part related to the part where the logical contradiction occurs, the cause can be found in a relatively short time.

【0061】請求項2の発明は、請求項1の発明におい
て、前記入出力データを制御対象の動作タイミングの要
求仕様を表す入出力データとし、この入出力データから
入出力動作解読手段を用いて時刻毎の組合せをデータ組
として抽出することによりデータ組の時系列であるデー
タテーブルを作成し、前記次動作判定手段ではデータテ
ーブルの各データ組とシーケンスプログラムとの整合性
から論理矛盾の有無を判定することにより、シーケンス
プログラムの中での論理矛盾の原因箇所を推論すること
を特徴としており、入出力データからデータテーブルを
作成し、データ組をシーケンスプログラムに適用して論
理矛盾の有無を検出するから、シーケンスプログラムを
実行することなくデータテーブルにおけるデータ組をシ
ーケンスプログラムに適用するだけの簡単な処理でシー
ケンスプログラムにおける誤り箇所を比較的容易に発見
することができる。
According to a second aspect of the present invention, in the first aspect of the present invention, the input / output data is used as input / output data representing a required specification of operation timing of a control target, and input / output operation decoding means is used from the input / output data. A data table which is a time series of the data set is created by extracting a combination for each time as a data set, and the next operation determining means determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. It is characterized by inferring the cause of the logical inconsistency in the sequence program by making a judgment, creating a data table from the input / output data, and applying the data set to the sequence program to detect the presence or absence of the logical inconsistency. Data sets in the data table without executing the sequence program. Can be relatively easily found the error location in the sequence program in a simple process that only apply to.

【0062】請求項3の発明は、請求項2の発明におい
て、前記結果出力手段では前記要求仕様のうち論理矛盾
を生じたデータ組を含む部分のタイムチャートを可視化
して出力するとともに前記タイムチャートの中に論理矛
盾を生じたタイミングを示し、前記次動作判定手段によ
り推論された矛盾の原因箇所および内容を表すメッセー
ジをタイムチャートとともに可視化して出力することを
特徴としており、原因箇所および内容を表すメッセージ
をタイムチャートとともに可視化して出力するから、タ
イムチャートによって論理矛盾の箇所を容易に特定する
ことができるとともに、メッセージによって論理矛盾の
原因箇所を特定するのが容易である。
According to a third aspect of the present invention, in the second aspect of the present invention, the result output means visualizes and outputs a time chart of a part including a data set having a logical inconsistency in the required specifications, and outputs the time chart. Indicates the timing at which a logical inconsistency has occurred, and outputs a message indicating the cause and content of the inconsistency inferred by the next operation determination means together with a time chart, and outputs the cause and content. Since the displayed message is visualized and output together with the time chart, the location of the logical contradiction can be easily specified by the time chart, and the cause of the logical contradiction can be easily specified by the message.

【0063】請求項4の発明は、請求項2または請求項
3の発明において、前記次動作判定手段により推論され
た前記シーケンスプログラム中での論理矛盾の原因箇所
について修正案を作成し、作成した修正案のうち論理矛
盾を解消する修正案を結果出力手段により可視化して出
力することを特徴としており、論理矛盾を解消する修正
案が示されるから、論理矛盾を生じた原因に対する対処
が容易になる。
According to a fourth aspect of the present invention, in the second or third aspect, a correction plan is created and created for a cause of a logical inconsistency in the sequence program inferred by the next operation determining means. It is characterized in that the amendment that resolves the logical inconsistency is visualized and output by the result output means, and the amendment that resolves the logical inconsistency is indicated, so that it is easy to deal with the cause of the inconsistency. Become.

【0064】請求項5の発明は、請求項1の発明におい
て、前記入出力データを実動作時の制御対象の異常発生
の時刻における入出力データとし、前記次動作判定手段
ではこの入出力データのデータ組とシーケンスプログラ
ムとの整合性から論理矛盾の有無を判定することによ
り、制御対象について論理矛盾の原因箇所を推論するこ
とを特徴としており、論理矛盾の有無によって制御対象
における異常の有無を簡単な処理で容易に抽出すること
ができる。
According to a fifth aspect of the present invention, in the first aspect of the present invention, the input / output data is used as input / output data at the time of occurrence of an abnormality in a control target during actual operation, and the next operation determining means uses the input / output data of the input / output data. By determining whether there is a logical inconsistency based on the consistency between the data set and the sequence program, it is possible to infer the cause of the logical inconsistency for the controlled object. It can be easily extracted by simple processing.

【0065】請求項6の発明は、請求項1の発明におい
て、前記入出力データを制御対象の異常発生の時刻を含
む所定の時間範囲の入出力データとし、この入出力デー
タから入出力動作解読手段を用いて時刻毎の組合せをデ
ータ組として抽出することによりデータ組の時系列であ
るデータテーブルを作成し、前記次動作判定手段ではデ
ータテーブルの各データ組とシーケンスプログラムとの
整合性から論理矛盾の有無を判定することにより、制御
対象について論理矛盾の原因箇所を推論することを特徴
としており、論理矛盾の有無によって制御対象における
異常の有無を簡単な処理で容易に抽出することができ
る。
According to a sixth aspect of the present invention, in the first aspect of the invention, the input / output data is input / output data in a predetermined time range including a time of occurrence of an abnormality of a control target, and the input / output operation is decoded from the input / output data. A data table which is a time series of the data set is created by extracting a combination for each time as a data set by using the means, and the next operation determining means determines a logical table based on the consistency between each data set of the data table and the sequence program. It is characterized by inferring the cause of the logical inconsistency for the controlled object by determining the presence or absence of the inconsistency, and the presence or absence of the abnormality in the controlled object can be easily extracted by simple processing based on the presence or absence of the logical inconsistency.

【0066】請求項7の発明は、請求項5または請求項
6の発明において、前記次動作判定手段により推論され
た矛盾の原因箇所および内容を表すメッセージを結果出
力手段により可視化して出力することを特徴としてお
り、メッセージによって論理矛盾の原因箇所および内容
の特定が容易になる。
According to a seventh aspect of the present invention, in the fifth or sixth aspect of the present invention, a message indicating a cause and a content of the contradiction inferred by the next operation determining means is visualized and output by a result output means. The message makes it easy to identify the cause and content of the logical inconsistency.

【0067】請求項8の発明は、請求項5ないし請求項
7の発明において、前記シーケンスプログラムが制御対
象を実動作させるプログラマブルコントローラにすでに
実装されているシーケンスプログラムであって、通信手
段を介してプログラマブルコントローラから転送され、
さらに前記入出力データが通信手段を介してプログラマ
ブルコントローラから転送されることを特徴としてお
り、通信手段を備えることによって、プログラマブルコ
ントローラおよび制御対象が遠方に設置されている場合
でも故障診断を容易に行うことができる。
The invention according to claim 8 is the invention according to claims 5 to 7, wherein the sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object, and Transferred from the programmable controller,
Further, the input / output data is transferred from the programmable controller via a communication unit, and by including the communication unit, the failure diagnosis can be easily performed even when the programmable controller and the control target are installed at a remote place. be able to.

【0068】請求項9の発明は、プログラマブルコント
ローラを動作させるシーケンスプログラムおよび前記シ
ーケンスプログラムに関連付けたプログラマブルコント
ローラの入力データが読込手段を通して入力され、プロ
グラマブルコントローラと等価な模擬制御手段に前記入
力データを与えてシーケンスプログラムを実行するとと
もに、制御対象を模擬して結果出力手段がディスプレイ
装置に表示したシミュレーションモデルを、模擬制御手
段でのシーケンスプログラムの実行に伴って動作させる
ことを特徴としており、模擬制御手段を用いてシーケン
スプログラムによりシミュレーションモデルを動作させ
ることによって、シーケンスプログラムにより制御対象
を実際に動作させることなく制御対象に対するシーケン
スプログラムの整合性を事前に検証することができる。
According to a ninth aspect of the present invention, a sequence program for operating the programmable controller and input data of the programmable controller associated with the sequence program are input through the reading means, and the input data is given to the simulation control means equivalent to the programmable controller. Executing the sequence program, simulating the control target, and causing the simulation model displayed on the display device by the result output means to operate in accordance with the execution of the sequence program by the simulation control means. By operating the simulation model by the sequence program using the program, the sequence program can be adjusted for the control target without actually operating the control target by the sequence program. It is possible to verify the sex in advance.

【0069】請求項10の発明は、請求項9の発明にお
いて、前記模擬制御手段に与える入力データのオンオフ
の時間間隔の最小単位をタイミング生成手段により生成
した基準タイミングの周期とするようにタイミング規制
手段で規制し、タイミング生成手段では基準タイミング
の周期を可変としていることを特徴としており、基準タ
イミングを調節することによって模擬制御手段を動作さ
せる際の入力データの時間間隔を調節することができる
から、制御対象のタクトタイムを種々変更してシーケン
スプログラムとの整合性を検証することができる。
According to a tenth aspect of the present invention, in the ninth aspect of the present invention, the timing control is performed such that the minimum unit of the ON / OFF time interval of the input data given to the simulation control means is the cycle of the reference timing generated by the timing generation means. Means, and the timing generation means is characterized in that the cycle of the reference timing is variable. By adjusting the reference timing, the time interval of input data when operating the simulation control means can be adjusted. In addition, the tact time of the control target can be variously changed to verify the consistency with the sequence program.

【0070】請求項11の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが読込手段を通して入力され、入
力データのオンオフの時間間隔の最小単位をタイミング
生成手段により生成した基準タイミングの周期とするよ
うにタイミング規制手段で規制するとともに、タイミン
グ生成手段では基準タイミングの周期を可変としてあ
り、さらにプログラマブルコントローラと等価な模擬制
御手段に前記入力データを与えてシーケンスプログラム
を実行するとともに、模擬制御手段でのシーケンスプロ
グラムの実行に伴う出力データと模擬制御手段に与えら
れた入力データとから結果出力手段によりタイムチャー
トを生成することを特徴としており、基準タイミングを
調節することによって模擬制御手段を動作させる際の入
力データの時間間隔を調節することができるから、制御
対象のタクトタイムを種々変更してシーケンスプログラ
ムとの整合性を検証することができる。しかも、タイム
チャートを生成することにより視覚的に異常の有無を抽
出することが可能になる。
According to an eleventh aspect of the present invention, the sequence program for operating the programmable controller and the input data of the programmable controller associated with the sequence program are input through the reading means, and the minimum unit of the ON / OFF time interval of the input data is determined by the timing generating means. The timing control means regulates the cycle of the reference timing to be the same as the cycle of the reference timing generated, and the cycle of the reference timing is variable in the timing generation means. The input data is given to the simulation control means equivalent to a programmable controller, and the sequence program is executed. And generating a time chart by the result output means from output data accompanying execution of the sequence program by the simulation control means and input data given to the simulation control means. By adjusting the reference timing, the time interval of input data when operating the simulation control means can be adjusted, so that the tact time of the control target is variously changed and the consistency with the sequence program is verified. can do. In addition, by generating a time chart, it is possible to visually extract the presence or absence of an abnormality.

【0071】請求項12の発明は、請求項11の発明に
おいて、前記結果出力手段では、制御対象を模擬してデ
ィスプレイ装置に表示したシミュレーションモデルを、
前記タイムチャートにより表される入出力データのタイ
ミングで動作させることを特徴としており、シミュレー
ションモデルとタイムチャートとを併用してシーケンス
プログラムと制御対象との整合性を容易に検証すること
ができる。
According to a twelfth aspect of the present invention, in the invention of the eleventh aspect, the result output means includes a simulation model that simulates a control target and displays the simulation model on a display device.
The operation is performed at the timing of the input / output data represented by the time chart, and the consistency between the sequence program and the control target can be easily verified by using the simulation model and the time chart together.

【0072】請求項13の発明は、請求項11の発明に
おいて、前記結果出力手段では、制御対象の動作タイミ
ングの要求仕様として与えられる入出力データのタイム
チャートと、前記タイムチャートとを比較することによ
り相違点を抽出し、抽出結果のメッセージを可視化して
出力することを特徴としており、要求仕様によるタイム
チャートと模擬制御手段により生成したタイムチャート
との比較によってシーケンスプログラムと制御対象との
整合性を容易に検証することができる。
According to a thirteenth aspect, in the eleventh aspect, the result output means compares a time chart of input / output data given as a required specification of an operation timing of a control target with the time chart. The difference between the sequence program and the control target is obtained by comparing the time chart according to the required specifications with the time chart generated by the simulation control means. Can be easily verified.

【0073】請求項14の発明は、請求項9ないし請求
項13の発明において、前記制御対象がそれぞれ1つの
処理を完結させる複数個のブロックの集合であって、前
記シミュレーションモデルが各ブロックに対応するサブ
モデルの組合せとして構成されていることを特徴として
おり、シーケンスプログラムと制御対象との整合性の検
証をサブモデル単位で行うことができ、制御対象の全体
について整合性を検証する場合に比較して短時間で処理
することができる。
According to a fourteenth aspect, in the ninth to thirteenth aspects, the control object is a set of a plurality of blocks each of which completes one process, and the simulation model corresponds to each block. The feature is that it is configured as a combination of sub-models that can be verified, and the consistency between the sequence program and the control target can be verified for each sub-model. And can be processed in a short time.

【0074】請求項15の発明は、請求項9ないし請求
項14の発明において、前記シーケンスプログラムが制
御対象を実動作させるプログラマブルコントローラにす
でに実装されているシーケンスプログラムであって、通
信手段を介してプログラマブルコントローラから転送さ
れることを特徴としており、通信手段によってシーケン
スプログラムを取り込むことができるから、プログラマ
ブルコントローラが遠方に設置されている場合でもシー
ケンスプログラムと制御対象との整合性を容易に検証す
ることができる。
According to a fifteenth aspect of the present invention, in the ninth to fourteenth aspects of the present invention, the sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object, and The feature is that the sequence program is transferred from the programmable controller, and the sequence program can be captured by the communication means. Therefore, even if the programmable controller is installed in a remote place, the consistency between the sequence program and the control target can be easily verified. Can be.

【0075】請求項16の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入出力データが入力される読込手段と、所定
時刻における入出力データの組合せをシーケンスプログ
ラムに適用したときのシーケンスプログラムと入出力デ
ータの組合せとの整合性から論理矛盾の有無を判定する
とともに、論理矛盾が生じているときにはシーケンスプ
ログラムのうち論理矛盾を生じた入出力の組合せから遡
って関連する入出力を追跡することにより論理矛盾の原
因を推論する次動作判定手段と、推論結果を出力する結
果出力手段とを備えるものであり、シーケンスプログラ
ムと入出力データの組合せとの整合性によって論理矛盾
の有無を判断するから、論理演算のみの簡単な処理でシ
ーケンスプログラムと入出力データとの整合性を検証す
ることができる。しかも、論理矛盾があるときには入出
力を遡って追跡することにより論理矛盾の原因を推論す
ることができるから、論理矛盾の原因箇所を修正するよ
うに対処することで異常に対して容易に対処することが
できる。
The invention according to claim 16 is a reading program for inputting a sequence program for operating a programmable controller, input / output data of the programmable controller associated with the sequence program, and a combination of the input / output data at a predetermined time into the sequence program. Determine whether there is a logical inconsistency based on the consistency between the sequence program and the combination of input / output data when applied, and if there is a logical inconsistency, go back to the sequence program from the combination of I / O that caused the logical inconsistency. And a result output unit for inferring the cause of the logical inconsistency by tracing the input / output to be performed and a result output unit for outputting an inference result. Determine if there is any inconsistency Et al, it is possible to verify the integrity of the sequence program and the input data by a simple process of only the logical operation. In addition, when there is a logical inconsistency, the cause of the logical inconsistency can be inferred by tracing back and forth the input / output, so that it is possible to easily cope with the abnormality by correcting the cause of the logical inconsistency. be able to.

【0076】請求項17の発明は、請求項16の発明に
おいて、前記入出力データを制御対象の動作タイミング
の要求仕様を表す入出力データとし、この入出力データ
から時刻毎の組合せをデータ組として抽出することによ
りデータ組の時系列であるデータテーブルを作成する入
出力動作解読手段を付加し、前記次動作判定手段ではデ
ータテーブルの各データ組とシーケンスプログラムとの
整合性から論理矛盾の有無を判定することにより、シー
ケンスプログラムの中での論理矛盾の原因箇所を推論す
るものであり、入出力データからデータテーブルを作成
し、データ組をシーケンスプログラムに適用して論理矛
盾の有無を検出するから、シーケンスプログラムを実行
することなくデータテーブルにおけるデータ組をシーケ
ンスプログラムに適用するだけの簡単な処理でシーケン
スプログラムにおける誤り箇所を比較的容易に発見する
ことができる。
According to a seventeenth aspect, in the sixteenth aspect, the input / output data is input / output data representing a required specification of an operation timing of a control object, and a combination for each time is defined as a data set from the input / output data. An input / output operation decoding means for creating a data table which is a time series of a data set by extraction is added, and the next operation determination means determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. By determining, the cause of the logical inconsistency in the sequence program is inferred, and a data table is created from the input / output data, and the data set is applied to the sequence program to detect the presence or absence of the logical inconsistency. , The data set in the data table can be converted to a sequence program without executing the sequence program Can be relatively easily found the error location in the sequence program in a simple process that only use.

【0077】請求項18の発明は、請求項16の発明に
おいて、前記入出力データを実動作時の制御対象の異常
発生の時刻における入出力データとし、前記次動作判定
手段ではこの入出力データのデータ組とシーケンスプロ
グラムとの整合性から論理矛盾の有無を判定することに
より、制御対象について論理矛盾の原因箇所を推論する
ものであり、論理矛盾の有無によって制御対象における
異常の有無を簡単な処理で容易に抽出することができ
る。
According to an eighteenth aspect of the present invention, in the invention of the sixteenth aspect, the input / output data is input / output data at the time of occurrence of an abnormality in a control target in an actual operation, and the next operation determining means outputs the input / output data. By judging the presence or absence of a logical inconsistency from the consistency between the data set and the sequence program, the cause of the logical inconsistency is inferred for the controlled object. And can be easily extracted.

【0078】請求項19の発明は、請求項16の発明に
おいて、前記入出力データを制御対象の異常発生の時刻
を含む所定の時間範囲の入出力データとし、この入出力
データから時刻毎の組合せをデータ組として抽出するこ
とによりデータ組の時系列であるデータテーブルを作成
する入出力動作解読手段を付加し、前記次動作判定手段
ではデータテーブルの各データ組とシーケンスプログラ
ムとの整合性から論理矛盾の有無を判定することによ
り、制御対象について論理矛盾の原因箇所を推論するも
のであり、論理矛盾の有無によって制御対象における異
常の有無を簡単な処理で容易に抽出することができる。
A nineteenth aspect of the present invention is the invention according to the sixteenth aspect, wherein the input / output data is input / output data in a predetermined time range including a time of occurrence of an abnormality of a control object, and the input / output data is combined for each time. Is extracted as a data set, an input / output operation decoding means for creating a data table which is a time series of the data set is added, and the next operation determination means determines the logic based on the consistency between each data set of the data table and the sequence program. By determining the presence or absence of the contradiction, the cause of the logical contradiction is inferred for the control target, and the presence or absence of the abnormality in the control target can be easily extracted by the simple processing based on the presence or absence of the logical contradiction.

【0079】請求項20の発明は、請求項18または請
求項19の発明において、前記シーケンスプログラムが
制御対象を実動作させるプログラマブルコントローラに
すでに実装されているシーケンスプログラムであって、
プログラマブルコントローラからシーケンスプログラム
および前記入出力データを転送する通信手段が付加され
ているものであり、通信手段を備えることによって、プ
ログラマブルコントローラおよび制御対象が遠方に設置
されている場合でも故障診断を容易に行うことができ
る。
According to a twentieth aspect of the present invention, in accordance with the eighteenth or nineteenth aspect, the sequence program is a sequence program already mounted on a programmable controller for causing a controlled object to actually operate,
A communication means for transferring a sequence program and the input / output data from the programmable controller is added. By providing the communication means, even when the programmable controller and the control target are installed at a remote place, failure diagnosis can be easily performed. It can be carried out.

【0080】請求項21の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが入力される読込手段と、プログ
ラマブルコントローラと等価であって前記入力データが
与えられてシーケンスプログラムを実行する模擬制御手
段と、制御対象を模擬したシミュレーションモデルをデ
ィスプレイ装置に表示する結果出力手段とを備え、結果
出力手段が模擬制御手段でのシーケンスプログラムの実
行に伴ってシミュレーションモデルを動作させるもので
あり、模擬制御手段を用いてシーケンスプログラムによ
りシミュレーションモデルを動作させることによって、
シーケンスプログラムにより制御対象を実際に動作させ
ることなく制御対象に対するシーケンスプログラムの整
合性を事前に検証することができる。
According to a twenty-first aspect of the present invention, there is provided a sequence program for operating a programmable controller and reading means for inputting input data of the programmable controller associated with the sequence program. Simulation program means for executing a sequence program, and a result output means for displaying a simulation model simulating an object to be controlled on a display device, wherein the result output means executes the simulation model in accordance with the execution of the sequence program by the simulation control means. By operating the simulation model by the sequence program using the simulation control means,
The consistency of the sequence program with respect to the control target can be verified in advance without actually operating the control target by the sequence program.

【0081】請求項22の発明は、請求項21の発明に
おいて、所定の周期で基準タイミングを生成するタイミ
ング生成手段と、前記模擬制御手段に与える入力データ
のオンオフの時間間隔の最小単位を前記基準タイミング
の周期とするように規制するタイミング規制手段とを付
加し、タイミング生成手段では基準タイミングの周期を
可変としているものであり、基準タイミングを調節する
ことによって模擬制御手段を動作させる際の入力データ
の時間間隔を調節することができるから、制御対象のタ
クトタイムを種々変更してシーケンスプログラムとの整
合性を検証することができる。
According to a twenty-second aspect of the present invention, in the twenty-first aspect, a timing generating means for generating a reference timing at a predetermined cycle, and a minimum unit of an on / off time interval of input data to be given to the simulation control means is set to the reference value. A timing regulating means for regulating the cycle of the timing is added, and the timing generating means makes the cycle of the reference timing variable, and the input data when the simulation control means is operated by adjusting the reference timing. Can be adjusted, so that the tact time of the controlled object can be variously changed and the consistency with the sequence program can be verified.

【0082】請求項23の発明は、プログラマブルコン
トローラを動作させるシーケンスプログラムおよび前記
シーケンスプログラムに関連付けたプログラマブルコン
トローラの入力データが入力される読込手段と、所定の
周期で基準タイミングを生成するタイミング生成手段
と、前記模擬制御手段に与える入力データのオンオフの
時間間隔の最小単位を前記基準タイミングの周期とする
ように規制するタイミング規制手段と、プログラマブル
コントローラと等価であって前記入力データが与えられ
てシーケンスプログラムを実行する模擬制御手段と、制
御対象を模擬したシミュレーションモデルをディスプレ
イ装置に表示する結果出力手段とを備え、タイミング生
成手段では基準タイミングの周期を可変としてあり、模
擬制御手段でのシーケンスプログラムの実行に伴う出力
データと模擬制御手段に与えられた入力データとから結
果出力手段によりタイムチャートを生成するものであ
り、基準タイミングを調節することによって模擬制御手
段を動作させる際の入力データの時間間隔を調節するこ
とができるから、制御対象のタクトタイムを種々変更し
てシーケンスプログラムとの整合性を検証することがで
きる。しかも、タイムチャートを生成することにより視
覚的に異常の有無を抽出することが可能になる。
According to a twenty-third aspect of the present invention, there is provided a reading means for inputting a sequence program for operating a programmable controller and input data of the programmable controller associated with the sequence program, and a timing generating means for generating a reference timing at a predetermined cycle. A timing control means for restricting a minimum unit of an on / off time interval of input data to be supplied to the simulation control means to be a cycle of the reference timing; and a sequence program provided with the input data being equivalent to a programmable controller. And a result output means for displaying a simulation model simulating the control target on a display device. The timing generation means has a variable reference timing cycle. A time chart is generated by the result output means from output data accompanying the execution of the sense program and input data given to the simulation control means, and input data for operating the simulation control means by adjusting the reference timing. Can be adjusted, so that the tact time of the controlled object can be variously changed and the consistency with the sequence program can be verified. In addition, by generating a time chart, it is possible to visually extract the presence or absence of an abnormality.

【0083】請求項24の発明は、請求項21ないし請
求項23の発明において、前記シーケンスプログラムが
制御対象を実動作させるプログラマブルコントローラに
すでに実装されているシーケンスプログラムであって、
プログラマブルコントローラからシーケンスプログラム
を転送する通信手段が付加されているものであり、通信
手段によってシーケンスプログラムを取り込むことがで
きるから、プログラマブルコントローラが遠方に設置さ
れている場合でもシーケンスプログラムと制御対象との
整合性を容易に検証することができる。
According to a twenty-fourth aspect of the present invention, in the invention of the twenty-first to twenty-third aspects, the sequence program is a sequence program which is already mounted on a programmable controller for actually operating a controlled object,
Communication means for transferring the sequence program from the programmable controller is added, and the sequence program can be captured by the communication means. Therefore, even when the programmable controller is installed at a remote location, matching between the sequence program and the control target is possible. Can be easily verified.

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

【図1】本発明の第1の実施の形態を示すブロック図で
ある。
FIG. 1 is a block diagram showing a first embodiment of the present invention.

【図2】同上の動作説明図である。FIG. 2 is an operation explanatory view of the above.

【図3】同上におけるシーケンスプログラムの例を示す
説明図である。
FIG. 3 is an explanatory diagram showing an example of a sequence program in the above.

【図4】同上の動作説明図である。FIG. 4 is an operation explanatory view of the above.

【図5】本発明の第2の実施の形態を示す動作説明図で
ある。
FIG. 5 is an operation explanatory view showing a second embodiment of the present invention.

【図6】同上におけるシーケンスプログラムの例を示す
説明図である。
FIG. 6 is an explanatory diagram showing an example of a sequence program in the above.

【図7】同上の動作説明図である。FIG. 7 is an operation explanatory diagram of the above.

【図8】同上に用いるルールの例を示す図である。FIG. 8 is a diagram showing an example of a rule used in the embodiment.

【図9】本発明の第3の実施の形態を示す要部のブロッ
ク図である。
FIG. 9 is a block diagram of a main part showing a third embodiment of the present invention.

【図10】同上の動作説明図である。FIG. 10 is an operation explanatory view of the above.

【図11】同上の動作説明図である。FIG. 11 is an operation explanatory diagram of the above.

【図12】同上の動作説明図である。FIG. 12 is an operation explanatory view of the above.

【図13】同上の動作説明図である。FIG. 13 is an explanatory diagram of the operation of the above.

【図14】同上における制御対象の構成例を示す図であ
る。
FIG. 14 is a diagram illustrating a configuration example of a control target in the above energy management system;

【図15】同上におけるシーケンスプログラムの例を示
す説明図である。
FIG. 15 is an explanatory diagram showing an example of a sequence program in the above.

【図16】同上におけるシーケンスプログラムの例を示
す説明図である。
FIG. 16 is an explanatory diagram showing an example of a sequence program in the above.

【図17】同上におけるシミュレーションモデルの階層
化の例を示す図である。
FIG. 17 is a diagram showing an example of hierarchization of a simulation model in the above.

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

11 プログラム読込手段 12 入出力データ読込手段 13 入出力動作解読手段 13a タイミング決定手段 14 データテーブル 15 次動作判定手段 16 結果出力手段 21 タイミング規制手段 21a タイミング生成手段 22 模擬制御手段 23 シミュレーションモデル PR1,PR2 シーケンスプログラム IO1,IO2 入出力データ Reference Signs List 11 program reading means 12 input / output data reading means 13 input / output operation decoding means 13a timing determination means 14 data table 15 next operation determination means 16 result output means 21 timing regulation means 21a timing generation means 22 simulation control means 23 simulation model PR1, PR2 Sequence program IO1, IO2 I / O data

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5H220 BB10 BB12 CC07 CX01 DD04 JJ28 JJ42 JJ48 KK01 KK08 LL03 LL04 LL06 LL07 5H223 CC03 EE19 FF05 FF06  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5H220 BB10 BB12 CC07 CX01 DD04 JJ28 JJ42 JJ48 KK01 KK08 LL03 LL04 LL06 LL07 5H223 CC03 EE19 FF05 FF06

Claims (24)

【特許請求の範囲】[Claims] 【請求項1】 プログラマブルコントローラを動作させ
るシーケンスプログラムおよび前記シーケンスプログラ
ムに関連付けたプログラマブルコントローラの入出力デ
ータが読込手段を通して入力され、次動作判定手段によ
り所定時刻における入出力データの組合せをシーケンス
プログラムに適用したときのシーケンスプログラムと入
出力データの組合せとの整合性から論理矛盾の有無を判
定するとともに、論理矛盾が生じているときにはシーケ
ンスプログラムのうち論理矛盾を生じた入出力の組合せ
から遡って関連する入出力を追跡することにより論理矛
盾の原因を推論し、推論結果を結果出力手段から出力す
ることを特徴とするプログラマブルコントローラにおけ
る異常検出方法。
1. A sequence program for operating a programmable controller and input / output data of the programmable controller associated with the sequence program are input through a reading unit, and a combination of input / output data at a predetermined time is applied to the sequence program by a next operation determining unit. The presence / absence of a logical inconsistency is determined from the consistency between the sequence program and the combination of the input / output data at the time of the execution, and if a logical inconsistency occurs, the sequence program is related to the input / output combination that caused the logical inconsistency retroactively. An abnormality detection method in a programmable controller, characterized by inferring a cause of a logical contradiction by tracing an input / output and outputting an inference result from a result output means.
【請求項2】 前記入出力データを制御対象の動作タイ
ミングの要求仕様を表す入出力データとし、この入出力
データから入出力動作解読手段を用いて時刻毎の組合せ
をデータ組として抽出することによりデータ組の時系列
であるデータテーブルを作成し、前記次動作判定手段で
はデータテーブルの各データ組とシーケンスプログラム
との整合性から論理矛盾の有無を判定することにより、
シーケンスプログラムの中での論理矛盾の原因箇所を推
論することを特徴とする請求項1記載のプログラマブル
コントローラにおける異常検出方法。
2. The method according to claim 1, wherein the input / output data is input / output data representing a required specification of an operation timing of a control target, and a combination for each time is extracted as a data set from the input / output data using input / output operation decoding means. By creating a data table that is a time series of the data set, the next operation determining means determines whether there is a logical inconsistency from the consistency between each data set of the data table and the sequence program,
2. The method according to claim 1, wherein a cause of the logical contradiction in the sequence program is inferred.
【請求項3】 前記結果出力手段では前記要求仕様のう
ち論理矛盾を生じたデータ組を含む部分のタイムチャー
トを可視化して出力するとともに前記タイムチャートの
中に論理矛盾を生じたタイミングを示し、前記次動作判
定手段により推論された矛盾の原因箇所および内容を表
すメッセージをタイムチャートとともに可視化して出力
することを特徴とする請求項2記載のプログラマブルコ
ントローラにおける異常検出方法。
3. The result output means visualizes and outputs a time chart of a part including the data set in which the logical contradiction occurs in the required specification, and indicates a timing in which the logical contradiction occurs in the time chart. 3. The method according to claim 2, wherein a message indicating a cause and a content of the contradiction inferred by the next operation determining means is visualized and output together with a time chart.
【請求項4】 前記次動作判定手段により推論された前
記シーケンスプログラム中での論理矛盾の原因箇所につ
いて修正案を作成し、作成した修正案のうち論理矛盾を
解消する修正案を結果出力手段により可視化して出力す
ることを特徴とする請求項2または請求項3記載のプロ
グラマブルコントローラにおける異常検出方法。
4. A correction plan is created for a cause of the logical inconsistency in the sequence program inferred by the next operation determining unit, and a correction plan for eliminating the logical inconsistency among the generated correction plans is output by a result output unit. 4. The method for detecting an abnormality in a programmable controller according to claim 2, wherein the abnormality is visualized and output.
【請求項5】 前記入出力データを実動作時の制御対象
の異常発生の時刻における入出力データとし、前記次動
作判定手段ではこの入出力データのデータ組とシーケン
スプログラムとの整合性から論理矛盾の有無を判定する
ことにより、制御対象について論理矛盾の原因箇所を推
論することを特徴とする請求項1記載のプログラマブル
コントローラにおける異常検出方法。
5. The input / output data is used as input / output data at the time of occurrence of an abnormality in a control target during actual operation, and the next operation determining means determines a logical contradiction based on consistency between a data set of the input / output data and a sequence program. 2. The method according to claim 1, wherein a cause of the logical inconsistency is inferred for the control target by determining the presence or absence of the abnormality.
【請求項6】 前記入出力データを制御対象の異常発生
の時刻を含む所定の時間範囲の入出力データとし、この
入出力データから入出力動作解読手段を用いて時刻毎の
組合せをデータ組として抽出することによりデータ組の
時系列であるデータテーブルを作成し、前記次動作判定
手段ではデータテーブルの各データ組とシーケンスプロ
グラムとの整合性から論理矛盾の有無を判定することに
より、制御対象について論理矛盾の原因箇所を推論する
ことを特徴とする請求項1記載のプログラマブルコント
ローラにおける異常検出方法。
6. The input / output data is input / output data in a predetermined time range including a time of occurrence of an abnormality of a control object, and a combination for each time is converted from the input / output data using an input / output operation decoding unit into a data set. By creating a data table which is a time series of the data set by extracting, the next operation determining means determines whether there is a logical inconsistency from the consistency between each data set of the data table and the sequence program, and 2. The method according to claim 1, wherein a cause of the logical contradiction is inferred.
【請求項7】 前記次動作判定手段により推論された矛
盾の原因箇所および内容を表すメッセージを結果出力手
段により可視化して出力することを特徴とする請求項5
または請求項6記載のプログラマブルコントローラにお
ける異常検出方法。
7. A result output unit visualizes and outputs a message indicating a cause and a content of a contradiction inferred by the next operation determination unit.
7. A method for detecting an abnormality in a programmable controller according to claim 6.
【請求項8】 前記シーケンスプログラムが制御対象を
実動作させるプログラマブルコントローラにすでに実装
されているシーケンスプログラムであって、通信手段を
介してプログラマブルコントローラから転送され、さら
に前記入出力データが通信手段を介してプログラマブル
コントローラから転送されることを特徴とする請求項5
ないし請求項7のいずれか1項に記載のプログラマブル
コントローラにおける異常検出方法。
8. The sequence program is a sequence program already mounted on a programmable controller for actually operating a controlled object, wherein the sequence program is transferred from the programmable controller via communication means, and the input / output data is transmitted via communication means. 6. The data is transferred from a programmable controller in a predetermined manner.
An abnormality detection method in the programmable controller according to claim 7.
【請求項9】 プログラマブルコントローラを動作させ
るシーケンスプログラムおよび前記シーケンスプログラ
ムに関連付けたプログラマブルコントローラの入力デー
タが読込手段を通して入力され、プログラマブルコント
ローラと等価な模擬制御手段に前記入力データを与えて
シーケンスプログラムを実行するとともに、制御対象を
模擬して結果出力手段がディスプレイ装置に表示したシ
ミュレーションモデルを、模擬制御手段でのシーケンス
プログラムの実行に伴って動作させることを特徴とする
プログラマブルコントローラにおける異常検出方法。
9. A sequence program for operating a programmable controller and input data of the programmable controller associated with the sequence program are inputted through a reading means, and the sequence data is executed by giving the input data to simulation control means equivalent to the programmable controller. A method of simulating a control target and causing a simulation model displayed on a display device by a result output means to be operated in conjunction with execution of a sequence program by the simulated control means.
【請求項10】 前記模擬制御手段に与える入力データ
のオンオフの時間間隔の最小単位をタイミング生成手段
により生成した基準タイミングの周期とするようにタイ
ミング規制手段で規制し、タイミング生成手段では基準
タイミングの周期を可変としていることを特徴とする請
求項9記載のプログラマブルコントローラにおける異常
検出方法。
10. The timing control means controls the minimum unit of the ON / OFF time interval of input data to be supplied to the simulation control means to be the cycle of the reference timing generated by the timing generation means. 10. The method for detecting an abnormality in a programmable controller according to claim 9, wherein the period is variable.
【請求項11】 プログラマブルコントローラを動作さ
せるシーケンスプログラムおよび前記シーケンスプログ
ラムに関連付けたプログラマブルコントローラの入力デ
ータが読込手段を通して入力され、入力データのオンオ
フの時間間隔の最小単位をタイミング生成手段により生
成した基準タイミングの周期とするようにタイミング規
制手段で規制するとともに、タイミング生成手段では基
準タイミングの周期を可変としてあり、さらにプログラ
マブルコントローラと等価な模擬制御手段に前記入力デ
ータを与えてシーケンスプログラムを実行するととも
に、模擬制御手段でのシーケンスプログラムの実行に伴
う出力データと模擬制御手段に与えられた入力データと
から結果出力手段によりタイムチャートを生成すること
を特徴とするプログラマブルコントローラにおける異常
検出方法。
11. A reference timing in which a sequence program for operating a programmable controller and input data of the programmable controller associated with the sequence program are input through a read unit, and a minimum unit of an on / off time interval of the input data is generated by a timing generation unit. While regulating by the timing regulating means so as to make the cycle of, the cycle of the reference timing is variable in the timing generation means, and furthermore, the input data is given to the simulation control means equivalent to a programmable controller to execute the sequence program, A time chart is generated by a result output means from output data accompanying execution of a sequence program in the simulation control means and input data given to the simulation control means. Abnormality detection method in the mable controller.
【請求項12】 前記結果出力手段では、制御対象を模
擬してディスプレイ装置に表示したシミュレーションモ
デルを、前記タイムチャートにより表される入出力デー
タのタイミングで動作させることを特徴とする請求項1
1記載のプログラマブルコントローラにおける異常検出
方法。
12. The system according to claim 1, wherein the result output means operates a simulation model simulating a control target and displayed on a display device at timing of input / output data represented by the time chart.
2. An abnormality detection method in the programmable controller according to 1.
【請求項13】 前記結果出力手段では、制御対象の動
作タイミングの要求仕様として与えられる入出力データ
のタイムチャートと、前記タイムチャートとを比較する
ことにより相違点を抽出し、抽出結果のメッセージを可
視化して出力することを特徴とする請求項11記載のプ
ログラマブルコントローラにおける異常検出方法。
13. The result output means extracts a difference by comparing a time chart of input / output data given as a required specification of an operation timing of a control object with the time chart, and outputs a message of the extraction result. 12. The abnormality detection method in a programmable controller according to claim 11, wherein the abnormality is visualized and output.
【請求項14】 前記制御対象がそれぞれ1つの処理を
完結させる複数個のブロックの集合であって、前記シミ
ュレーションモデルが各ブロックに対応するサブモデル
の組合せとして構成されていることを特徴とする請求項
9ないし請求項13のいずれか1項に記載のプログラマ
ブルコントローラにおける異常検出方法。
14. The control object is a set of a plurality of blocks each completing one process, and the simulation model is configured as a combination of sub-models corresponding to each block. An abnormality detection method in the programmable controller according to any one of claims 9 to 13.
【請求項15】 前記シーケンスプログラムが制御対象
を実動作させるプログラマブルコントローラにすでに実
装されているシーケンスプログラムであって、通信手段
を介してプログラマブルコントローラから転送されるこ
とを特徴とする請求項9ないし請求項14のいずれか1
項に記載のプログラマブルコントローラにおける異常検
出方法。
15. The sequence program according to claim 9, wherein the sequence program is a sequence program already mounted on a programmable controller that actually operates a control target, and is transferred from the programmable controller via communication means. Any one of item 14
Item 14. The abnormality detection method in the programmable controller according to the paragraph.
【請求項16】 プログラマブルコントローラを動作さ
せるシーケンスプログラムおよび前記シーケンスプログ
ラムに関連付けたプログラマブルコントローラの入出力
データが入力される読込手段と、所定時刻における入出
力データの組合せをシーケンスプログラムに適用したと
きのシーケンスプログラムと入出力データの組合せとの
整合性から論理矛盾の有無を判定するとともに、論理矛
盾が生じているときにはシーケンスプログラムのうち論
理矛盾を生じた入出力の組合せから遡って関連する入出
力を追跡することにより論理矛盾の原因を推論する次動
作判定手段と、推論結果を出力する結果出力手段とを備
えることを特徴とするプログラマブルコントローラにお
ける異常検出装置。
16. A sequence program for operating a programmable controller, reading means for inputting input / output data of the programmable controller associated with the sequence program, and a sequence when a combination of input / output data at a predetermined time is applied to the sequence program. Determines whether there is a logical inconsistency based on the consistency between the program and the combination of input and output data, and if there is a logical inconsistency, traces the related input and output of the sequence program from the combination of the I / O that caused the logical inconsistency An abnormality detection device for a programmable controller, comprising: a next operation determination unit that infers a cause of a logical contradiction by performing the operation; and a result output unit that outputs an inference result.
【請求項17】 前記入出力データを制御対象の動作タ
イミングの要求仕様を表す入出力データとし、この入出
力データから時刻毎の組合せをデータ組として抽出する
ことによりデータ組の時系列であるデータテーブルを作
成する入出力動作解読手段を付加し、前記次動作判定手
段ではデータテーブルの各データ組とシーケンスプログ
ラムとの整合性から論理矛盾の有無を判定することによ
り、シーケンスプログラムの中での論理矛盾の原因箇所
を推論することを特徴とする請求項16記載のプログラ
マブルコントローラにおける異常検出装置。
17. The data which is a time series of a data set by extracting the input / output data as input / output data representing a required specification of operation timing of a control object and extracting a combination for each time from the input / output data as a data set. An input / output operation decoding unit for creating a table is added, and the next operation determination unit determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. 17. The abnormality detection device for a programmable controller according to claim 16, wherein a cause of the inconsistency is inferred.
【請求項18】 前記入出力データを実動作時の制御対
象の異常発生の時刻における入出力データとし、前記次
動作判定手段ではこの入出力データのデータ組とシーケ
ンスプログラムとの整合性から論理矛盾の有無を判定す
ることにより、制御対象について論理矛盾の原因箇所を
推論することを特徴とする請求項16記載のプログラマ
ブルコントローラにおける異常検出装置。
18. The input / output data is used as input / output data at the time of occurrence of an abnormality in a control target during actual operation. 17. The abnormality detection device for a programmable controller according to claim 16, wherein a cause of the logical inconsistency is inferred for the control target by determining the presence or absence of the error.
【請求項19】 前記入出力データを制御対象の異常発
生の時刻を含む所定の時間範囲の入出力データとし、こ
の入出力データから時刻毎の組合せをデータ組として抽
出することによりデータ組の時系列であるデータテーブ
ルを作成する入出力動作解読手段を付加し、前記次動作
判定手段ではデータテーブルの各データ組とシーケンス
プログラムとの整合性から論理矛盾の有無を判定するこ
とにより、制御対象について論理矛盾の原因箇所を推論
することを特徴とする請求項16記載のプログラマブル
コントローラにおける異常検出装置。
19. The method according to claim 1, wherein said input / output data is input / output data in a predetermined time range including a time of occurrence of an abnormality of a control target, and a combination for each time is extracted as a data set from said input / output data. An input / output operation decoding unit for creating a data table as a series is added, and the next operation determination unit determines whether there is a logical inconsistency based on the consistency between each data set of the data table and the sequence program. 17. The abnormality detection device for a programmable controller according to claim 16, wherein a cause of the logical contradiction is inferred.
【請求項20】 前記シーケンスプログラムが制御対象
を実動作させるプログラマブルコントローラにすでに実
装されているシーケンスプログラムであって、プログラ
マブルコントローラからシーケンスプログラムおよび前
記入出力データを転送する通信手段が付加されているこ
とを特徴とする請求項18または請求項19記載のプロ
グラマブルコントローラにおける異常検出装置。
20. The sequence program is a sequence program already mounted on a programmable controller for actually operating a control target, and communication means for transferring the sequence program and the input / output data from the programmable controller is added. 20. The abnormality detecting device in the programmable controller according to claim 18 or 19, wherein
【請求項21】 プログラマブルコントローラを動作さ
せるシーケンスプログラムおよび前記シーケンスプログ
ラムに関連付けたプログラマブルコントローラの入力デ
ータが入力される読込手段と、プログラマブルコントロ
ーラと等価であって前記入力データが与えられてシーケ
ンスプログラムを実行する模擬制御手段と、制御対象を
模擬したシミュレーションモデルをディスプレイ装置に
表示する結果出力手段とを備え、結果出力手段が模擬制
御手段でのシーケンスプログラムの実行に伴ってシミュ
レーションモデルを動作させることを特徴とするプログ
ラマブルコントローラにおける異常検出装置。
21. A sequence program for operating a programmable controller and reading means for inputting input data of the programmable controller associated with the sequence program, and the sequence program is executed by being provided with the input data and equivalent to the programmable controller. And a result output means for displaying a simulation model simulating a control target on a display device, wherein the result output means operates the simulation model in accordance with execution of the sequence program by the simulation control means. Abnormality detection device in a programmable controller.
【請求項22】 所定の周期で基準タイミングを生成す
るタイミング生成手段と、前記模擬制御手段に与える入
力データのオンオフの時間間隔の最小単位を前記基準タ
イミングの周期とするように規制するタイミング規制手
段とを付加し、タイミング生成手段では基準タイミング
の周期を可変としていることを特徴とする請求項21記
載のプログラマブルコントローラにおける異常検出装
置。
22. Timing generating means for generating a reference timing at a predetermined cycle, and timing regulating means for regulating a minimum unit of an on / off time interval of input data to be supplied to the simulation control means to be the cycle of the reference timing. 22. The abnormality detection device for a programmable controller according to claim 21, wherein a period of the reference timing is variable in the timing generation means.
【請求項23】 プログラマブルコントローラを動作さ
せるシーケンスプログラムおよび前記シーケンスプログ
ラムに関連付けたプログラマブルコントローラの入力デ
ータが入力される読込手段と、所定の周期で基準タイミ
ングを生成するタイミング生成手段と、前記模擬制御手
段に与える入力データのオンオフの時間間隔の最小単位
を前記基準タイミングの周期とするように規制するタイ
ミング規制手段と、プログラマブルコントローラと等価
であって前記入力データが与えられてシーケンスプログ
ラムを実行する模擬制御手段と、制御対象を模擬したシ
ミュレーションモデルをディスプレイ装置に表示する結
果出力手段とを備え、タイミング生成手段では基準タイ
ミングの周期を可変としてあり、模擬制御手段でのシー
ケンスプログラムの実行に伴う出力データと模擬制御手
段に与えられた入力データとから結果出力手段によりタ
イムチャートを生成することを特徴とするプログラマブ
ルコントローラにおける異常検出装置。
23. A reading means for inputting a sequence program for operating a programmable controller and input data of the programmable controller associated with the sequence program, a timing generating means for generating a reference timing at a predetermined cycle, and the simulation control means Timing control means for restricting the minimum unit of the ON / OFF time interval of the input data to be given to the cycle of the reference timing; and a simulated control equivalent to a programmable controller and executing the sequence program given the input data. Means, and a result output means for displaying a simulation model simulating the controlled object on a display device, wherein the timing generation means has a variable reference timing period, and the simulation control means An abnormality detection device for a programmable controller, wherein a time chart is generated by a result output unit from output data accompanying execution and input data given to a simulation control unit.
【請求項24】 前記シーケンスプログラムが制御対象
を実動作させるプログラマブルコントローラにすでに実
装されているシーケンスプログラムであって、プログラ
マブルコントローラからシーケンスプログラムを転送す
る通信手段が付加されていることを特徴とする請求項2
1ないし請求項23のいずれか1項に記載のプログラマ
ブルコントローラにおける異常検出装置。
24. The sequence program, wherein the sequence program is already mounted on a programmable controller for actually operating a control target, and communication means for transferring the sequence program from the programmable controller is added. Item 2
An abnormality detection device in the programmable controller according to any one of claims 1 to 23.
JP2000359254A 2000-11-27 2000-11-27 Method and device for detecting abnormality in programmable controller Pending JP2002163020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000359254A JP2002163020A (en) 2000-11-27 2000-11-27 Method and device for detecting abnormality in programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000359254A JP2002163020A (en) 2000-11-27 2000-11-27 Method and device for detecting abnormality in programmable controller

Publications (1)

Publication Number Publication Date
JP2002163020A true JP2002163020A (en) 2002-06-07

Family

ID=18831039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000359254A Pending JP2002163020A (en) 2000-11-27 2000-11-27 Method and device for detecting abnormality in programmable controller

Country Status (1)

Country Link
JP (1) JP2002163020A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306758A (en) * 2006-05-15 2007-11-22 Toshiba Mitsubishi-Electric Industrial System Corp Power convertor
US8060221B2 (en) 2006-06-13 2011-11-15 Mitsubishi Electric Corporation Peripheral device of programmable logic controller
JP2011237874A (en) * 2010-05-06 2011-11-24 Nippon Steel Corp Test support device, method, and program for process control computer
JP2016004527A (en) * 2014-06-19 2016-01-12 三菱電機株式会社 Ladder function simulator, ladder circuit diagram editing device, and ladder function simulator program
US20160033953A1 (en) * 2013-04-12 2016-02-04 Mitsubishi Electric Corporation Peripheral device for programmable controller and debug support program
JP2018088178A (en) * 2016-11-29 2018-06-07 ファナック株式会社 Ladder program management device
JP2019125208A (en) * 2018-01-17 2019-07-25 三菱重工エンジニアリング株式会社 Verification processing apparatus, logic generation apparatus and verification processing method
JP2020135498A (en) * 2019-02-21 2020-08-31 三菱電機株式会社 Instrumentation control system
CN112654937A (en) * 2018-09-13 2021-04-13 三菱电机株式会社 Setting support device, setting support method, and program
CN113640026A (en) * 2021-08-12 2021-11-12 三一汽车制造有限公司 Industrial equipment testing method and device and testing system
JP7113988B1 (en) * 2021-02-17 2022-08-05 三菱電機株式会社 Data collation device, data collation system, and data collation method
JP7258246B1 (en) * 2022-04-18 2023-04-14 三菱電機株式会社 Simulation program, simulation device and control method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58182711A (en) * 1982-04-21 1983-10-25 Hitachi Ltd Factor predicting device for fault of plant
JPS643748A (en) * 1987-06-26 1989-01-09 Hitachi Ltd Test device for software logical device
JPH0391005A (en) * 1989-09-04 1991-04-16 Omron Corp Monitor device for programmable controller
JPH06103047A (en) * 1991-12-12 1994-04-15 Fujitsu Ltd Program generation supporting device and program execution supporting device
JPH06289928A (en) * 1993-04-02 1994-10-18 Mitsubishi Electric Corp Programmable controller and execution method for sfc program using same
JPH06332507A (en) * 1993-05-24 1994-12-02 Toshiba Corp Play-back system for programmable controller
JPH06331507A (en) * 1993-05-21 1994-12-02 Hitachi Ltd Supervisory diagnostic method and system for plant and plant equipped therewith
JPH0854907A (en) * 1994-08-12 1996-02-27 Yokogawa Electric Corp Verification support system
JPH09305219A (en) * 1996-05-15 1997-11-28 Mitsubishi Heavy Ind Ltd Normal operation inspecting method for digital controller and process controller
JPH10143221A (en) * 1996-11-11 1998-05-29 Mitsubishi Electric Corp System and method for supporting development of equipment control program
JP2000222030A (en) * 1999-02-02 2000-08-11 Mitsubishi Electric Corp Input-output point list edition processor and plant information monitoring device
JP2001005504A (en) * 1999-06-18 2001-01-12 Mitsubishi Electric Corp Motion controller and peripheral equipment for motion controller

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS58182711A (en) * 1982-04-21 1983-10-25 Hitachi Ltd Factor predicting device for fault of plant
JPS643748A (en) * 1987-06-26 1989-01-09 Hitachi Ltd Test device for software logical device
JPH0391005A (en) * 1989-09-04 1991-04-16 Omron Corp Monitor device for programmable controller
JPH06103047A (en) * 1991-12-12 1994-04-15 Fujitsu Ltd Program generation supporting device and program execution supporting device
JPH06289928A (en) * 1993-04-02 1994-10-18 Mitsubishi Electric Corp Programmable controller and execution method for sfc program using same
JPH06331507A (en) * 1993-05-21 1994-12-02 Hitachi Ltd Supervisory diagnostic method and system for plant and plant equipped therewith
JPH06332507A (en) * 1993-05-24 1994-12-02 Toshiba Corp Play-back system for programmable controller
JPH0854907A (en) * 1994-08-12 1996-02-27 Yokogawa Electric Corp Verification support system
JPH09305219A (en) * 1996-05-15 1997-11-28 Mitsubishi Heavy Ind Ltd Normal operation inspecting method for digital controller and process controller
JPH10143221A (en) * 1996-11-11 1998-05-29 Mitsubishi Electric Corp System and method for supporting development of equipment control program
JP2000222030A (en) * 1999-02-02 2000-08-11 Mitsubishi Electric Corp Input-output point list edition processor and plant information monitoring device
JP2001005504A (en) * 1999-06-18 2001-01-12 Mitsubishi Electric Corp Motion controller and peripheral equipment for motion controller

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007306758A (en) * 2006-05-15 2007-11-22 Toshiba Mitsubishi-Electric Industrial System Corp Power convertor
US8060221B2 (en) 2006-06-13 2011-11-15 Mitsubishi Electric Corporation Peripheral device of programmable logic controller
JP4890545B2 (en) * 2006-06-13 2012-03-07 三菱電機株式会社 Peripheral device of programmable logic controller
JP2011237874A (en) * 2010-05-06 2011-11-24 Nippon Steel Corp Test support device, method, and program for process control computer
US20160033953A1 (en) * 2013-04-12 2016-02-04 Mitsubishi Electric Corporation Peripheral device for programmable controller and debug support program
US9740185B2 (en) 2013-04-12 2017-08-22 Mitsubishi Electric Corporation Peripheral device for programmable controller and debug support program
KR101775808B1 (en) * 2013-04-12 2017-09-06 미쓰비시덴키 가부시키가이샤 Programmable controller peripheral device and debug assistance program
JP2016004527A (en) * 2014-06-19 2016-01-12 三菱電機株式会社 Ladder function simulator, ladder circuit diagram editing device, and ladder function simulator program
JP2018088178A (en) * 2016-11-29 2018-06-07 ファナック株式会社 Ladder program management device
US10599119B2 (en) 2016-11-29 2020-03-24 Fanuc Corporation Ladder-program managing device
WO2019142858A1 (en) * 2018-01-17 2019-07-25 三菱重工エンジニアリング株式会社 Verification-processing device, logic-generating device, and verification-processing method
JP2019125208A (en) * 2018-01-17 2019-07-25 三菱重工エンジニアリング株式会社 Verification processing apparatus, logic generation apparatus and verification processing method
JP7038554B2 (en) 2018-01-17 2022-03-18 三菱重工エンジニアリング株式会社 Verification processing device, logic generation device and verification processing method
CN112654937A (en) * 2018-09-13 2021-04-13 三菱电机株式会社 Setting support device, setting support method, and program
CN112654937B (en) * 2018-09-13 2022-10-28 三菱电机株式会社 Setting support device, setting support method, and recording medium
JP2020135498A (en) * 2019-02-21 2020-08-31 三菱電機株式会社 Instrumentation control system
JP7113988B1 (en) * 2021-02-17 2022-08-05 三菱電機株式会社 Data collation device, data collation system, and data collation method
WO2022176054A1 (en) * 2021-02-17 2022-08-25 三菱電機株式会社 Data comparison device, data comparison system, and data comparison method
CN116710858A (en) * 2021-02-17 2023-09-05 三菱电机株式会社 Data collation device, data collation system, and data collation method
CN116710858B (en) * 2021-02-17 2024-05-03 三菱电机株式会社 Data collation device, data collation system, and data collation method
CN113640026A (en) * 2021-08-12 2021-11-12 三一汽车制造有限公司 Industrial equipment testing method and device and testing system
CN113640026B (en) * 2021-08-12 2023-12-08 三一汽车制造有限公司 Industrial equipment testing method, device and system
JP7258246B1 (en) * 2022-04-18 2023-04-14 三菱電機株式会社 Simulation program, simulation device and control method

Similar Documents

Publication Publication Date Title
JP5874891B2 (en) Program test apparatus, program test method, and program
US7308327B2 (en) Method of application protocol monitoring for programmable logic controllers
JP2009265668A (en) Training simulator for engineering project
JP6476594B2 (en) Simulation system
JP2002163020A (en) Method and device for detecting abnormality in programmable controller
EP2500791A1 (en) System and method of simulating input/output modules in a control system
KR101110241B1 (en) Program test device and program
US20180203973A1 (en) System and simulator for the disengageable simulation of installations or machines within programmable logic controllers
US10579761B1 (en) Method and system for reconstructing a graph presentation of a previously executed verification test
Hazott et al. Verifying embedded graphics libraries leveraging virtual prototypes and metamorphic testing
CN111078444A (en) System and method for safety analysis of failure behavior
Erkkinen et al. Verification, validation, and test with model-based design
Cousineau et al. Automated deductive verification for ladder programming
EP3889703B1 (en) Method and apparatus for expressing and verifying functional specifications of a programmable logic controller program
EP4047482A1 (en) Improved checking of correctness of a plc program
Dahll et al. An investigation of methods for production and verification of highly reliable software
WO2016103229A1 (en) A method for verifying a safety logic in an industrial process
Yang et al. An effective model-based development process using simulink/stateflow for automotive body control electronics
JP2019174874A (en) Simulation apparatus, method and program
JP2006163657A (en) Playback simulator
EP4254200A1 (en) Method and system for eradicating programmatical errors from engineering programs in a technical installation
de Assis Barbosa et al. On the automatic generation of timed automata models from isa 5.2 diagrams
Graeser et al. Automationml as a shared model for offline-and realtime-simulation of production plants and for anomaly detection
JP6620653B2 (en) Emulator for plant monitoring and control system
EP4270121A1 (en) Method and system for seamless transition of runtime system from controller device to digitalization platform

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060711

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20061107