[go: up one dir, main page]

JP2003177804A - Method and device for generating sequence control program and program for making computer execute the same method - Google Patents

Method and device for generating sequence control program and program for making computer execute the same method

Info

Publication number
JP2003177804A
JP2003177804A JP2002287539A JP2002287539A JP2003177804A JP 2003177804 A JP2003177804 A JP 2003177804A JP 2002287539 A JP2002287539 A JP 2002287539A JP 2002287539 A JP2002287539 A JP 2002287539A JP 2003177804 A JP2003177804 A JP 2003177804A
Authority
JP
Japan
Prior art keywords
sequence control
program
processing
state transition
transition table
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
JP2002287539A
Other languages
Japanese (ja)
Inventor
Tetsushi Ishida
哲史 石田
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.)
NIPPON KOEI POWER SYSTEMS CO Ltd
Original Assignee
NIPPON KOEI POWER SYSTEMS CO Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NIPPON KOEI POWER SYSTEMS CO Ltd filed Critical NIPPON KOEI POWER SYSTEMS CO Ltd
Priority to JP2002287539A priority Critical patent/JP2003177804A/en
Publication of JP2003177804A publication Critical patent/JP2003177804A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To realize the parallel processing of processing to be controlled a sequence control processing to be operated normally (in a fixed cycle) and a processing to be controlled in a real time due to an emergency phenomenon. <P>SOLUTION: This sequence control program generating device for generating a program for executing sequence control processing including sequence control processing phenomena which are not subject to any temporal constraint and non-sequence control processing phenomena which are subject to real time control is provided with a program converting part 19 for generating a plurality of original programs for separately operating the sequence control processing phenomena and the non-sequence control processing phenomena based on a state transition table constituted of a plurality of cells specified by states as judgement materials and phenomena as trigger conditions in which the sequence control processing phenomena and the non-sequence control processing phenomena are described so as to be mixed and a storage part 20 for separately storing each of those generated original programs. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、シーケンス制御プ
ログラムを自動的に生成するためのシーケンス制御プロ
グラム生成方法、その方法をコンピュータに実行させる
プログラムおよびシーケンス制御プログラム生成装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence control program generation method for automatically generating a sequence control program, a program for causing a computer to execute the method, and a sequence control program generation device.

【0002】[0002]

【従来の技術】従来、シーケンス制御に用いるプログラ
ム設計方式には、ラダーダイアグラム方式シーケンシャ
ルファンクションチャート方式、ファンクションブロッ
ク方式、タイムチャート、状態遷移図、条件テーブルな
どが主に使用されている。
2. Description of the Related Art Conventionally, a ladder diagram system, a sequential function chart system, a function block system, a time chart, a state transition diagram, a condition table, etc. are mainly used as a program design system used for sequence control.

【0003】これらの制御記述方法は、制御動作の表現
のためのものであり、実際に制御装置に制御を行わせる
際には、これらの方法により記述された情報を元にし
て、制御装置が解読実行できる制御用言語に展開する必
要があった。この制御言語に展開するためには、プログ
ラマの能力に頼ってきていたので、制御用プログラミン
グの効率向上を阻んでいた。
These control description methods are for expressing control operations, and when actually causing the control device to perform control, the control device is based on the information described by these methods. It was necessary to develop a control language that can be decrypted and executed. Since it depends on the ability of the programmer to develop this control language, it has hindered the efficiency improvement of the control programming.

【0004】また、これらの制御記述方法では、シーケ
ンス制御に必要な順序処理と実時間処理の両方を記述す
る際には、複雑な設計記述を実施する必要があった。
Further, in these control description methods, it is necessary to carry out a complicated design description when describing both the sequential processing and the real-time processing required for the sequence control.

【0005】また、特許文献1には、状態遷移表からプ
ログラムを自動生成する方法と装置に関する発明が開示
されている。この発明は、状態遷移表に記載する処理対
象が実時間制御のみを対象としていた。
Further, Patent Document 1 discloses an invention relating to a method and apparatus for automatically generating a program from a state transition table. In the present invention, the processing target described in the state transition table is only for real-time control.

【0006】[0006]

【特許文献1】特開2000−20347号公報[Patent Document 1] Japanese Patent Laid-Open No. 2000-20347

【0007】[0007]

【発明が解決しようとする課題】(1)前記特許文献1
に記載の発明によれば、状態遷移表に記載する処理対象
実時間制御のみを対象としていたが、シーケンス制御処
理の全ての要件に対応することができない、という問題
があった。
(1) The Patent Document 1
According to the invention described in (1), only the processing target real-time control described in the state transition table is targeted, but there is a problem that it is not possible to meet all the requirements of the sequence control processing.

【0008】(2)前記特許文献1に記載の発明によれ
ば、実時間制御設計時に定義した状態遷移表に従い、判
断状況や入力情報をCPUが解釈可能な原始プログラム
に変換することが可能である。しかし、従来の状態遷移
表の記述方式では、状態遷移表が処理の切り換えしか定
義していないためプログラムを自動生成するに際して
は、例えば、図3における状態IIと事象3とで特定さ
れるセル(II−3)「運転開始処理」の抽象的な記述
をCPUが解釈可能な原始プログラムに変換するため、
図4に示すような定義によってCPUが解釈可能な、例
えばC言語によるプログラムで指示を補足してから自動
変換する必要があった。
(2) According to the invention described in the patent document 1, it is possible to convert the judgment situation and the input information into a source program which can be interpreted by the CPU according to the state transition table defined at the time of real-time control design. is there. However, in the conventional description method of the state transition table, since the state transition table only defines the switching of processing, when automatically generating a program, for example, the cell (specified by state II and event 3 in FIG. 3 ( II-3) In order to convert the abstract description of “operation start processing” into a source program that can be interpreted by the CPU,
It is necessary to supplement the instruction with a program in C language, which can be interpreted by the CPU according to the definition as shown in FIG. 4, and then perform automatic conversion.

【0009】(3)また、シーケンス制御処理の新規開
発又は改造時に、過去の設計情報を利用する場合におい
て、従来は、シーケンス制御処理の全てをCPUが解釈
可能な原始プログラムに変換できなかったため、状態遷
移表の記述データと原始プログラムの両方を参照しなが
ら設計を行う必要があった。
(3) Further, when the past design information is used at the time of new development or modification of the sequence control process, conventionally, all of the sequence control process could not be converted into a source program which can be interpreted by the CPU. It was necessary to design while referring to both the description data of the state transition table and the source program.

【0010】(4)前記特許文献1に記載の発明によれ
ば、状態遷移表にて設計された段階において、状態遷移
表に入力する情報を実時間で入力し、状態遷移表の定義
から動作結果をタイミング図として自動表記可能として
いた。この場合、タイミング図は、机上で作り、それを
人間が状態遷移表に書き込んで構成していた。この様な
方法では、記述間違いが生じやすく、また、効率が悪か
った。
(4) According to the invention described in the patent document 1, at the stage of designing with the state transition table, the information to be input into the state transition table is input in real time, and the operation is performed from the definition of the state transition table. The result could be automatically written as a timing diagram. In this case, the timing diagram was constructed by writing it on a desk and writing it in a state transition table by a human. Such a method is apt to be erroneous in description and inefficient.

【0011】(5)状態遷移表によって記述されたシー
ケンス制御処理の矛盾検証は、前記公報記載の発明で
は、シミュレーションによって実時間を模擬したことに
よる動作試験を実施することしかできず、設計段階での
検証ができなかった。
(5) In the contradiction verification of the sequence control processing described by the state transition table, in the invention described in the above publication, only the operation test by simulating the real time by the simulation can be carried out, and at the design stage. Could not be verified.

【0012】(6)複数のセンサ動作状態から状態遷移
表によってきめ細かくシーケンス制御を実施するような
場合、従来では、状態遷移表を原始プログラムに変換
し、プログラム自動生成装置とは切断されたターゲット
装置の固定的な記録媒体に保存し、シーケンス制御実行
部の動作の際に記憶媒体から原始プログラムを参照して
実行していた。このため、動作中にシーケンス制御処理
を自由に変更することができなかった。
(6) In the case of performing detailed sequence control from a plurality of sensor operating states using a state transition table, conventionally, the state transition table is converted into a source program, and the target device is disconnected from the automatic program generation device. Was stored in a fixed recording medium, and when the sequence control execution unit was operating, the source program was referenced from the storage medium and executed. Therefore, the sequence control processing cannot be freely changed during operation.

【0013】本発明は、上記問題点に鑑み、緊急的な事
象によって実時間で制御が必要な処理と、定常的(定周
期)に動作する順序制御処理の並行処理を可能とするこ
とを目的とする。状態遷移表で設計したシーケンス制御
処理の全てをCPUが解釈可能な原始プログラムに変換
することのできるものを得ることを目的とする。シーケ
ンス制御処理の妥当性確認をする場合に、設計の自動検
証ができるシーケンス制御プログラム生成方法、その方
法をコンピュータに実行させるプログラムおよびシーケ
ンス制御プログラム生成装置を得ることを目的とする。
シーケンス処理実行時間を削減し、高速化プログラムを
生成することを目的とする。動作中にシーケンス制御処
理を自由に変更することができるものを得ること。ター
ゲット装置上でのシーケンス制御実行部の状態遷移表動
作を表示部にて可視化して試験できるものを得ることを
目的とする。高信頼度(安全性)シーケンス情報処理を
自動生成するシーケンス制御プログラム生成方法、その
方法をコンピュータに実行させるプログラムおよびシー
ケンス制御プログラム生成装置を得ることを目的とす
る。
In view of the above problems, it is an object of the present invention to enable parallel processing of processing that requires control in real time due to an urgent event and sequential control processing that operates steadily (fixed cycle). And An object of the present invention is to obtain one that can convert all of the sequence control processing designed by the state transition table into a source program that can be interpreted by a CPU. An object of the present invention is to obtain a sequence control program generation method capable of automatically verifying a design, a program that causes a computer to execute the method, and a sequence control program generation device when the validity of sequence control processing is confirmed.
The purpose is to reduce the sequence processing execution time and generate a speed-up program. To obtain the one that can freely change the sequence control process during operation. The purpose is to obtain what can be tested by visualizing the state transition table operation of the sequence control execution unit on the target device on the display unit. An object of the present invention is to obtain a sequence control program generation method for automatically generating highly reliable (safety) sequence information processing, a program for causing a computer to execute the method, and a sequence control program generation device.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するた
め、請求項1にかかる発明は、時間的制約を受けない順
序制御処理事象と、実時間制御が必要な非順序制御処理
事象を含むシーケンス制御処理を実行するプログラムを
生成するシーケンス制御プログラム生成方法において、
判断材料としての状態とトリガー条件としての事象とで
特定される複数セルで構成され、前記順序制御処理事象
と前記非順序制御処理事象とが混在して記述された状態
遷移表に基づいて、前記順序制御処理事象と前記非順序
制御処理事象を別個に動作させる複数の原始プログラム
に生成するプログラム変換ステップと、生成された各原
始プログラムを別個に記憶する記憶ステップとを含むこ
とを特徴とする。
In order to achieve the above object, the invention according to claim 1 is a sequence including a sequence control processing event not subject to time constraint and an out-of-order control processing event requiring real-time control. In a sequence control program generation method for generating a program that executes control processing,
It is composed of a plurality of cells specified by the state as a judgment material and the event as the trigger condition, based on the state transition table in which the sequential control processing event and the non-sequential control processing event are described in a mixed manner, The method is characterized by including a program conversion step of generating a sequence control processing event and the non-sequential control processing event into a plurality of source programs that operate separately, and a storage step of separately storing each generated source program.

【0015】この請求項1の発明によれば、実時間で制
御が必要な非順序制御処理事象と定常的に動作する順序
制御処理事象との並行処理を可能となる。
According to the first aspect of the present invention, it is possible to perform parallel processing of the non-sequential control processing event that requires control in real time and the sequential control processing event that operates steadily.

【0016】また、請求項2にかかる発明は、請求項1
に記載のシーケンス制御プログラム生成方法において、
前記非順序制御処理事象は、タイミング図データにおけ
る入力事象であり、かつ出力条件を事象と状態とで組み
合わせたセル内処理であり、前記プログラム変換ステッ
プは、前記タイミング図データにおける所定のタイミン
グの処理を抽出し、入力条件で組み合わせ判断に必要な
状態を入力部に記載した状態から抽出し、セル内処理結
果から遷移する状態を入力部に記載した状態から抽出
し、前記タイミング図データを状態遷移表に引き当てる
ことを特徴とする。
The invention according to claim 2 provides the invention according to claim 1.
In the sequence control program generation method described in
The out-of-order control process event is an input event in the timing diagram data, and is an in-cell process that combines output conditions with events and states, and the program conversion step is a process at a predetermined timing in the timing diagram data. , The states required for combination judgment in the input conditions are extracted from the states described in the input unit, the states transitioning from the in-cell processing result are extracted from the states described in the input unit, and the timing diagram data is transitioned Characterized by assigning to a table.

【0017】この請求項2の発明によれば、順序制御処
理を伴う状態遷移表の設計情報から原始プログラムを容
易に生成することができる。
According to the second aspect of the invention, the source program can be easily generated from the design information of the state transition table accompanied by the order control processing.

【0018】また、請求項3にかかる発明は、請求項1
または2に記載のシーケンス制御プログラム生成方法に
おいて、前記プログラム変換ステップは、機械語プログ
ラムへの変換処理を実行し、前記変換処理において、シ
ーケンス制御に必要な各種処理の入出力メモリ番地を処
理毎に固定することを特徴とする。
The invention according to claim 3 is the same as claim 1
Alternatively, in the sequence control program generation method according to the second aspect, the program conversion step executes a conversion process into a machine language program, and in the conversion process, input / output memory addresses of various processes necessary for sequence control are processed for each process. It is characterized by fixing.

【0019】この請求項3の発明によれば、シーケンス
制御処理に必要なデータと全てのシーケンス制御処理
を、状態遷移表と制御仕様表記のみで機械語の生成が可
能となる。
According to the third aspect of the present invention, it is possible to generate the machine language for the data necessary for the sequence control processing and all the sequence control processing only by the state transition table and the control specification notation.

【0020】また、請求項4にかかる発明は、請求項3
に記載のシーケンス制御プログラム生成方法において、
前記プログラム変換ステップは、前記変換処理におい
て、シーケンス制御に必要な各種処理である接点入出力
処理、計測値入出力処理、通信処理の入出力メモリ番地
を処理毎に固定することを特徴とする。
The invention according to claim 4 is the same as that of claim 3
In the sequence control program generation method described in
The program conversion step is characterized in that, in the conversion process, input / output memory addresses for contact input / output process, measurement value input / output process, and communication process, which are various processes required for sequence control, are fixed for each process.

【0021】この請求項4の発明によれば、サブルーチ
ン処理するために必要なデータを与えることができる。
According to the fourth aspect of the present invention, the data necessary for the subroutine processing can be given.

【0022】また、請求項5にかかる発明は、請求項3
または4に記載のシーケンス制御プログラム生成方法に
おいて、前記プログラム変換ステップは、制御仕様表記
により記述されたシーケンス制御処理から、ブール代数
の法則によって前記原始プログラムを生成することを特
徴とする。
The invention according to claim 5 provides the invention according to claim 3.
Alternatively, in the sequence control program generation method according to the fourth aspect, the program conversion step generates the primitive program from a sequence control process described by a control specification notation according to the law of Boolean algebra.

【0023】この請求項5の発明によれば、設計データ
を小型化するので、シーケンス制御処理実行の処理時間
を削減し、高速化プログラムを生成することができる。
According to the invention of claim 5, since the design data is downsized, the processing time for executing the sequence control processing can be reduced and a high-speed program can be generated.

【0024】また、請求項6にかかる発明は、請求項3
〜5のいずれか一つに記載のシーケンス制御プログラム
生成方法において、状態遷移表データの登録に際し、特
定のセルにおける数学的に表記されている制御出力情報
の格納番地と出力情報に基づき、予め記憶されている他
のセルにおいて定義されている出力情報を検索し、出力
条件が同一となる処理定義に関して定義されている入力
条件も同一であるかを比較し、異なる入力条件で出力情
報が同一になる処理は、設計矛盾が生じていると判断す
る検証ステップをさらに含むことを特徴とする。
The invention according to claim 6 is the same as claim 3
In the method for generating a sequence control program according to any one of 1 to 5, when registering the state transition table data, it is stored in advance based on a storage address and output information of control output information mathematically written in a specific cell. Search the output information defined in other cells that are defined, compare if the input conditions defined for the process definition with the same output condition are the same, and compare the output information under the different input conditions. The processing is further characterized by further including a verification step of determining that a design contradiction has occurred.

【0025】この請求項6の発明によれば、設計の自動
検証を行うことができる。
According to the invention of claim 6, it is possible to automatically verify the design.

【0026】また、請求項7にかかる発明は、請求項1
〜6のいずれか一つに記載のシーケンス制御プログラム
生成方法において、前記記憶ステップは、生成された各
原始プログラムを、ネットワークに接続されたターゲッ
ト装置に転送することを特徴とする。
The invention according to claim 7 provides the invention according to claim 1.
The sequence control program generating method described in any one of 1 to 6 is characterized in that the storing step transfers each generated source program to a target device connected to a network.

【0027】この請求項7の発明によれば、ネットワー
クに接続されたターゲット装置でプログラムの実行検証
を行える。
According to the invention of claim 7, execution verification of the program can be performed by the target device connected to the network.

【0028】また、請求項8にかかる発明は、請求項1
〜7のいずれか一つに記載のシーケンス制御プログラム
生成方法において、ネットワークに接続されたターゲッ
ト装置で実施するシーケンス制御プログラムの動作試験
を行う際に、前記ターゲット装置内に保管された状態遷
移表の情報をネットワーク経由して表示する表示ステッ
プをさらに含むことを特徴とする。
The invention according to claim 8 is the same as claim 1.
In the sequence control program generation method according to any one of 1 to 7, when performing an operation test of the sequence control program executed by the target device connected to the network, a state transition table stored in the target device is stored. It further comprises a display step of displaying the information via the network.

【0029】この請求項8の発明によれば、生成された
原始プログラムの動作確認を行うことができる。
According to the invention of claim 8, it is possible to confirm the operation of the generated source program.

【0030】また、請求項9にかかる発明は、請求項1
〜8のいずれか一つに記載のシーケンス制御プログラム
生成方法において、前記プログラム変換ステップは、主
シーケンス制御処理のための状態遷移表と、フェールセ
ーフ用シーケンス制御処理のための状態遷移表とから前
記各原始プログラムを生成し、主シーケンス処理用とフ
ェールセーフ用のシーケンス制御処理の各状態遷移表に
よって得られたシーケンス制御処理結果の出力整合性チ
ェックを行い、検証結果が正しいときに、主シーケンス
制御処理結果の出力を行うことを特徴とする。
The invention according to claim 9 relates to claim 1
The sequence control program generation method according to any one of 1 to 8 above, wherein the program conversion step is performed by using the state transition table for the main sequence control process and the state transition table for the fail safe sequence control process. Generates each source program, checks the output consistency of the sequence control processing result obtained by each state transition table of the main sequence processing and fail safe sequence control processing, and when the verification result is correct, the main sequence control It is characterized in that the processing result is output.

【0031】この請求項9の発明によれば、出力整合性
の検証結果が正しくない場合に、誤った出力を未然に防
止することができる。
According to the invention of claim 9, erroneous output can be prevented in advance when the output consistency verification result is incorrect.

【0032】また、請求項10にかかる発明は、請求項
1〜9のいずれか一つに記載された方法をコンピュータ
に実行させるプログラムであるので、請求項1〜9のい
ずれか一つの動作をコンピュータによって実行すること
ができる。
Since the invention according to claim 10 is a program for causing a computer to execute the method described in any one of claims 1 to 9, the operation of any one of claims 1 to 9 is performed. It can be executed by a computer.

【0033】また、請求項11にかかる発明は、時間的
制約を受けない順序制御処理事象と、実時間制御が必要
な非順序制御処理事象を含むシーケンス制御処理を実行
するプログラムを生成するシーケンス制御プログラム生
成装置において、判断材料としての状態とトリガー条件
としての事象とで特定される複数セルで構成され、前記
順序制御処理事象と前記非順序制御処理事象とが混在し
て記述された状態遷移表に基づいて、前記順序制御処理
事象と前記非順序制御処理事象を別個に動作させる複数
の原始プログラムに生成するプログラム変換手段と、生
成された各原始プログラムを別個に記憶する記憶手段と
を備えたことを特徴とする。
Further, the invention according to claim 11 is a sequence control for generating a program for executing a sequence control process including a sequence control process event not subject to time constraint and an out-of-order control process event requiring real-time control. In the program generation device, a state transition table composed of a plurality of cells specified by a state as a judgment factor and an event as a trigger condition, and described by mixing the sequential control processing event and the non-sequential control processing event. A program conversion means for generating the sequence control processing event and the non-sequential control processing event into a plurality of source programs that operate separately, and a storage means for separately storing the generated source programs. It is characterized by

【0034】この請求項11の発明によれば、実時間で
制御が必要な非順序制御処理事象と定常的に動作する順
序制御処理事象との並行処理を可能となる。
According to the eleventh aspect of the present invention, it is possible to perform the parallel processing of the non-sequential control processing event which requires control in real time and the sequential control processing event which operates steadily.

【0035】また、請求項12にかかる発明は、請求項
11に記載のシーケンス制御プログラム生成装置におい
て、前記非順序制御処理事象は、タイミング図データに
おける入力事象であり、かつ出力条件を事象と状態とで
組み合わせたセル内処理であり、前記プログラム変換手
段は、前記タイミング図データにおける所定のタイミン
グの処理を抽出し、入力条件で組み合わせ判断に必要な
状態を入力部に記載した状態から抽出し、セル内処理結
果から遷移する状態を入力部に記載した状態から抽出
し、前記タイミング図データを状態遷移表に引き当てる
ことを特徴とする。
Further, in the invention according to claim 12, in the sequence control program generating device according to claim 11, the non-sequential control processing event is an input event in the timing diagram data, and the output condition is an event and a state. Is the in-cell processing combined with, the program conversion means extracts the processing at a predetermined timing in the timing diagram data, and extracts the state required for the combination determination in the input condition from the state described in the input unit, It is characterized in that the transition state from the in-cell processing result is extracted from the states described in the input section and the timing diagram data is assigned to the state transition table.

【0036】この請求項12の発明によれば、順序制御
処理を伴う状態遷移表の設計情報から原始プログラムを
容易に生成することができる。
According to the twelfth aspect of the present invention, the source program can be easily generated from the design information of the state transition table accompanied by the order control processing.

【0037】また、請求項13にかかる発明は、請求項
11または12に記載のシーケンス制御プログラム生成
装置において、前記プログラム変換手段は、機械語プロ
グラムへの変換処理を実行し、前記変換処理において、
シーケンス制御に必要な各種処理の入出力メモリ番地を
処理毎に固定することを特徴とする。
The invention according to claim 13 is the sequence control program generating device according to claim 11 or 12, wherein the program converting means executes conversion processing into a machine language program, and in the conversion processing,
It is characterized in that the input / output memory addresses of various processes required for sequence control are fixed for each process.

【0038】この請求項13の発明によれば、シーケン
ス制御処理に必要なデータと全てのシーケンス制御処理
を、状態遷移表と制御仕様表記のみで機械語の生成が可
能となる。
According to the thirteenth aspect of the present invention, it is possible to generate the machine language for the data necessary for the sequence control processing and all the sequence control processing only by the state transition table and the control specification notation.

【0039】また、請求項14にかかる発明は、請求項
13に記載のシーケンス制御プログラム生成装置におい
て、前記プログラム変換手段は、前記変換処理におい
て、シーケンス制御に必要な各種処理である接点入出力
処理、計測値入出力処理、通信処理の入出力メモリ番地
を処理毎に固定することを特徴とする。
Further, the invention according to claim 14 is the sequence control program generating device according to claim 13, wherein the program converting means is a contact input / output process which is various processes necessary for sequence control in the conversion process. It is characterized in that the input / output memory addresses of the measurement value input / output processing and communication processing are fixed for each processing.

【0040】この請求項14の発明によれば、サブルー
チン処理するために必要なデータを与えることができ
る。
According to the fourteenth aspect of the present invention, the data required for the subroutine processing can be given.

【0041】また、請求項15にかかる発明は、請求項
13または14に記載のシーケンス制御プログラム生成
装置において、前記プログラム変換手段は、制御仕様表
記により記述されたシーケンス制御処理から、ブール代
数の法則によって前記原始プログラムを生成することを
特徴とする。
According to a fifteenth aspect of the present invention, in the sequence control program generating apparatus according to the thirteenth or fourteenth aspect, the program conversion means is based on a sequence control process described by a control specification notation, and a Boolean algebra The source program is generated by.

【0042】この請求項15の発明によれば、設計デー
タを小型化するので、シーケンス制御処理実行の処理時
間を削減し、高速化プログラムを生成することができ
る。
According to the fifteenth aspect of the present invention, since the design data is miniaturized, the processing time for executing the sequence control processing can be reduced and a high speed program can be generated.

【0043】また、請求項16にかかる発明は、請求項
13〜15のいずれか一つに記載のシーケンス制御プロ
グラム生成装置において、状態遷移表データの登録に際
し、特定のセルにおける数学的に表記されている制御出
力情報の格納番地と出力情報に基づき、予め記憶されて
いる他のセルにおいて定義されている出力情報を検索
し、出力条件が同一となる処理定義に関して定義されて
いる入力条件も同一であるかを比較し、異なる入力条件
で出力情報が同一になる処理は、設計矛盾が生じている
と判断する検証手段をさらに備えたことを特徴とする。
The invention according to claim 16 is, in the sequence control program generator according to any one of claims 13 to 15, mathematically represented in a specific cell when registering the state transition table data. Based on the storage address of the control output information and the output information, the output information defined in another cell stored in advance is searched, and the input condition defined for the process definition having the same output condition is also the same. It is characterized by further comprising a verification means for comparing whether or not the output information is the same under different input conditions and determining that a design contradiction has occurred.

【0044】この請求項16の発明によれば、設計の自
動検証を行うことができる。
According to the sixteenth aspect of the present invention, it is possible to automatically verify the design.

【0045】また、請求項17にかかる発明は、請求項
11〜16のいずれか一つに記載のシーケンス制御プロ
グラム生成装置において、前記記憶手段は、生成された
各原始プログラムを、ネットワークに接続されたターゲ
ット装置に転送することを特徴とする。
According to a seventeenth aspect of the present invention, in the sequence control program generation device according to any one of the eleventh to sixteenth aspects, the storage means connects each generated source program to a network. It is also characterized in that it is transferred to the target device.

【0046】この請求項17の発明によれば、ネットワ
ークに接続されたターゲット装置でプログラムの実行検
証を行える。
According to the seventeenth aspect of the present invention, the execution verification of the program can be performed by the target device connected to the network.

【0047】また、請求項18にかかる発明は、請求項
11〜17のいずれか一つに記載のシーケンス制御プロ
グラム生成装置において、ネットワークに接続されたタ
ーゲット装置で実施するシーケンス制御プログラムの動
作試験を行う際に、前記ターゲット装置内に保管された
状態遷移表の情報をネットワーク経由して表示する表示
手段をさらに備えたことを特徴とする。
The invention according to claim 18 is the sequence control program generating apparatus according to any one of claims 11 to 17, wherein an operation test of the sequence control program executed by the target device connected to the network is performed. When performing, the display device further comprises display means for displaying information of the state transition table stored in the target device via the network.

【0048】この請求項18の発明によれば、生成され
た原始プログラムの動作確認を行うことができる。
According to the eighteenth aspect of the invention, it is possible to confirm the operation of the generated source program.

【0049】また、請求項19にかかる発明は、請求項
11〜18のいずれか一つに記載のシーケンス制御プロ
グラム生成装置において、前記プログラム変換手段は、
主シーケンス制御処理のための状態遷移表と、フェール
セーフ用シーケンス制御処理のための状態遷移表とから
前記各原始プログラムを生成し、主シーケンス処理用と
フェールセーフ用のシーケンス制御処理の各状態遷移表
によって得られたシーケンス制御処理結果の出力整合性
チェックを行い、検証結果が正しいときに、主シーケン
ス制御処理結果の出力を行うことを特徴とする。
The invention according to claim 19 is the sequence control program generating device according to any one of claims 11 to 18, wherein the program converting means is:
The state transition table for the main sequence control processing and the state transition table for the fail safe sequence control processing are used to generate each of the above-mentioned source programs, and each state transition of the sequence control processing for the main sequence processing and the fail safe is performed. An output consistency check of the sequence control processing result obtained from the table is performed, and when the verification result is correct, the main sequence control processing result is output.

【0050】この請求項19の発明によれば、出力整合
性の検証結果が正しくない場合に、誤った出力を未然に
防止することができる。
According to the nineteenth aspect of the present invention, erroneous output can be prevented in advance when the result of verifying the output consistency is incorrect.

【0051】[0051]

【発明の実施の形態】以下に添付図面を参照して、この
発明にかかるシーケンス制御プログラム生成装置、シー
ケンス制御プログラム生成方法、その方法をコンピュー
タに実行させるプログラムの好適な実施の形態を詳細に
説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of a sequence control program generation device, a sequence control program generation method, and a program for causing a computer to execute the method will be described in detail below with reference to the accompanying drawings. To do.

【0052】図1は、本発明によるシーケンス制御プロ
グラム生成装置9の一実施例を示すものである。このシ
ーケンス制御プログラム生成装置9は、マンマシンイン
ターフェイス10、状態遷移表エディタ14、タイミン
グ図エディタ15、状態遷移表生成部16、記憶部1
7、設計知識データベース18、プログラム変換部1
9、原始プログラム記憶部20、処理シュミレート部2
3、入出力シミュレート部24及び実時間発生部25か
らなる。
FIG. 1 shows an embodiment of a sequence control program generation device 9 according to the present invention. The sequence control program generation device 9 includes a man-machine interface 10, a state transition table editor 14, a timing diagram editor 15, a state transition table generation unit 16, and a storage unit 1.
7, design knowledge database 18, program conversion unit 1
9, source program storage unit 20, processing simulation unit 2
3, an input / output simulation unit 24 and a real-time generation unit 25.

【0053】前記マンマシンインターフェイス10は、
表示部11、キーボード12、マウス13を包含して構
成されている。このマンマシンインターフェイス10
は、ライトペン、スタイラスペンなどの他、音声入出力
装置(マイクとイヤホンのセットタイプやヘッドホンタ
イプなど)を包含するものであっても良い。
The man-machine interface 10 is
The display unit 11, the keyboard 12, and the mouse 13 are included. This man-machine interface 10
May include a sound input / output device (a set type of a microphone and an earphone, a headphone type, etc.) in addition to a light pen, a stylus pen, and the like.

【0054】前記原始プログラム記憶部20は、順序制
御処理の記憶部21と非順序制御処理の記憶部22とか
らなる。
The source program storage unit 20 comprises a storage unit 21 for order control processing and a storage unit 22 for out-of-order control processing.

【0055】本発明のシーケンス制御プログラム生成装
置9は、また、LANなどのネットワーク26を介して
ターゲット装置27に結合されている。このターゲット
装置27は、プログラム保管部28、シーケンス制御実
行部29、状態遷移表動作状態発生部30からなる。
The sequence control program generator 9 of the present invention is also coupled to the target device 27 via a network 26 such as a LAN. The target device 27 includes a program storage unit 28, a sequence control execution unit 29, and a state transition table operation state generation unit 30.

【0056】前記マンマシンインターフェイス10は、
表示部11の表示を見ながら、キーボード12、マウス
13、音声入出力装置などを操作することにより、図3
に示すような順序制御処理の記載部aと非順序制御処理
の記載部bとからなる状態遷移表を、状態遷移表エディ
タ14にて設計するために必要なデータ、例えば、状
態、事象、アクション、遷移先などを入力する。また、
状態遷移表を設計するために必要とされるタイミング情
報、例えば図9に示すようなタイミングデータを、キー
ボード12、マウス13、音声入出力装置などを操作す
ることにより、タイミング図エディタ15を用いて入力
する。前記表示部11に表示された状態遷移表の状態と
事象の交差するセルの表示エリアに、キーボード12の
カーソルキーやマウス13でカーソルを移動させてクリ
ックやリターンキーを操作することにより、そのセルの
事象の入力を指示したり、処理シミュレート部23から
供給されるシーケンス制御実行部29により実時間動作
結果が表示部11に表示される。
The man-machine interface 10 is
By operating the keyboard 12, the mouse 13, the voice input / output device, etc. while observing the display of the display unit 11, FIG.
Data necessary for designing a state transition table including a sequence control process description part a and an unordered control process description part b as shown in FIG. , Input the transition destination, etc. Also,
Timing information necessary for designing the state transition table, for example, timing data as shown in FIG. 9, is operated by operating the keyboard 12, the mouse 13, the voice input / output device, etc., by using the timing diagram editor 15. input. By moving the cursor with the cursor key of the keyboard 12 or the mouse 13 and operating the click or return key in the display area of the cell where the state and the event of the state transition table displayed on the display unit 11 intersect, the cell Is input, and the real-time operation result is displayed on the display unit 11 by the sequence control execution unit 29 supplied from the process simulation unit 23.

【0057】前記状態遷移表エディタ14は、マンマシ
ンインタフェース10を介して入力されたデータに基づ
き、順序制御処理の記載部aと非順序制御処理の記載部
bとからなる状態遷移表を作成するもので、さらに詳し
くは、図2に示すように、前記表示部11への信号のや
りとりやX−Y座標の判断を行う表示用エディタ部32
と、前記キーボード12、マウス13、音声入出力装置
などとのやり取りを行う入力用エディタ部33と、特定
のセルの出力情報から他のセルの出力情報を検索し、同
一となる処理定義に関して入力条件が同一であるかを比
較してシーケンス制御処理の設計の妥当性を確認するた
めの整合性チェック部35と、制御仕様表記を用いたシ
ーケンス制御処理を、ブール代数の法則を用いて設計デ
ータを小型化することで、シーケンス制御処理実効の処
理時間を削減し、高速化プログラムを生成するためのブ
ール代数処理部36と、表示用エディタ部32と入力用
エディタ部33から入力したデータの記憶部17への登
録の実行を行うデータ登録実行部34と、設計知識デー
タベース18に蓄えた設計知識を機能拡張や新たなシー
ケンス制御処理の開発段階において検査、参照するため
の検査・参照部37とで構成されている。
The state transition table editor 14 creates a state transition table composed of a description part a of the order control process and a description part b of the unordered control process based on the data input through the man-machine interface 10. More specifically, as shown in FIG. 2, a display editor unit 32 for exchanging signals with the display unit 11 and determining XY coordinates is shown in FIG.
And an input editor section 33 for exchanging with the keyboard 12, mouse 13, voice input / output device, etc., and output information of another cell is searched from output information of a specific cell, and the same process definition is input. The consistency check unit 35 for comparing the conditions to confirm whether or not the design of the sequence control process is valid, and the sequence control process using the control specification notation are used for design data using the law of Boolean algebra. To reduce the processing time of the sequence control processing and to store the data input from the display editor unit 32 and the input editor unit 33 for generating a speed-up program. The data registration execution unit 34 for executing registration in the unit 17 and the design knowledge stored in the design knowledge database 18 for function expansion and new sequence control processing. Tested in originating stage, and a test-reference unit 37 for referring.

【0058】前記タイミング図エディタ15は、マンマ
シンインタフェース10を介して入力されたデータに基
づき、シーケンス制御設計におけるシーケンスタイミン
グ図を作成するためのもので、さらに詳しくは、図2に
示すように、前記表示部11への信号のやり取りやX−
Y座標の判断を行う表示用エディタ部38と、前記キー
ボード12、マウス13、音声入出力装置などとのやり
取りを行う入力用エディタ部39と、設計知識データベ
ース18に蓄えた設計知識を機能拡張や新たなシーケン
ス制御処理の開発段階において検査、参照するための検
査・参照部40とで構成されている。
The timing diagram editor 15 is for creating a sequence timing diagram in the sequence control design based on the data inputted through the man-machine interface 10. More specifically, as shown in FIG. Exchange of signals to the display unit 11 and X-
A display editor section 38 for judging the Y coordinate, an input editor section 39 for exchanging with the keyboard 12, the mouse 13, a voice input / output device, etc., and a function for expanding design knowledge stored in the design knowledge database 18 An inspection / reference unit 40 for inspecting and referencing at the development stage of a new sequence control process.

【0059】前記状態遷移表生成部16は、図9に示す
ようなタイミング図を、図10に示すような状態遷移表
に変換するための状態遷移表変換部41と、特定のセル
の出力情報から他のセルの出力情報を検索し、同一とな
る処理定義に関して入力条件が同一であるかを比較して
シーケンス制御処理の設計の妥当性を確認するための整
合性チェック部43と、制御仕様表記を用いたシーケン
ス制御処理を、ブール代数の法則を用いて設計データを
小型化することで、シーケンス制御処理実効の処理時間
を削減し、高速化プログラムを生成するためのブール代
数処理部44と、前記状態遷移表変換部41から入力し
たデータの記憶部17への登録の実行を行うデータ登録
実行部42とで構成されている。
The state transition table generation section 16 has a state transition table conversion section 41 for converting the timing diagram shown in FIG. 9 into a state transition table shown in FIG. 10, and output information of a specific cell. From the output information of other cells from the cell, comparing the input conditions with respect to the same process definition to confirm the validity of the design of the sequence control process, and the control specification. The sequence control processing using the notation reduces the design control data by using the rule of Boolean algebra to reduce the effective processing time of the sequence control processing and a Boolean algebra processing unit 44 for generating a high-speed program. , A data registration execution unit 42 that executes registration of data input from the state transition table conversion unit 41 in the storage unit 17.

【0060】前記タイミング図エディタ15と状態遷移
表生成部16とで、前記状態遷移表エディタ14に対応
している。
The timing diagram editor 15 and the state transition table generator 16 correspond to the state transition table editor 14.

【0061】前記記憶部17には、状態遷移表エディタ
14で設計され、編集された状態遷移表と、状態遷移表
生成部16でシーケンスタイミング図に基づき作成され
た状態遷移表とが保管される。これらの状態遷移表デー
タの記憶部17への登録時には、前述のように、制御仕
様表記を用いて行われ、また、この制御仕様表記を用い
たシーケンス制御処理は、さらに、ブール代数の法則を
用いて設計データを小型化することにより、シーケンス
制御処理実行時間を削減し、高速化プログラムを生成し
ている。
The storage unit 17 stores the state transition table designed and edited by the state transition table editor 14 and the state transition table created by the state transition table generation unit 16 based on the sequence timing diagram. . When the state transition table data is registered in the storage unit 17, the control specification notation is used as described above, and the sequence control process using this control specification notation further applies the rule of Boolean algebra. By using this to downsize the design data, the sequence control process execution time is reduced and a high-speed program is generated.

【0062】前記設計知識データベース18は、大容量
の記憶媒体からなり、状態遷移表と制御仕様表記によっ
て、仕様定義のみで設計できるようにしたことにより、
記憶部17の設計技術や知識のデータを保管し、管理し
ている。この設計知識データベース18に保管された設
計技術や知識のデータは、再度、状態遷移表エディタ1
4やタイミング図エディタ15からの指令で検索・参照
部37、40で読み出されることにより、既存のシーケ
ンス処理の機能拡張や新たなシーケンス制御処理の開発
段階において、容易に探索や参照が可能となる。このこ
とは、大幅に生産性を改善することができるとともに、
ノウハウを電子データとして蓄積可能である。
The design knowledge database 18 is composed of a large-capacity storage medium, and the state transition table and the control specification notation make it possible to design only by the specification definition.
The design technology and knowledge data in the storage unit 17 are stored and managed. The design technology and knowledge data stored in the design knowledge database 18 are again stored in the state transition table editor 1
4 and instructions from the timing diagram editor 15 are read by the search / reference units 37 and 40, so that search and reference can be easily performed in the function expansion of the existing sequence processing or in the development stage of new sequence control processing. . This can greatly improve productivity and
Know-how can be accumulated as electronic data.

【0063】前記プログラム変換部19は、各セル毎に
記憶部17に保管されたデータ、すなわち、状態遷移表
エディタ14で設計され、編集された状態遷移表と、状
態遷移表生成部16でシーケンスタイミング図に基づき
作成された状態遷移表とに基づき、順序制御処理と非順
序制御処理の順に、設計したシーケンス制御処理全て
を、CPUが解釈可能な原始プログラムに変換する。例
えば、図5において、状態(II)と事象(3)との交
差するセル(II−3)内に記述するシーケンス制御処
理を、図6に示すように、接点入力処理呼び出しMと、
接点出力処理呼び出しNに分解し、サブルーチンを処理
すること、このサブルーチンを処理するために必要な情
報のメモリ格納番地を固定的に定義すること、さらに、
サブルーチンを呼び出すための条件判断を記述するため
の設計記号Xと、情報とメモリ格納番地を記述するため
の設計記号Yとを制御仕様表記方法にする。したがっ
て、状態遷移表で設計したシーケンス制御処理全てを、
CPUが解釈可能な原始プログラムに変換することが可
能になる。これらの別々に動作可能な原始プログラム
は、2つに分離し変換して原始プログラム記憶部20の
順序制御処理の記憶部21と非順序制御処理の記憶部2
2に保管する。
The program conversion unit 19 stores the data stored in the storage unit 17 for each cell, that is, the state transition table designed and edited by the state transition table editor 14, and the sequence in the state transition table generation unit 16. Based on the state transition table created based on the timing chart, all the designed sequence control processes are converted into a source program that can be interpreted by the CPU in the order of the sequential control process and the non-sequential control process. For example, in FIG. 5, the sequence control process described in the cell (II-3) where the state (II) and the event (3) intersect is as shown in FIG.
Decomposing into contact output processing call N, processing a subroutine, fixedly defining a memory storage address of information necessary for processing this subroutine, and
A design symbol X for describing a condition judgment for calling a subroutine and a design symbol Y for describing information and a memory storage address are used as a control specification notation method. Therefore, all sequence control processing designed with the state transition table
It becomes possible to convert it into a source program that can be interpreted by the CPU. These separately operable source programs are separated and converted into two, and the source program storage unit 20 stores the sequential control processing storage unit 21 and the unordered control processing storage unit 2.
Store in 2.

【0064】前記ターゲット装置27は、複数のセンサ
動作状態から状態遷移表によってきめ細かくシーケンス
制御を実施するような場合に用いられるもので、本発明
によるシーケンス制御プログラム生成装置9とLANな
どのネットワーク26を介して結合しておくことによ
り、生成した原始プログラムをターゲット装置27内の
シーケンス制御実行部29にコピーすることで原始プロ
グラムが実行される。
The target device 27 is used when finely performing sequence control from a plurality of sensor operating states according to a state transition table. The sequence control program generating device 9 according to the present invention and the network 26 such as a LAN are connected to each other. The source program is executed by copying the generated source program to the sequence control execution unit 29 in the target device 27 by connecting the source program via the source program.

【0065】また、ターゲット装置27のシーケンス制
御実行部29の原始プログラムを、状態遷移表エディタ
14にて自由に作成、変更ができることから、プログラ
ム変換部19にて生成し、原始プログラム記憶部20の
順序制御処理の記憶部21と非順序制御処理の記憶部2
2にて記憶し、ターゲット装置27にネットワーク26
を経由して原始プログラムをプログラム保管部28に一
時的にコピーすることで、シーケンス制御実行部29を
動作可能とする。さらに、ネットワーク26を介してコ
ピーが自由に生成できることから、既に動作中のシーケ
ンス制御処理の変更を可能にしている。さらにまた、タ
ーゲット装置27上でのシーケンス制御実行部29の動
作結果を状態遷移表動作状態発生部30に保管し、LA
N26を経由して動作結果を表示部11にて可視化して
試験できる。具体例については、後述する。
Since the source program of the sequence control execution unit 29 of the target device 27 can be freely created and changed by the state transition table editor 14, it is generated by the program conversion unit 19 and stored in the source program storage unit 20. Storage unit 21 for order control processing and storage unit 2 for unordered control processing
2, and the target device 27 stores the network 26
The sequence control execution unit 29 can be operated by temporarily copying the source program to the program storage unit 28 via the. Further, since the copy can be freely generated via the network 26, it is possible to change the sequence control processing which is already in operation. Furthermore, the operation result of the sequence control execution unit 29 on the target device 27 is stored in the state transition table operation state generation unit 30, and LA
The operation result can be visualized and tested on the display unit 11 via N26. A specific example will be described later.

【0066】前記処理シミュレート部23、入出力シミ
ュレート部24、シミュレートのための実時間発生部2
5の構成と、その作用は、従来技術としてあげた特開2
000−20347号公報記載の発明と同様の技術内容
である。尚、本実施形態のシーケンス制御プログラム生
成装置で実行されるシーケンス制御プログラム生成プロ
グラムは、インストール可能な形式又は実行可能な形式
のファイルでCD−ROM、フロッピー(R)ディスク
(FD)、DVD等のコンピュータで読み取り可能な記
録媒体に記録されて提供される。また、本実施形態のシ
ーケンス制御プログラム生成プログラムを、インターネ
ット等のネットワークに接続されたコンピュータ上に格
納し、ネットワーク経由でダウンロードさせることによ
り提供するように構成しても良い。また、本実施形態の
シーケンス制御プログラム生成プログラムを、ネットワ
ーク経由で配布するように構成しても良い。
The processing simulating section 23, the input / output simulating section 24, and the real-time generating section 2 for simulating
The configuration and the action of No. 5 are described in Japanese Patent Application Laid-Open No.
The technical contents are the same as the invention described in Japanese Patent Application Laid-Open No. 000-20347. The sequence control program generation program executed by the sequence control program generation device of the present embodiment is a file in an installable format or an executable format, such as a CD-ROM, a floppy (R) disk (FD), or a DVD. It is provided by being recorded in a computer-readable recording medium. The sequence control program generation program of the present embodiment may be stored in a computer connected to a network such as the Internet and provided by being downloaded via the network. Further, the sequence control program generation program of this embodiment may be configured to be distributed via a network.

【0067】次に、本発明によるシーケンス制御プログ
ラム生成方法及びその装置9の作用を図面に基づき説明
する。(1)状態遷移表は、行方向が判断材料としての
「状態」(I) 、(II) 、(III) 、…を表
し、列方向がトリガー条件としての「事象」(1) 、
(2) 、(3) 、…を表している。
Next, the operation of the sequence control program generation method and apparatus 9 according to the present invention will be described with reference to the drawings. (1) In the state transition table, the row direction represents “states” (I), (II), (III), ... As judgment factors, and the column direction represents “event” (1) as a trigger condition,
(2), (3), ...

【0068】しかるに、状態遷移表は、従来、記載する
処理対象が実時間制御のみを対象としていた。しかし、
シーケンス制御処理においては、時間的制約を受けない
順序制御処理と、実時間制御が必要な非順序制御処理を
含むことが要求される。
However, in the state transition table, the processing target to be described heretofore has been only for the real-time control. But,
The sequence control process is required to include a sequence control process that is not subject to time restrictions and an out-of-order control process that requires real-time control.

【0069】そこで、本発明では、図3に示す例では、
状態遷移表における「事象」の列(1)に順序制御処理
の記載部aを、また、「事象」の列(2)(3)に非順
序制御処理の記載部bをそれぞれ混在して記述している
ことを特徴としている。なお、図3に示す状態遷移表は
一例であって、より複雑なシーケンス制御処理において
は、それぞれの記載部a、bは、複数列であってもよ
い。
Therefore, in the present invention, in the example shown in FIG.
In the state transition table, the description part a of the sequence control process is described in the column (1) of the "event", and the description part b of the non-sequence control process is described in the columns (2) and (3) of the "event". It is characterized by doing. Note that the state transition table shown in FIG. 3 is an example, and in a more complicated sequence control process, each description part a and b may be a plurality of columns.

【0070】この状態遷移表は、マンマシンインタフェ
ース10の表示部11に表示して、キーボード12とマ
ウス13の操作により、状態遷移表エディタ14で設計
され、この設計情報は、記憶部17に図5のような形態
で保管される。他のセルについても同様である。
This state transition table is displayed on the display unit 11 of the man-machine interface 10 and is designed by the state transition table editor 14 by operating the keyboard 12 and mouse 13. The design information is stored in the storage unit 17 as a diagram. It is stored in the form of 5. The same applies to other cells.

【0071】図21はシーケンス処理を伴わない場合の
状態遷移表の一例を示す説明図であり、図23は、図2
1の状態遷移表から生成されたプログラムの処理手順を
示すフローチャートである。また、図22はシーケンス
処理を伴う場合の状態遷移表の一例を示す説明図であ
り、図24は、図22の状態遷移表から生成されたプロ
グラムの処理手順を示すフローチャートである。
FIG. 21 is an explanatory diagram showing an example of a state transition table when sequence processing is not involved, and FIG.
It is a flow chart which shows the processing procedure of the program generated from the state transition table of No. 1. 22 is an explanatory diagram showing an example of the state transition table when the sequence processing is involved, and FIG. 24 is a flowchart showing the processing procedure of the program generated from the state transition table of FIG.

【0072】図24に示すように、図22の状態遷移表
のようにシーケンス処理を行う場合(SEQの部分)に
は、順序制御処理部分と実時間制御処理部分の処理プロ
グラムが生成されていることがわかる。
As shown in FIG. 24, when sequence processing is performed as in the state transition table of FIG. 22 (SEQ portion), processing programs for the sequence control processing portion and the real-time control processing portion are generated. I understand.

【0073】(2)シーケンス制御処理を、状態遷移表
を用いて設計する場合において、どの態で処理を振り分
けるかを決定するために、状態の抽出を図9に示すよう
なタイミング図から決定する方法が有効である。
(2) When designing the sequence control process using the state transition table, in order to determine in which state the process is to be distributed, state extraction is determined from a timing diagram as shown in FIG. The method is effective.

【0074】そのため、従来は、タイミング図の設計を
机上において実施していたが、本発明では、タイミング
図エディタ15により設計データ化を行っている。
Therefore, conventionally, the timing diagram was designed on the desk, but in the present invention, the timing diagram editor 15 converts the design data.

【0075】すなわち、例えば、図9に示したタイミン
グデータは、入力部に記載された条件を状態遷移表に入
力される事象とし、出力部に記載された条件を事象と状
態の組み合わせ結果から実行されるセル(II−3)内
の処理とし、タイミングTのときの処理「GI_050
03:1−>GO_03001:1」を抽出する。ま
た、入力部条件で組み合わせ判断に必要な状態を入力部
STとし、セル内処理結果から遷移する状態を出力部S
Tとし、状態遷移表エディタ14で記載されたデータに
引き当てる。これらタイミング図のデータを状態遷移表
データに引き当てる処理を、状態遷移表生成部16の状
態遷移表変換部41で実施し、図5に示した状態遷移表
エディタ14と同様、図10のような形態で記憶部17
に保管される。
That is, for example, in the timing data shown in FIG. 9, the condition described in the input section is an event input to the state transition table, and the condition described in the output section is executed from the combination result of the event and the state. Processing in the cell (II-3) to be performed, the processing at the timing T is “GI_050
"03: 1-> GO_03001: 1". Also, the state required for combination determination under the input unit condition is the input unit ST, and the state transitioning from the in-cell processing result is the output unit S.
Let T be assigned to the data described in the state transition table editor 14. The process of allocating the data of these timing diagrams to the state transition table data is executed by the state transition table conversion unit 41 of the state transition table generation unit 16, and like the state transition table editor 14 shown in FIG. Storage unit 17 in the form
Be stored in.

【0076】図25は、図6に示す数学的表記の制御仕
様から図7に示すフローチャート表記への変換処理の手
順を示すフローチャートである。まず、制御仕様の表記
の構文解析を行う(ステップS2501)。そして、記
号「−>」の左辺側番号を、指定された処理情報格納番
地Yからユニット番号メモリおよびリレー番号メモリに
データを書き込む(ステップS2502)。
FIG. 25 is a flow chart showing the procedure of conversion processing from the control specification in the mathematical notation shown in FIG. 6 to the flow chart notation shown in FIG. First, the syntax of the notation of the control specification is analyzed (step S2501). Then, the left side number of the symbol "->" is written into the unit number memory and the relay number memory from the designated processing information storage address Y (step S2502).

【0077】次に、ユニット番号、リレー番号を引数と
して情報取得関数処理を書き出す(ステップS250
3)。そして、処理情報:1から情報取得関数処理によ
って取り出した戻り値が真値(1)であるか否かの比較
処理を書き出す(ステップS2504)。そして、比較
処理が真値(1)である場合に、ユニット番号=3、リ
レー番号=1の処理情報格納番地Yを割り出し(外部出
力用レジスタ)、「−>」の右辺側:1の出力情報から
外部出力用レジスタに1を書き込む処理を書き出す(ス
テップS2505)。これによって、図7に示すフロー
チャートのプログラムが生成される。
Then, the information acquisition function process is written with the unit number and the relay number as arguments (step S250).
3). Then, the comparison process of whether the return value extracted from the process information: 1 by the information acquisition function process is the true value (1) is written (step S2504). Then, when the comparison processing is the true value (1), the processing information storage address Y of the unit number = 3 and the relay number = 1 is determined (external output register), and the right side of “−>”: 1 output A process for writing 1 to the external output register is written from the information (step S2505). As a result, the program of the flowchart shown in FIG. 7 is generated.

【0078】(3)前記記憶部17に保管された図5の
ような形態の設計情報と、図10のような形態の設計情
報をプログラム変換部19により、順序制御処理と非順
序制御処理を別々に動作可能な2つの原始プログラムを
生成し、それぞれ原子プログラム記憶部20の順序制御
処理の記憶部21と非順序制御処理の記憶部22に分離
して記憶される。このとき、プログラム変換部19によ
る変換は、図4に示すようなサブルーチンから構成され
る原始プログラムに変換して、原始プログラム記憶部2
0に記憶される。
(3) The program conversion unit 19 converts the design information in the form as shown in FIG. 5 and the design information in the form as shown in FIG. 10 stored in the storage unit 17 into an order control process and an out-of-order control process. Two source programs that can be operated separately are generated, and are separately stored in the storage unit 21 for the order control process and the storage unit 22 for the unordered control process in the atomic program storage unit 20. At this time, the conversion by the program conversion unit 19 is converted into a source program composed of a subroutine as shown in FIG.
Stored in 0.

【0079】このような本発明の方法及び装置により、
緊急的な事象によって実時間で制御が必要な処理と、定
常的(定周期)に動作する順序制御処理の並行処理を可
能としているとともに、タイミング図からプログラムの
自動生成を可能としている。さらに、原始プログラムに
変換する際に、原始プログラムのデータをLSIプログ
ラムデータに変換させることで、LSI回路設計用の自
動ツールとして適用可能である。
By the method and apparatus of the present invention as described above,
It enables parallel processing of processing that requires real-time control due to an urgent event and sequential control processing that operates steadily (fixed cycle), and also enables automatic generation of programs from timing diagrams. Furthermore, when the program is converted into a source program, the data of the source program is converted into LSI program data, which can be applied as an automatic tool for LSI circuit design.

【0080】(4)従来、状態遷移表の記述では、状態
遷移表が処理の切換えしか定義していない。そのため、
プログラムを自動生成するにあたっては、機械語に変換
するための手続きとしてプログラムを実施する必要があ
った。
(4) Conventionally, in the description of the state transition table, the state transition table defines only process switching. for that reason,
In automatically generating the program, it was necessary to execute the program as a procedure for converting into a machine language.

【0081】本発明では、メモリの操作や関数の呼び出
しなど、機械語に変換するために必要な手続きに関し、
シーケンス制御に必要な、例えば、接点入出力処理、計
測値入出力処理、通信処理の入出力メモリ番号を固定す
ることにより、サブルーチン処理するために必要なデー
タを与えることで、図8のようなマクロ表記を可能にし
ている。
The present invention relates to procedures necessary for converting into a machine language, such as memory operations and function calls,
For example, by fixing the input / output memory numbers for contact input / output processing, measurement value input / output processing, and communication processing necessary for sequence control, and giving the data necessary for subroutine processing, as shown in FIG. Macro notation is possible.

【0082】具体的には、図8(イ)は、最も単純化さ
れたメモリの格納番地の定義例を示している。以下は、
より実際的な例を示しており、図8(ロ)は、接点入出
力処理例を示し、図8(ハ)は、計測値入出力処理例を
示し、図8(ニ)は、通信処理の例を示している。
Specifically, FIG. 8A shows an example of the definition of the storage address of the most simplified memory. The following is
FIG. 8B shows a contact input / output processing example, FIG. 8C shows a measured value input / output processing example, and FIG. 8D shows a communication processing. Shows an example of.

【0083】以上のようにして、すべてのシーケンス制
御処理を、プログラム変換部19にて状態遷移表と数学
的に記述する制御仕様のみで機械語の自動生成を可能に
しているので、仕様定義のみで設計が可能になり、設計
技術を設計知識データベース18で管理することを容易
にしている。設計知識データベース18に蓄えた設計知
識データは、既存のシーケンス制御処理の機能拡張や新
たなシーケンス制御処理の開発段階において容易に検
査、参照ができるため、大幅に生産性を改善するととも
に、ノウハウを電子データとして蓄積することが可能と
なる。
As described above, all the sequence control processes can be automatically generated in the machine language only by the control specifications mathematically described by the program conversion unit 19 as the state transition table. Makes it possible to design, and makes it easy to manage the design technology in the design knowledge database 18. The design knowledge data stored in the design knowledge database 18 can be easily inspected and referred to at the function expansion of the existing sequence control process or the development stage of the new sequence control process, so that the productivity can be greatly improved and the know-how can be obtained. It can be stored as electronic data.

【0084】(5)前述のように、すべてのシーケンス
制御処理を、状態遷移表と制御仕様表記のみで機械語の
自動生成を可能にし、設計技術を設計知識データベース
18で管理することを容易にしている。
(5) As described above, all sequence control processing enables automatic generation of a machine language using only the state transition table and control specification notation, and makes it easy to manage the design technology in the design knowledge database 18. ing.

【0085】しかるに、本発明では、さらに、制御仕様
表記を用いたシーケンス制御処理を、図7に示すよう
に、ブール代数の法則を用いて設計データを小型化する
ことで、シーケンス制御処理実効の処理時間を削減し、
高速化プログラムを生成することを可能にしている。こ
のような簡略化の処理は、状態遷移表エディタ14のブ
ール代数処理部36と状態遷移表生成部16のブール代
数処理部44にて行われ、これらの簡略化処理が行われ
た後、記憶部17に記憶される。
However, in the present invention, the sequence control process using the control specification notation is further reduced by using the rule of Boolean algebra to downsize the design data as shown in FIG. Reduce processing time,
It is possible to generate a speed-up program. Such simplification processing is performed by the Boolean algebra processing unit 36 of the state transition table editor 14 and the Boolean algebra processing unit 44 of the state transition table generation unit 16, and after the simplification processing is performed, it is stored. It is stored in the unit 17.

【0086】例えば、図11(イ)は、ブール代数の分
配則の逆変換による簡易化例を示し、図11(ロ)は、
ブール代数の吸収則による簡略化例を示し、図11
(ハ)は、ド・モルガンの法則による簡略化例を示して
いる。
For example, FIG. 11A shows a simplification example by inverse transformation of the distribution rule of Boolean algebra, and FIG.
FIG. 11 shows a simplified example of the absorption rule of Boolean algebra.
(C) shows a simplified example according to De Morgan's law.

【0087】(6)本発明は、図3及び図9に示すよう
な制御処理例に限られるものではなく、図12に示すよ
うな温度センサと湿度センサから結露状態を判断した
り、図示しない温度センサと振動センサの変化により侵
入検知を判断する場合などの状態遷移表においても、容
易に知能センサを作成することができる。
(6) The present invention is not limited to the control processing example as shown in FIGS. 3 and 9, but the dew condensation state is judged from the temperature sensor and the humidity sensor as shown in FIG. The intelligent sensor can be easily created even in the state transition table when the intrusion detection is judged by the change of the temperature sensor and the vibration sensor.

【0088】(7)シーケンス制御処理の設計の妥当性
を確認する場合について説明する。
(7) A case of confirming the validity of the design of the sequence control process will be described.

【0089】記憶部17に状態遷移表データを登録する
とき、例えば、図5に示すセル(II−3)の処理条件
を示す図6において、条件判断(−>)の右側に定義さ
れている出力情報の格納番地と出力情報に基づき、他の
セルにおいて定義されている出力情報を設計知識データ
ベース18に記憶されているデータから、状態遷移表エ
ディタ14の検索・参照部37とタイミング図エディタ
15の検索・参照部40にて検索し、同一となる処理定
義に関して条件判断(−>)の左側に定義されている入
力条件が同一であるかを状態遷移表エディタ14の整合
性チェック部35と状態遷移表生成部16の整合性チェ
ック部43にて比較する。そして、異なる入力条件で出
力情報が同一になる処理は、設計矛盾が生じていると判
断し、表示部11に表示を行うことで設計の自動検証を
行う。
When the state transition table data is registered in the storage unit 17, for example, it is defined on the right side of the condition judgment (->) in FIG. 6 showing the processing condition of the cell (II-3) shown in FIG. Based on the storage address of the output information and the output information, the output information defined in the other cells is stored in the design knowledge database 18 from the data stored in the search / reference unit 37 of the state transition table editor 14 and the timing diagram editor 15. And the consistency check unit 35 of the state transition table editor 14 to check whether the input conditions defined on the left side of the condition judgment (->) regarding the same process definition are searched. The consistency check unit 43 of the state transition table generation unit 16 makes a comparison. Then, in the process in which the output information is the same under different input conditions, it is determined that a design contradiction has occurred, and display is performed on the display unit 11 to automatically verify the design.

【0090】このようにして、設計段階において設計検
証の効率化とシーケンス制御処理の不正動作を防止して
いる。
In this way, the efficiency of design verification and the illegal operation of sequence control processing are prevented in the design stage.

【0091】(8)図12に示すような複数のセンサ動
作状態から状態遷移表によってきめ細かくシーケンス制
御を実施するような場合、従来では、状態遷移表を原始
プログラムに変換し、プログラム自動生成装置とは切断
されたターゲット装置の固定的な記録媒体に保存し、シ
ーケンス制御実行部の動作の際に記録媒体から原始プロ
グラムを参照して実行していた。
(8) In the case where the sequence control is finely performed from a plurality of sensor operating states as shown in FIG. 12 by the state transition table, conventionally, the state transition table is converted into a source program and the automatic program generation device is used. Was stored in a fixed recording medium of the disconnected target device, and was executed by referring to the source program from the recording medium when the sequence control execution unit operates.

【0092】本発明では、図12に示すような複数のセ
ンサ動作情報から状態遷移表によって処理を決定し、シ
ーケンス制御を実施するような場合、図1に示すよう
に、本発明のシーケンス制御プログラム生成装置9とタ
ーゲット装置27とをLANなどのネットワーク26で
接続しているので、前記ターゲット装置27のシーケン
ス制御実行部29の原始プログラムは、シーケンス制御
プログラム生成装置9の状態遷移表エディタ14にて自
由に作成できる。すなわち、プログラム変換部19にて
順序制御処理と非順序制御処理を別々に動作可能な2つ
の原始プログラムを生成し、それぞれ原始プログラム記
憶部20の順序制御処理の記憶部21と非順序制御処理
の記憶部22に分離して記憶し、ターゲット装置27に
ネットワーク26を経由して、原始プログラムをターゲ
ット装置27のプログラム保管部28にコピーを実施
し、シーケンス制御実行部29に原始プログラムを再読
み込みさせる。このようにして、動作中にシーケンス制
御処理を自由に変更することができる。
In the present invention, in the case where the process is determined from a plurality of sensor operation information as shown in FIG. 12 by the state transition table and the sequence control is executed, as shown in FIG. 1, the sequence control program of the present invention is used. Since the generation device 9 and the target device 27 are connected by the network 26 such as a LAN, the source program of the sequence control execution unit 29 of the target device 27 is stored in the state transition table editor 14 of the sequence control program generation device 9. Can be created freely. That is, the program conversion unit 19 generates two source programs capable of separately operating the order control process and the out-of-order control process, and stores the source control program storage unit 21 of the source program storage unit 20 and the unordered control process, respectively. Separately stored in the storage unit 22, the target device 27 copies the source program to the program storage unit 28 of the target unit 27 via the network 26, and causes the sequence control execution unit 29 to reload the source program. . In this way, the sequence control process can be freely changed during operation.

【0093】(9)ターゲット装置27で実施するシー
ケンス制御プログラムの動作試験において、本発明のシ
ーケンス制御プログラム生成装置9とターゲット装置2
7とをLANなどのネットワーク26で接続することに
より、ターゲット装置27のシーケンス制御実行部29
が状態遷移表処理に与える入力事象と状態とを状態遷移
表動作状態発生部30に保管し、この保管情報をネット
ワーク26を経由して処理シミュレート部23に時間情
報としてコピーすることで、前述の状態遷移表及び制御
仕様表記を用いた設計について、状態遷移表エディタ1
4とタイミング図エディタ15に設計時の記述形式のま
ま、ターゲット装置27のシーケンス制御実行部29の
状態遷移表動作を表示部11に表示して実際の動作を目
視で確認可能となる。
(9) In the operation test of the sequence control program executed by the target device 27, the sequence control program generating device 9 and the target device 2 of the present invention.
7 is connected to a network 26 such as a LAN, so that the sequence control execution unit 29 of the target device 27 is connected.
The input event and the state given to the state transition table process are stored in the state transition table operation state generation unit 30 and the stored information is copied as time information to the process simulation unit 23 via the network 26. State transition table editor 1 for design using state transition table and control specification notation
4 and the timing diagram editor 15, the state transition table operation of the sequence control execution unit 29 of the target device 27 can be displayed on the display unit 11 while the description format at the time of design is maintained, and the actual operation can be visually confirmed.

【0094】(10)本発明による状態遷移表及び制御
仕様表記を用いた技術は、コンピュータの2重化(N重
化)処理にも利用できる。
(10) The technique using the state transition table and the control specification notation according to the present invention can also be used for a dual (N-duplex) processing of a computer.

【0095】従来より、コンピュータの2重化(N重
化)処理は、ハードウェア障害に対しては効果的である
が、ソフトウェアの設計が誤っていた場合については、
コンピュータを2重化しても、同一の誤りを導出してし
まうため、妥当性の検証が行えなかった。
Conventionally, the computer duplication (N duplication) processing is effective against a hardware failure, but when the software design is erroneous,
Even if the computer is duplicated, the same error is derived, so that the validity cannot be verified.

【0096】図13は、シーケンス制御処理によって得
られた実行指示が妥当であるかどうかの検証をする際
に、主シーケンス処理用と、主シーケンスとは異なっ
た、例えばフェールセーフ用とのシーケンス制御処理を
定義し、プログラム変換部19でシーケンス制御用原始
プログラムを生成し、ターゲット装置27で主シーケン
ス処理用とフェールセーフ用のシーケンス制御処理のそ
れぞれをシーケンス制御実行部29で動作させ、遷移表
によって得られたシーケンス制御処理結果の出力整合性
チェックを同じくシーケンス制御実行部29で実行し、
検証結果が正しいときのみ主シーケンス制御処理結果の
出力を行うようにプログラムを生成するようにしたもの
である。前述した制御仕様表記を含む本発明の技術は、
この図13にもそのまま利用することができる。
FIG. 13 shows a sequence control for main sequence processing and a sequence control for fail-safe different from the main sequence, for example, when verifying whether the execution instruction obtained by the sequence control processing is appropriate. The process is defined, the program conversion unit 19 generates a sequence control source program, the target device 27 causes the sequence control execution unit 29 to operate each of the sequence control processes for the main sequence process and the fail safe, and the transition table is used. An output consistency check of the obtained sequence control processing result is also executed by the sequence control execution unit 29,
The program is generated so that the main sequence control processing result is output only when the verification result is correct. The technology of the present invention including the control specification notation described above is
It can be used as it is in FIG.

【0097】すなわち、図13の左側に示すような主シ
ーケンス制御処理のための状態遷移表と、右側に示すよ
うなフェールセーフ用シーケンス制御処理のための状態
遷移表とを設計し、各セルにおける設計情報は、記憶部
17に図5と同様の形態で保管され、プログラム変換部
19により、図4に示すような原始プログラムに変換し
て、原始プログラム記憶部20に記憶される。すべての
シーケンス制御処理を、状態遷移表と制御仕様表記のみ
で機械語の自動生成を可能にし、設計技術を設計知識デ
ータベース18で管理する。さらに、制御仕様表記を用
いたシーケンス制御処理を、図11に示すように、ブー
ル代数の法則を用いて設計データの簡略化処理が行われ
た後、記憶部17に記憶される。
That is, a state transition table for the main sequence control processing as shown on the left side of FIG. 13 and a state transition table for the fail safe sequence control processing as shown on the right side are designed, and The design information is stored in the storage unit 17 in the same form as in FIG. 5, converted by the program conversion unit 19 into a source program as shown in FIG. 4, and stored in the source program storage unit 20. All sequence control processing enables automatic generation of a machine language only with a state transition table and control specification notation, and a design knowledge database 18 manages design technology. Further, as shown in FIG. 11, the sequence control processing using the control specification notation is subjected to simplification processing of the design data using the law of Boolean algebra, and then stored in the storage unit 17.

【0098】このような構成において、ターゲット装置
27で図13が動作する際、モータ運動指示があると、
主シーケンス制御処理の状態遷移表と、フェールセール
用シーケンス制御処理の状態遷移表とにおけるそれぞれ
のモータ運転の各セルの出力結果がシーケンス制御実行
部29で整合性が判断される。整合性が一致すれば、モ
ータ運転が開始され、一致しなければ、出力結果不正が
出力され、不正メッセージが表示部11に表示される。
With such a structure, when the target device 27 operates as shown in FIG.
The sequence control execution unit 29 determines the consistency of the output result of each cell of each motor operation in the state transition table of the main sequence control process and the state transition table of the fail sale sequence control process. If the matching is matched, the motor operation is started, and if the matching is not matched, an incorrect output result is output and an incorrect message is displayed on the display unit 11.

【0099】したがって、シーケンス制御処理によって
得られた実行指示が妥当であるかどうかの検証を、ソフ
トウェアの設計の誤りのみでなく、安全動作の面からも
チェックすることができる。
Therefore, the verification as to whether or not the execution instruction obtained by the sequence control processing is appropriate can be checked not only from a software design error but also from the viewpoint of safe operation.

【0100】[0100]

【実施例】上記開発装置の動作について具体的な装置開
発を例に説明する。ダムの水門制御装置に組み込まれる
プログラム開発例にして示す。まず、ダムの水門制御装
置には、ダムが決壊しないよう貯水量を自動で一定に保
つ機能(定水位制御)と、人間系の指示により発電や用
水確保のため、ダムの水位に影響受けることなく一定に
放流する機能(定放流制御)がある。
EXAMPLE The operation of the above-described development apparatus will be described by taking a concrete apparatus development as an example. This is shown as an example of program development incorporated in the dam gate control device. First of all, the dam gate control device has a function to keep the amount of stored water constant to prevent the dam from breaking (constant water level control), and the water level of the dam is affected by power generation and securing of water according to human system instructions. There is a function (constant discharge control) that discharges constantly without.

【0101】そして、図14はダム水門制御装置のプロ
グラム設計を示すフローチャートである。本プログラム
は制御装置として一般的に用いられるプログラマブルコ
ントローラ上で動作し、電源投入からプログラムが開始
され、ステップS1401からステップS1407まで
の処理がサイクリックに実行される。
FIG. 14 is a flow chart showing the program design of the dam sluice control device. This program operates on a programmable controller generally used as a control device, the program is started when the power is turned on, and the processes from step S1401 to step S1407 are cyclically executed.

【0102】いま、図14のS1404の処理に着目す
る。S1404の処理はダムが決壊しないようにダムの
貯水量を一定に保つ定水位制御処理である。図15は、
定水位制御処理のフローチャートである。
Attention is now focused on the processing of S1404 in FIG. The process of S1404 is a constant water level control process for keeping the amount of water stored in the dam constant so that the dam does not collapse. Figure 15 shows
It is a flowchart of a constant water level control process.

【0103】S1404の処理内で現在の水位と一定に
保つための設定水位を比較し、図15のステップS15
02で自動運転開始状態であればダムの地形や河川の性
質に合わせてあらかじめ定義された定数表から放流値の
取得を行う(ステップS1503)。
In the process of S1404, the current water level is compared with the set water level for keeping constant, and step S15 of FIG.
If the automatic operation is started in 02, the discharge value is acquired from the constant table defined in advance according to the topography of the dam and the nature of the river (step S1503).

【0104】その後、目標放流量と現在放流量を比較し
(ステップS1504)、目標放流量が現在放流量以上
であれば、河川で定められた放流増加制限量(α)と現
在放流量を加えた値を排水制御目標放流量として(ステ
ップS1505)、排水制御目標放流量と現在現在放流
量が等しくなるまで排水門を開ける制御を行う処理とな
っている(ステップS1506)。
Thereafter, the target discharge amount and the current discharge amount are compared (step S1504), and if the target discharge amount is equal to or larger than the current discharge amount, the discharge increase limit amount (α) set in the river and the current discharge amount are added. This value is set as the drainage control target discharge amount (step S1505), and the drainage gate is controlled to open until the drainage control target discharge amount and the current discharge amount are equal (step S1506).

【0105】一方、目標放流量が現在放流量より小さけ
れば、河川で定められた放流増加制限量(α)を現在放
流量から引いた値を排水制御目標放流量として(ステッ
プS1507)、排水制御目標放流量と現在現在放流量
が等しくなるまで排水門を開ける制御を行う処理となっ
ている(ステップS1508)。
On the other hand, if the target discharge amount is smaller than the current discharge amount, a value obtained by subtracting the discharge increase limit amount (α) set in the river from the current discharge amount is set as the drainage control target discharge amount (step S1507), and drainage control is performed. It is a process of controlling to open the drainage gate until the target discharge amount and the present discharge amount are equal (step S1508).

【0106】上記の処理において、排水門動作を緊急で
中断させるためには、自動運転を解除しなければならな
いが、自動運転状態確認がステップS1502でしか実
行せず、排水門動作を一端開始すると動作中の条件にて
排水門動作完了を受ける迄排水門モーターを動かし続け
てしまっていた。特に、図15のステップS1502の
処理時だけしか水門制御の緊急停止操作が受け付けられ
ないという条件が設計書を時間を掛けて確認しないと判
らない。
In the above process, in order to interrupt the drainage gate operation urgently, the automatic operation must be canceled, but the automatic operation state confirmation is executed only in step S1502, and once the drainage gate operation is started. I kept running the drain gate motor until I received the drain gate operation completion under the operating conditions. In particular, the condition that the emergency stop operation of the floodgate control can be accepted only during the process of step S1502 in FIG. 15 cannot be understood unless the design document is confirmed over time.

【0107】そのため、処理全体の中で緊急停止のよう
に即時実行を必要とする実時間制御を明確に設計するた
め状態遷移表を用いることとしている。図16は、この
ような実時間制御を明確に設計するため状態遷移表の一
例を示す説明図である。図17のプログラム記述例に示
すように、実時間処理を設計書から簡単に確認できるよ
うプログラムを記述し、自動運転解除時処理(緊急停
止)は優先的にでプログラムの実行を切り替える方式と
することによって安全に関わるよな重要な制御において
設計上で明示できるようにした。さらに、設計情報は図
1のマンマシンインタフェース10、表示部11、キー
ボード12、マウス13を用いて図1の状態遷移表エデ
ィタ14によってデータを作成することで、図2のブー
ル代数処理部36で状態遷移表からシーケンス制御プロ
グラムを生成する。図18は、生成されたシーケンス制
御プログラムの処理手順の一例を示すフローチャートで
ある。
Therefore, the state transition table is used in order to clearly design the real-time control that requires immediate execution such as an emergency stop in the whole process. FIG. 16 is an explanatory diagram showing an example of a state transition table for clearly designing such real-time control. As shown in the program description example of FIG. 17, the program is written so that the real-time processing can be easily confirmed from the design document, and the execution of the program is switched preferentially during the automatic operation cancellation processing (emergency stop). By doing so, it became possible to clearly specify in the design of important control related to safety. Further, the design information is created by the state transition table editor 14 of FIG. 1 using the man-machine interface 10, the display unit 11, the keyboard 12, and the mouse 13 of FIG. 1, and the Boolean algebra processing unit 36 of FIG. Generate a sequence control program from the state transition table. FIG. 18 is a flowchart showing an example of the processing procedure of the generated sequence control program.

【0108】図16に示す状態遷移表で実行させる制御
仕様は、図19に示すように、従来C言語等の原始プロ
グラム言語でデバイスドライバー部に制御したいDOデ
ータを与えることでリレーやトランジスターが導通状態
となる電気信号を与えていた。
As shown in FIG. 19, the control specifications executed by the state transition table shown in FIG. 16 are such that relays and transistors are made conductive by giving DO data to be controlled to the device driver section in a primitive programming language such as conventional C language. It was giving an electric signal to the state.

【0109】しかしながら、ドライバーへのデータ受け
渡しは、プログラム内でデータを受け渡すためのメモリ
領域を確保して、確保した領域の先頭メモリの番地をド
ライバーに与える方法が一般的に多く用いられるが、メ
モリの確保やメモリ内容の初期化、データセットにおい
てプログラミング言語の規約に従い記述する必要があ
り、熟練しないと簡単にはプログラムが作成できなかっ
た。
However, in order to pass the data to the driver, a method of securing a memory area for passing the data in the program and giving the address of the head memory of the secured area to the driver is generally used. It was necessary to secure the memory, initialize the memory contents, and describe the data set according to the rules of the programming language, and it was not possible to easily create a program without skill.

【0110】これを、図19a)の記述のようにドライ
バーへ受け渡すメモリ番地をコンピュータが管理する番
地とは別に図19b)の文字情報による番地化を行い、
文字情報の番地とコンピュータの管理する番地との関係
を定義した。その後、図2に示すブール代数処理部36
によって制御仕様記述データからコンピュータを動作さ
せるためのシーケンス制御プログラムを生成する。
19a), the memory address to be passed to the driver is converted into an address by the character information of FIG. 19b) separately from the address managed by the computer.
The relationship between the address of character information and the address managed by the computer was defined. After that, the Boolean algebra processing unit 36 shown in FIG.
A sequence control program for operating a computer is generated from the control specification description data.

【0111】なお、文字情報の番地とドライバーへ受け
渡すメモリ番地の対応は、図19c)のように動作させ
るデバイスドライバー機能毎に番地を変えることで、リ
レー等へ出力するDO機能、リレー等から入力するDI
機能、アナログ変位をデジタルに変換したデータとして
入力するAD機能、デジタルデータをアナログに変換し
て出力するDA機能、RS232CやLANへの入出力
する機能に対してデータを受け渡す。これにより数学的
に記述した制御仕様からデバイスドライバーへの出力プ
ログラムを自動生成し、図16の機能に必要なシーケン
ス制御プログラムを図2のブール代数処理部36によっ
て生成する。図2のブール代数処理部36によるシーケ
ンス制御プログラム生成においては、水門を制御するリ
レーを動作させる記述を図20a)に示すように記述す
ることにより、図2のブール代数処理部36で図20
b)に示す変換ルールによって図20c)に示すシーケ
ンス制御プログラムを生成する。
The correspondence between the address of the character information and the memory address to be passed to the driver is that the address is changed for each device driver function operated as shown in FIG. DI to enter
Data is transferred to the function, the AD function of inputting analog displacement as digital data, the DA function of converting digital data to analog and outputting, and the function of inputting / outputting to / from the RS232C or LAN. As a result, an output program to the device driver is automatically generated from the control specifications mathematically described, and the sequence control program required for the function of FIG. 16 is generated by the Boolean algebra processing unit 36 of FIG. In the sequence control program generation by the Boolean algebra processing unit 36 of FIG. 2, the description for operating the relay controlling the sluice is described as shown in FIG. 20a) so that the Boolean algebra processing unit 36 of FIG.
The sequence control program shown in FIG. 20c) is generated by the conversion rule shown in b).

【0112】また制御仕様を数学式と同様な書式で記述
可能であることから、図11に示すブール代数の各法則
が適用可能かどうかかを文字情報の番地と論理演算式と
を図2のブール代数処理部36で比較し、ブール代数に
よって冗長的な記述が簡略化できることを利用し、人間
の思考による冗長的な肥大したプログラムを簡易化し、
プログラムステップ数が、図17a)から図17b)に
減少させることで処理の高速化を実現する。
Further, since the control specification can be described in the same format as the mathematical formula, whether the respective rules of the Boolean algebra shown in FIG. 11 can be applied or not is determined by the address of the character information and the logical operation formula shown in FIG. By comparing with the Boolean algebra processing unit 36 and utilizing the fact that the redundant description can be simplified by the Boolean algebra, the redundant and bloated program by human thought is simplified,
By reducing the number of program steps from FIG. 17a) to FIG. 17b), the processing speed can be increased.

【0113】さらに図2のブール代数処理部36による
設計検証においては、制御仕様−>の右辺の処理対象文
字情報の番地が同一に定義されていないかを確認し、同
一の文字情報の番地があった場合は異なる条件により同
一リレーを2重出力しているとして設計検証を図1の状
態遷移表エディタ14で自動的に検証し不正な設計記述
であることを図1に示すマンマシンインターフェイス1
0から警告出力する。
Further, in the design verification by the Boolean algebra processing unit 36 in FIG. 2, it is confirmed whether the addresses of the character information to be processed on the right side of the control specification-> are not defined to be the same. If so, it is assumed that the same relay is output twice under different conditions, and the design verification is automatically verified by the state transition table editor 14 of FIG. 1 and the man-machine interface 1 shown in FIG. 1 is an invalid design description.
Warning output from 0.

【0114】制御仕様による設計記述は、ブール代数に
よる簡易化や論理仕様記述の整合性検証の手順を経て図
1のプログラム変換部19によってコンパイルすること
により原始プログラムを生成する。その後、シーケンス
制御プログラム生成装置本体にLAN26で接続された
ターゲット装置27内のプログラム保管部28に順序制
御用原始プログラムと非順序制御用原始プログラムとを
コピーし、コピー完了後にターゲット装置27にコピー
した図18の順序制御用原始プログラム(順序制御処理
部分)aと図18の非順序制御用原始プログラム(実時
間制御処理部分)bとを実行開始することで、図16に
おいて設計した処理の動作を開始する。
The design description according to the control specification is compiled by the program conversion unit 19 in FIG. 1 through a procedure of simplification by Boolean algebra and consistency verification of the logic specification description to generate a source program. After that, the sequence control source program and the unordered control source program are copied to the program storage unit 28 in the target device 27 connected to the sequence control program generator main body by the LAN 26, and then copied to the target device 27 after the copying is completed. By starting execution of the source program for sequence control (order control processing part) a in FIG. 18 and the source program for non-order control (real-time control processing part) b in FIG. 18, the operation of the process designed in FIG. 16 is performed. Start.

【0115】開始後は図18の順序制御処理部分aを一
定周期で処理を行う。順序制御処理中に自動運転解除時
処理(緊急停止)のDI状態がドライバーから文字情報
による番地を介してデータ入力されると、順序制御処理
部分aが起動され図20a)の水門開放制御のDO出力
を実行する。本処理が終了すると図18の順序制御処理
部分aを一定周期で処理を再開し、安全確保のための緊
急操作がターゲット装置から正確に実行される。
After the start, the sequence control processing portion a of FIG. 18 is processed at a constant cycle. When the DI state of the automatic operation cancellation process (emergency stop) is input from the driver via the address by the character information during the sequence control process, the sequence control process part a is activated and the DO of the water gate opening control of FIG. 20a) is started. Execute the output. When this processing ends, the processing of the sequence control processing portion a in FIG. 18 is restarted at a constant cycle, and an emergency operation for ensuring safety is accurately executed from the target device.

【0116】図18の順序制御用原始プログラム(順序
制御処理部分)aと非順序制御用原始プログラム(実時
間制御処理部分)bのターゲットにおいて実行状態は、
順序制御処理部分aまたは実時間制御処理部分bの処理
が実行され、各々において、状態遷移表の何行・何列が
実行されたかを図1の状態遷移表動作状態発生部30に
記録し、図1の処理シュミレート部23が定期的に読み
出すことで図1のマンマシンインタフェース10を介し
て表示部11にターゲット装置の何行・何列が実行され
たかの情報を状態遷移表設計情報に動作中の状態を重ね
て、図11の画面表示例のように異なる色で表示する。
開発者は色替えされた情報を確認し、設計した状態遷移
表の実行試験を行う。
The execution states of the target of the sequence control source program (sequence control processing part) a and the non-sequence control source program (real time control processing part) b of FIG.
The processing of the sequence control processing part a or the real-time control processing part b is executed, and in each case, the number of rows and columns of the state transition table are recorded in the state transition table operation state generation unit 30 of FIG. The process simulation unit 23 of FIG. 1 periodically reads the information about how many rows and columns of the target device are executed on the display unit 11 via the man-machine interface 10 of FIG. The states are overlapped and displayed in different colors as in the screen display example of FIG.
The developer confirms the color-changed information and conducts an execution test of the designed state transition table.

【0117】実行試験を実施し、設計に従った動作を確
認した後は、その後のシーケンス制御プログラム改良や
機能追加、及び類似開発時に設計情報を再利用し変更分
のみの設計情報入力を実施し生産効率を向上させるた
め、記憶部17に保管した状態数・入力事象数・制御仕
様に記述した文字情報などの状態遷移表設計情報全て
を、マンマシンインターフェース10からの入力指示に
より、状態遷移表エディタ14によって設計知識データ
ベース18に保存する。
After performing the execution test and confirming the operation according to the design, the design information is reused at the time of the subsequent sequence control program improvement and function addition, and similar development, and the design information is input only for the changed portion. In order to improve the production efficiency, all the state transition table design information such as the number of states, the number of input events, and the character information described in the control specifications stored in the storage unit 17 is input to the state transition table by the man-machine interface 10. It is saved in the design knowledge database 18 by the editor 14.

【0118】これにより、シーケンス制御プログラム改
造や機能追加、及び類似開発時は図1のマンマシンイン
ターフェース10から状態数・入力事象数・制御仕様に
記述した文字情報などのキーワードを入力し、状態遷移
表エディタ14による処理から設計知識データベース1
8の情報を検索の結果、入力指示と同一の情報の一部で
も同一情報が発見された場合、設計知識データベース内
に保管されている状態数・入力事象数・制御仕様に記述
した文字情報をマンマシンインターフェース10の表示
部に表示出力を行う。
As a result, when the sequence control program is modified, functions are added, or similar development is performed, a keyword such as the number of states, the number of input events, and the character information described in the control specification is input from the man-machine interface 10 to change the state. From the process by the table editor 14 to the design knowledge database 1
When the same information is found as a part of the same information as the input instruction as a result of searching the information in 8, the number of states, the number of input events, and the character information described in the control specification stored in the design knowledge database are used. Display output is performed on the display unit of the man-machine interface 10.

【0119】[0119]

【発明の効果】以上説明したように、請求項1および1
1にかかる発明によれば、次の効果を奏する。シーケン
ス制御処理においては、時間的制約を受けない順序制御
処理と、実時間制御が必要な非順序制御処理を含むこと
が要求されるが、本発明では、状態遷移表に記載する処
理対象が実時間制御の非順序制御処理記載部だけでな
く、シーケンス制御に必要な順序制御処理記載部を記述
することで、状態遷移表だけでシーケンス制御処理の全
ての要件に対応することができる。
As described above, claims 1 and 1
According to the invention of No. 1, the following effects can be obtained. The sequence control process is required to include a sequence control process that is not subject to time constraints and an out-of-order control process that requires real-time control. However, in the present invention, the processing target described in the state transition table is actually By describing not only the non-sequential control process description part of the time control but also the sequence control process description part required for the sequence control, all the requirements of the sequence control process can be met only by the state transition table.

【0120】また、請求項2および12にかかる発明に
よれば、次の効果を奏する。シーケンス制御処理を状態
遷移表で設計する場合において、状態遷移表がどの状態
で処理を振り分けるのかを決定するため、状態の抽出を
タイミング図から決定する方法が有効である。そのた
め、本発明では、タイミング図エディタ15により設計
データ化を行っている。これにより、従来机上にて実施
していた設計を電子データとして取り扱い可能とし、シ
ーケンス制御処理を製作するために必要な情報の電子化
を可能としている。
Further, according to the inventions of claims 2 and 12, the following effects are exhibited. When designing the sequence control process with the state transition table, a method of determining the extraction of the state from the timing diagram is effective in order to determine which state the state transition table allocates the process to. Therefore, in the present invention, design data is created by the timing diagram editor 15. This makes it possible to handle the design that was conventionally performed on the desk as electronic data, and it is possible to digitize the information necessary for manufacturing the sequence control process.

【0121】また、請求項3、4、13、および14に
かかる発明によれば、次の効果を奏する。メモリの操作
や関数の呼び出しなど、機械語に変換するために必要な
手続きに関し、シーケンス制御に必要な、例えば、接点
入出力処理、計測値入出力処理、通信処理の入出力メモ
リ番地を固定することにより、サブルーチン処理するた
めに必要なデータを与えることで、数学的に記述された
制御仕様のマクロ表記を可能にしている。したがって、
すべてのシーケンス制御処理を、プログラム変換部19
にて状態遷移表と制御仕様表記のみで機械語の自動生成
を可能にし、仕様定義のみで設計が可能になり、設計技
術を設計知識データベース18で管理することを容易に
している。また、設計知識データベース18に蓄えた設
計知識データは、既存のシーケンス制御処理の機能拡張
や新たなシーケンス制御処理の開発段階において容易に
検査・参照ができるため、大幅に生産性を改善するとと
もに、ノウハウを電子データとして蓄積することが可能
となる。
According to the inventions of claims 3, 4, 13, and 14, the following effects can be obtained. Regarding the procedures required to convert to machine language, such as memory operations and function calls, fix the input / output memory addresses required for sequence control, such as contact input / output processing, measured value input / output processing, and communication processing. As a result, by giving the data necessary for the subroutine processing, the macro notation of the control specifications mathematically described is enabled. Therefore,
The program conversion unit 19 performs all sequence control processing.
In, the machine language can be automatically generated only by the state transition table and the control specification notation, the design can be made only by the specification definition, and the design technology can be easily managed in the design knowledge database 18. Further, the design knowledge data stored in the design knowledge database 18 can be easily inspected / referenced in the function expansion of the existing sequence control processing or in the development stage of the new sequence control processing, so that the productivity is greatly improved and It becomes possible to accumulate know-how as electronic data.

【0122】また、請求項5および15にかかる発明に
よれば、次の効果を奏する。制御仕様表記を用いたシー
ケンス制御処理を、ブール代数の法則を用いて設計デー
タを小型化することで、シーケンス制御処理実行の処理
時間を削減し、高速化プログラムを生成することを可能
にしている。このような簡略化の処理は、状態遷移表エ
ディタ14のブール代数処理部36と状態遷移表生成部
16のブール台数処理部44にて行われた後、記憶部1
7に記憶される。
According to the invention of claims 5 and 15, the following effects can be obtained. By reducing the design data of the sequence control processing using the control specification notation by using the law of Boolean algebra, it is possible to reduce the processing time for executing the sequence control processing and generate a high-speed program. . Such simplification processing is performed by the Boolean algebra processing unit 36 of the state transition table editor 14 and the Boolean number processing unit 44 of the state transition table generation unit 16, and then the storage unit 1
Stored in 7.

【0123】また、請求項6および16にかかる発明に
よれば、次の効果を奏する。状態遷移表データを登録す
るとき、出力情報の格納番地と出力情報に基づき、他の
セルにおいて定義されている出力情報が記憶されている
データから、検索・参照部40にて検索し、同一となる
処理定義に関して入力条件が同一であるかを整合性チェ
ック部35、43にて比較する。そして、異なる入力条
件で出力情報が同一になる処理は、設計矛盾が生じてい
ると判断し、表示部11に表示を行うことで設計の自動
検証を行う。従って、設計段階において設計検証の効率
化とシーケンス制御処理の不正動作を防止できる。
According to the inventions according to claims 6 and 16, the following effects can be obtained. When registering the state transition table data, the search / reference unit 40 searches from the data in which the output information defined in another cell is stored, based on the storage address of the output information and the output information, and the same. The consistency check units 35 and 43 compare whether the input conditions are the same for the following process definitions. Then, in the process in which the output information is the same under different input conditions, it is determined that a design contradiction has occurred, and display is performed on the display unit 11 to automatically verify the design. Therefore, it is possible to improve the efficiency of design verification and prevent the illegal operation of the sequence control process in the design stage.

【0124】また、請求項7および17にかかる発明に
よれば、次の効果を奏する。LAN26で接続している
ターゲット装置27のシーケンス制御実行部29の原始
プログラムは、シーケンス制御プログラム生成装置9の
状態遷移表エディタ14にて自由に作成できる。すなわ
ち、プログラム変換部19にて順序制御処理と非順序制
御処理を別々に動作可能な2つの原始プログラムを生成
し、それぞれ原子プログラム記憶部20の順序制御処理
の記憶部21と非順序制御処理の記憶部22に分離して
記憶し、ターゲット装置27にLAN26を経由して、
原始プログラムをターゲット装置27のプログラム保管
部28にコピーを実施し、シーケンス制御実行部29に
原始プログラムを再読み込みさせる。このようにして、
動作中にシーケンス制御処理を自由に変更することがで
きる。
According to the inventions of claims 7 and 17, the following effects can be obtained. The source program of the sequence control execution unit 29 of the target device 27 connected by the LAN 26 can be freely created by the state transition table editor 14 of the sequence control program generation device 9. That is, the program conversion unit 19 generates two source programs capable of separately operating the order control processing and the non-order control processing, and stores the order control processing storage unit 21 and the non-order control processing of the atomic program storage unit 20, respectively. Separately stored in the storage unit 22, the target device 27 via the LAN 26,
The source program is copied to the program storage unit 28 of the target device 27, and the sequence control execution unit 29 reloads the source program. In this way
The sequence control process can be freely changed during operation.

【0125】また、請求項8および18にかかる発明に
よれば、次の効果を奏する。ターゲット装置27で実施
するシーケンス制御プログラムの動作試験において、タ
ーゲット装置27をLAN26で接続することにより、
ターゲット装置27のシーケンス制御実行部29が状態
遷移表処理に与える入力事象と状態とを状態遷移表動作
状態発生部30に保管し、この保管情報をLAN26を
経由して処理シミュレート部23に時間情報としてコピ
ーすることで、状態遷移表及び制御仕様表記を用いた設
計について、状態遷移表エディタ14とタイミング図エ
ディタ15に設計時の記述形式のまま、ターゲット装置
27のシーケンス制御実行部29の状態遷移表動作を表
示部11に表示して実際の動作確認を目視で可能とな
る。
According to the inventions of claims 8 and 18, the following effects can be obtained. In the operation test of the sequence control program executed by the target device 27, by connecting the target device 27 with the LAN 26,
The input event and the state given to the state transition table process by the sequence control execution unit 29 of the target device 27 are stored in the state transition table operation state generation unit 30, and this stored information is sent to the process simulation unit 23 via the LAN 26 for a time. By copying the information as the information, the state transition table editor 14 and the timing diagram editor 15 can maintain the state of the sequence control execution unit 29 of the target device 27 for the design using the state transition table and the control specification notation in the description format at the time of design. The transition table operation is displayed on the display unit 11 so that the actual operation can be visually confirmed.

【0126】また、請求項9および19にかかる発明に
よれば、次の効果を奏する。シーケンス制御処理によっ
て得られた実行指示が妥当であるかどうかの検証をする
際に、主シーケンス処理用とフェールセーフ用のシーケ
ンス制御処理を定義し、プログラム変換部19でシーケ
ンス制御用原始プログラムを生成し、ターゲット装置2
7に、主シーケンス処理用とフェールセーフ用のシーケ
ンス制御処理のそれぞれをシーケンス制御部29で動作
させ、遷移表によって得られたシーケンス制御処理結果
の出力整合性チェックを同じくシーケンス制御実行部2
9で実行し、検証結果が正しいときのみ主シーケンス制
御処理結果の出力を行うようにプログラムを生成するこ
とができる。したがって、シーケンス制御処理によって
得られた実行指示が妥当であるかどうかの検証を、ソフ
トウェアの設計の誤りの面からチェックすることや安全
動作面からもチェックすることができる。
According to the inventions of claims 9 and 19, the following effects can be obtained. When verifying whether the execution instruction obtained by the sequence control processing is valid, the sequence control processing for the main sequence processing and the fail safe sequence control processing are defined, and the program conversion unit 19 generates the sequence control source program. And target device 2
7, the sequence control unit 29 operates each of the sequence control processes for the main sequence process and the fail-safe process, and the output consistency check of the sequence control process result obtained by the transition table is also performed by the sequence control execution unit 2
The program can be generated so that the main sequence control processing result is output only when the verification result is correct. Therefore, it is possible to check whether or not the execution instruction obtained by the sequence control processing is appropriate from the viewpoint of software design error and safe operation.

【0127】また、請求項10にかかる発明によれば、
請求項1〜9のいずれか一つの動作をコンピュータによ
って実行することができるという効果を奏する。
Further, according to the invention of claim 10,
There is an effect that the operation according to any one of claims 1 to 9 can be executed by a computer.

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

【図1】本発明によるシーケンス制御プログラム生成装
置の一実施例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a sequence control program generation device according to the present invention.

【図2】図1における要部の詳細なブロック図である。FIG. 2 is a detailed block diagram of a main part in FIG.

【図3】順序制御処理事象aと非順序制御処理事象bと
を混在して記述した本発明による状態遷移表の説明図で
ある。
FIG. 3 is an explanatory diagram of a state transition table according to the present invention in which a sequence control processing event a and an unordered control processing event b are described in a mixed manner.

【図4】図3におけるセル(II−3)のプログラムを
C言語などにより記述した例の説明図である。
FIG. 4 is an explanatory diagram of an example in which the program of the cell (II-3) in FIG. 3 is described in C language or the like.

【図5】図2と同一の状態遷移表を制御仕様表記とした
ときの説明図である。
FIG. 5 is an explanatory diagram when the same state transition table as in FIG. 2 is used as a control specification notation.

【図6】図5におけるセル(II−3)の制御仕様表記
の説明図である。
FIG. 6 is an explanatory diagram of control specification notation of cell (II-3) in FIG. 5.

【図7】図5におけるセル(II−3)のフローチャト
表記の説明図である。
7 is an explanatory diagram of a flow chart notation of a cell (II-3) in FIG.

【図8】それぞれ制御仕様表記の異なる例を示す説明図
で、 (イ)は、メモリ格納番地の定義例、 (ロ)は、
接点入出力処理例、 (ハ)は、計測値入出力処理例、
(ニ)は、通信処理例を示している。
8A and 8B are explanatory diagrams showing examples of different control specification notation, in which (A) is a definition example of a memory storage address, and (B) is
Contact input / output processing example, (C) is the measured value input / output processing example,
(D) shows an example of communication processing.

【図9】図2の状態遷移表におけるセル(II−3)の
タイミング図の説明図である。
9 is an explanatory diagram of a timing diagram of a cell (II-3) in the state transition table of FIG. 2.

【図10】図9のタイミング図から変換された状態遷移
表の説明図である。
10 is an explanatory diagram of a state transition table converted from the timing chart of FIG.

【図11】図5に示した制御仕様表記を用いたシーケン
ス制御処理をブール代数の法則を用いて設計データを小
型化する例を示すもので、 (イ)は、ブール代数の分
配則の逆変換による簡略化例を示す説明図、 (ロ)
は、ブール代数の吸収則による簡略化例を示す説明図、
(ハ)は、ド・モルガンの法則による簡略化例を示す説
明図である。
FIG. 11 shows an example of reducing the design data by using the rule of Boolean algebra in the sequence control process using the control specification notation shown in FIG. 5, and (a) shows the inverse of the distribution rule of Boolean algebra. Explanatory diagram showing simplified example by conversion, (b)
Is an explanatory diagram showing a simplified example by the absorption rule of Boolean algebra,
(C) is an explanatory view showing a simplified example according to De Morgan's law.

【図12】温度センサ、煙感知センサ、電流センサから
火災状態を判断する場合に、状態遷移表と制御仕様表記
を用いることができる例を示す説明図である。
FIG. 12 is an explanatory diagram showing an example in which a state transition table and control specification notation can be used when determining a fire state from a temperature sensor, a smoke detection sensor, and a current sensor.

【図13】主シーケンス制御処理とフェールセーフ(事
故防止)用シーケンス制御処理との出力整合性チェック
をする例を説明する説明図である。
FIG. 13 is an explanatory diagram illustrating an example of checking the output consistency between the main sequence control process and the fail-safe (accident prevention) sequence control process.

【図14】ダム水門制御装置のプログラム設計例を示す
フローチャートである。
FIG. 14 is a flowchart showing a program design example of a dam sluice control device.

【図15】一例としての定水位制御処理の手順を示すフ
ローチャートである。
FIG. 15 is a flowchart showing a procedure of a constant water level control process as an example.

【図16】定水位制御処理の状態遷移表の一例を示す説
明図である。
FIG. 16 is an explanatory diagram showing an example of a state transition table of constant water level control processing.

【図17】図17a)は処理プログラムの圧縮前の記述
例を示す説明図であり、b)は圧縮後の記述例を示す説
明図である。
17A is an explanatory diagram showing a description example before compression of a processing program, and FIG. 17B is an explanatory diagram showing a description example after compression.

【図18】本実施の形態にかかるシーケンス制御プログ
ラム生成装置により生成されたシーケンス制御プログラ
ムの処理手順の一例を示すフローチャートである。
FIG. 18 is a flowchart showing an example of a processing procedure of a sequence control program generated by the sequence control program generation device according to the present embodiment.

【図19】図19a)はメモリメッセージに関するプロ
グラムの記述例を示す説明図であり、b)はメモリ番地
変換の記述例を示す説明図であり、c)はドライバー選
択定義例を示す説明図である。
FIG. 19 a) is an explanatory diagram showing a description example of a program regarding a memory message, b) is an explanatory diagram showing a description example of a memory address conversion, and c) is an explanatory diagram showing a driver selection definition example. is there.

【図20】図20a)は水門を制御するリレーを動作さ
せる記述例を示す説明図であり、b)は変換ルールを示
す説明図である。
20A) is an explanatory diagram showing a description example for operating a relay for controlling a floodgate, and FIG. 20B is an explanatory diagram showing a conversion rule.

【図21】シーケンス処理を伴わない場合の状態遷移表
の一例を示す説明図である。
FIG. 21 is an explanatory diagram showing an example of a state transition table when sequence processing is not involved.

【図22】シーケンス処理を伴う場合の状態遷移表の一
例を示す説明図である。
FIG. 22 is an explanatory diagram showing an example of a state transition table when sequence processing is involved.

【図23】図21の状態遷移表から生成されたプログラ
ムの処理手順を示すフローチャートである。
23 is a flowchart showing a processing procedure of a program generated from the state transition table of FIG.

【図24】図22の状態遷移表から生成されたプログラ
ムの処理手順を示すフローチャートである。
24 is a flowchart showing a processing procedure of a program generated from the state transition table of FIG.

【図25】図6に示す数学的表記の制御仕様から図7に
示すフローチャート表記への変換処理の手順を示すフロ
ーチャートである。
FIG. 25 is a flowchart showing a procedure of conversion processing from the control specification in mathematical notation shown in FIG. 6 to the flowchart notation shown in FIG. 7.

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

9 シーケンス制御プログラム生成装置 10 マンマシンインターフェース 11 表示部 12 キーボード 13 マウス 14 状態遷移表エディタ 15 タイミング図エディタ 16 状態遷移表生成部 17 記憶部 18 設計知識データベース 19 プログラム変換部 20 原始プログラム記憶部 21 順序制御処理の記憶部 22 非順序制御処理の記憶部 23 処理シミュレート部 24 入出力シミュレート部 25 実時間発生部 26 ネットワーク 27 ターゲット装置 28 プログラム保管部 29 シーケンス制御実行部 30 状態遷移表動作状態発生部 9 Sequence control program generator 10 Man-machine interface 11 Display 12 keyboard 13 mice 14 State transition table editor 15 Timing diagram editor 16 State transition table generator 17 Memory 18 Design knowledge database 19 Program converter 20 Primitive program memory 21 Storage unit for sequence control processing 22 Storage unit for out-of-order control processing 23 Process simulation part 24 Input / output simulation section 25 Real-time generator 26 network 27 Target device 28 Program Storage Department 29 Sequence control execution unit 30 State transition table Operating state generator

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 時間的制約を受けない順序制御処理事象
と、実時間制御が必要な非順序制御処理事象を含むシー
ケンス制御処理を実行するプログラムを生成するシーケ
ンス制御プログラム生成方法において、 判断材料としての状態とトリガー条件としての事象とで
特定される複数セルで構成され、前記順序制御処理事象
と前記非順序制御処理事象とが混在して記述された状態
遷移表に基づいて、前記順序制御処理事象と前記非順序
制御処理事象を別個に動作させる複数の原始プログラム
に生成するプログラム変換ステップと、 生成された各原始プログラムを別個に記憶する記憶ステ
ップとを含むことを特徴とするシーケンス制御プログラ
ム生成方法。
1. A sequence control program generation method for generating a program that executes a sequence control process including a sequence control process event that is not subject to time constraints and an unordered control process event that requires real-time control. Of the sequence control process event and the non-sequential control process event are described in a mixed state, the sequence control process is configured by a plurality of cells specified by the state and the event as the trigger condition. Sequence control program generation, comprising: a program conversion step of generating an event and the non-sequential control processing event into a plurality of source programs that operate separately; and a storage step of separately storing each generated source program. Method.
【請求項2】 前記非順序制御処理事象は、タイミング
図データにおける入力事象であり、かつ出力条件を事象
と状態とで組み合わせたセル内処理であり、前記プログ
ラム変換ステップは、前記タイミング図データにおける
所定のタイミングの処理を抽出し、入力条件で組み合わ
せ判断に必要な状態を入力部に記載した状態から抽出
し、セル内処理結果から遷移する状態を入力部に記載し
た状態から抽出し、前記タイミング図データを状態遷移
表に引き当てることを特徴とする請求項1に記載のシー
ケンス制御プログラム生成方法。
2. The out-of-order control processing event is an input event in the timing diagram data, and is an in-cell processing in which an output condition is combined with an event and a state, and the program conversion step is performed in the timing diagram data. Extract the processing at a predetermined timing, extract the state required for combination judgment in the input condition from the state described in the input unit, and extract the state transitioning from the in-cell processing result from the state described in the input unit, the timing The sequence control program generation method according to claim 1, wherein the diagram data is assigned to a state transition table.
【請求項3】 前記プログラム変換ステップは、機械語
プログラムへの変換処理を実行し、前記変換処理におい
て、シーケンス制御に必要な各種処理の入出力メモリ番
地を処理毎に固定することを特徴とする請求項1または
2に記載のシーケンス制御プログラム生成方法。
3. The program converting step executes conversion processing into a machine language program, and in the conversion processing, input / output memory addresses of various processing required for sequence control are fixed for each processing. The sequence control program generation method according to claim 1.
【請求項4】 前記プログラム変換ステップは、前記変
換処理において、シーケンス制御に必要な各種処理であ
る接点入出力処理、計測値入出力処理、通信処理の入出
力メモリ番地を処理毎に固定することを特徴とする請求
項3に記載のシーケンス制御プログラム生成方法。
4. In the program conversion step, in the conversion processing, input / output memory addresses for contact input / output processing, measurement value input / output processing, and communication processing, which are various processing required for sequence control, are fixed for each processing. The sequence control program generation method according to claim 3.
【請求項5】 前記プログラム変換ステップは、制御仕
様表記により記述されたシーケンス制御処理から、ブー
ル代数の法則によって前記原始プログラムを生成するこ
とを特徴とする請求項3または4に記載のシーケンス制
御プログラム生成方法。
5. The sequence control program according to claim 3, wherein the program conversion step generates the primitive program from a sequence control process described by a control specification notation according to a Boolean law. Generation method.
【請求項6】 状態遷移表データの登録に際し、特定の
セルにおける数学的に表記されている制御出力情報の格
納番地と出力情報に基づき、予め記憶されている他のセ
ルにおいて定義されている出力情報を検索し、出力条件
が同一となる処理定義に関して定義されている入力条件
も同一であるかを比較し、異なる入力条件で出力情報が
同一になる処理は、設計矛盾が生じていると判断する検
証ステップをさらに含むことを特徴とする請求項3〜5
のいずれか一つに記載のシーケンス制御プログラム生成
方法。
6. When registering state transition table data, an output defined in another cell stored in advance based on a storage address and output information of control output information mathematically written in a specific cell. Search information and compare whether the input conditions defined for the process definition with the same output condition are also the same, and determine that the process with the same output information under different input conditions has a design contradiction 6. The method according to claim 3, further comprising a verification step of
A method for generating a sequence control program according to any one of 1.
【請求項7】 前記記憶ステップは、生成された各原始
プログラムを、ネットワークに接続されたターゲット装
置に転送することを特徴とする請求項1〜6のいずれか
一つに記載のシーケンス制御プログラム生成方法。
7. The sequence control program generation according to claim 1, wherein the storing step transfers each generated source program to a target device connected to a network. Method.
【請求項8】 ネットワークに接続されたターゲット装
置で実施するシーケンス制御プログラムの動作試験を行
う際に、前記ターゲット装置内に保管された状態遷移表
の情報をネットワーク経由して表示する表示ステップを
さらに含むことを特徴とする請求項1〜7のいずれか一
つに記載のシーケンス制御プログラム生成方法。
8. When performing an operation test of a sequence control program executed by a target device connected to a network, a display step of displaying information of a state transition table stored in the target device via the network is further provided. The sequence control program generation method according to claim 1, further comprising:
【請求項9】 前記プログラム変換ステップは、主シー
ケンス制御処理のための状態遷移表と、フェールセーフ
用シーケンス制御処理のための状態遷移表とから前記各
原始プログラムを生成し、主シーケンス処理用とフェー
ルセーフ用のシーケンス制御処理の各状態遷移表によっ
て得られたシーケンス制御処理結果の出力整合性チェッ
クを行い、検証結果が正しいときに、主シーケンス制御
処理結果の出力を行うことを特徴とする請求項1〜8の
いずれか一つに記載のシーケンス制御プログラム生成方
法。
9. The program converting step generates each of the source programs from a state transition table for main sequence control processing and a state transition table for fail safe sequence control processing, The output consistency check of the sequence control processing result obtained by each state transition table of the fail safe sequence control processing is performed, and when the verification result is correct, the main sequence control processing result is output. Item 9. A sequence control program generation method according to any one of items 1 to 8.
【請求項10】 請求項1〜9のいずれか一つに記載さ
れた方法をコンピュータに実行させるプログラム。
10. A program for causing a computer to execute the method according to any one of claims 1 to 9.
【請求項11】 時間的制約を受けない順序制御処理事
象と、実時間制御が必要な非順序制御処理事象を含むシ
ーケンス制御処理を実行するプログラムを生成するシー
ケンス制御プログラム生成装置において、 判断材料としての状態とトリガー条件としての事象とで
特定される複数セルで構成され、前記順序制御処理事象
と前記非順序制御処理事象とが混在して記述された状態
遷移表に基づいて、前記順序制御処理事象と前記非順序
制御処理事象を別個に動作させる複数の原始プログラム
に生成するプログラム変換手段と、 生成された各原始プログラムを別個に記憶する記憶手段
とを備えたことを特徴とするシーケンス制御プログラム
生成装置。
11. A sequence control program generation device for generating a program for executing a sequence control process including a sequence control process event that is not subject to a time constraint and an out-of-order control process event that requires real-time control. Of the sequence control process event and the non-sequence control process event are described in a mixed state, and the sequence control process is configured by a plurality of cells specified by the state of and the event as the trigger condition. A sequence control program, comprising: a program conversion means for generating an event and the unordered control processing event into a plurality of source programs for operating separately; and a storage means for storing each generated source program separately. Generator.
【請求項12】 前記非順序制御処理事象は、タイミン
グ図データにおける入力事象であり、かつ出力条件を事
象と状態とで組み合わせたセル内処理であり、 前記プログラム変換手段は、前記タイミング図データに
おける所定のタイミングの処理を抽出し、入力条件で組
み合わせ判断に必要な状態を入力部に記載した状態から
抽出し、セル内処理結果から遷移する状態を入力部に記
載した状態から抽出し、前記タイミング図データを状態
遷移表に引き当てることを特徴とする請求項11に記載
のシーケンス制御プログラム生成装置。
12. The out-of-order control processing event is an input event in the timing diagram data, and is an in-cell process in which an output condition is combined with an event and a state, and the program conversion means is used in the timing diagram data. Extract the processing at a predetermined timing, extract the state required for combination judgment in the input condition from the state described in the input unit, extract the state transitioning from the in-cell processing result from the state described in the input unit, the timing The sequence control program generation device according to claim 11, wherein the figure data is assigned to a state transition table.
【請求項13】 前記プログラム変換手段は、機械語プ
ログラムへの変換処理を実行し、前記変換処理におい
て、シーケンス制御に必要な各種処理の入出力メモリ番
地を処理毎に固定すること請求項11または12に記載
のシーケンス制御プログラム生成装置。
13. The program conversion means executes a conversion process into a machine language program, and fixes input / output memory addresses of various processes necessary for sequence control in each process in the conversion process. 12. The sequence control program generation device according to item 12.
【請求項14】 前記プログラム変換手段は、前記変換
処理において、シーケンス制御に必要な各種処理である
接点入出力処理、計測値入出力処理、通信処理の入出力
メモリ番地を処理毎に固定することを特徴とする請求項
13に記載のシーケンス制御プログラム生成装置。
14. The program conversion means fixes, in each conversion process, input / output memory addresses for contact input / output process, measurement value input / output process, and communication process, which are various processes required for sequence control in the conversion process. The sequence control program generation device according to claim 13.
【請求項15】 前記プログラム変換手段は、制御仕様
表記により記述されたシーケンス制御処理から、ブール
代数の法則によって前記原始プログラムを生成すること
を特徴とする請求項13または14に記載のシーケンス
制御プログラム生成装置。
15. The sequence control program according to claim 13, wherein the program conversion means generates the primitive program from a sequence control process described by a control specification notation according to the law of Boolean algebra. Generator.
【請求項16】 状態遷移表データの登録に際し、特定
のセルにおける数学的に表記されている制御出力情報の
格納番地と出力情報に基づき、予め記憶されている他の
セルにおいて定義されている出力情報を検索し、出力条
件が同一となる処理定義に関して定義されている入力条
件も同一であるかを比較し、異なる入力条件で出力情報
が同一になる処理は、設計矛盾が生じていると判断する
検証手段をさらに備えたことを特徴とする請求項13〜
15のいずれか一つに記載のシーケンス制御プログラム
生成装置。
16. When registering state transition table data, an output defined in another cell stored in advance based on a storage address and output information of control output information mathematically written in a specific cell. Search information and compare whether the input conditions defined for the process definition with the same output condition are also the same, and determine that the process with the same output information under different input conditions has a design contradiction 14. The verification means for further comprising:
15. The sequence control program generation device according to any one of 15.
【請求項17】 前記記憶手段は、生成された各原始プ
ログラムを、ネットワークに接続されたターゲット装置
に転送することを特徴とする請求項11〜16のいずれ
か一つに記載のシーケンス制御プログラム生成装置。
17. The sequence control program generation according to claim 11, wherein the storage unit transfers each generated source program to a target device connected to a network. apparatus.
【請求項18】 ネットワークに接続されたターゲット
装置で実施するシーケンス制御プログラムの動作試験を
行う際に、前記ターゲット装置内に保管された状態遷移
表の情報をネットワーク経由して表示する表示手段をさ
らに備えたことを特徴とする請求項11〜17のいずれ
か一つに記載のシーケンス制御プログラム生成装置。
18. A display means for displaying information of a state transition table stored in the target device via the network when performing an operation test of a sequence control program executed by the target device connected to the network. The sequence control program generation device according to any one of claims 11 to 17, characterized by being provided.
【請求項19】 前記プログラム変換手段は、主シーケ
ンス制御処理のための状態遷移表と、フェールセーフ用
シーケンス制御処理のための状態遷移表とから前記各原
始プログラムを生成し、主シーケンス処理用とフェール
セーフ用のシーケンス制御処理の各状態遷移表によって
得られたシーケンス制御処理結果の出力整合性チェック
を行い、検証結果が正しいときに、主シーケンス制御処
理結果の出力を行うことを特徴とする請求項11〜18
のいずれか一つに記載のシーケンス制御プログラム生成
装置。
19. The program conversion means generates each of the source programs from a state transition table for main sequence control processing and a state transition table for fail safe sequence control processing, The output consistency check of the sequence control processing result obtained by each state transition table of the fail safe sequence control processing is performed, and when the verification result is correct, the main sequence control processing result is output. Item 11-18
The sequence control program generation device according to any one of 1.
JP2002287539A 2001-09-28 2002-09-30 Method and device for generating sequence control program and program for making computer execute the same method Pending JP2003177804A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002287539A JP2003177804A (en) 2001-09-28 2002-09-30 Method and device for generating sequence control program and program for making computer execute the same method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2001302608 2001-09-28
JP2001-302608 2001-09-28
JP2002287539A JP2003177804A (en) 2001-09-28 2002-09-30 Method and device for generating sequence control program and program for making computer execute the same method

Publications (1)

Publication Number Publication Date
JP2003177804A true JP2003177804A (en) 2003-06-27

Family

ID=26623373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002287539A Pending JP2003177804A (en) 2001-09-28 2002-09-30 Method and device for generating sequence control program and program for making computer execute the same method

Country Status (1)

Country Link
JP (1) JP2003177804A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005085271A (en) * 2003-09-05 2005-03-31 Fisher Rosemount Syst Inc State machine functional block with state transition configuration database that can be modified by the user
JP2005135383A (en) * 2003-09-05 2005-05-26 Fisher Rosemount Syst Inc State machine function block with user modifiable output configuration database
JP2017004163A (en) * 2015-06-08 2017-01-05 株式会社Ihi Logic generator
CN112783617A (en) * 2020-12-10 2021-05-11 国电南京自动化股份有限公司 Sequence control method with virtual execution suitable for rail transit monitoring application
CN114144735A (en) * 2019-05-20 2022-03-04 马库斯·格鲁伯 Computer-implemented method for the computer-aided generation of an executable control program for controlling and/or regulating a technical process

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005085271A (en) * 2003-09-05 2005-03-31 Fisher Rosemount Syst Inc State machine functional block with state transition configuration database that can be modified by the user
JP2005135383A (en) * 2003-09-05 2005-05-26 Fisher Rosemount Syst Inc State machine function block with user modifiable output configuration database
US8600524B2 (en) 2003-09-05 2013-12-03 Fisher-Rosemount Systems, Inc. State machine function block with a user modifiable state transition configuration database
JP2017004163A (en) * 2015-06-08 2017-01-05 株式会社Ihi Logic generator
CN114144735A (en) * 2019-05-20 2022-03-04 马库斯·格鲁伯 Computer-implemented method for the computer-aided generation of an executable control program for controlling and/or regulating a technical process
CN112783617A (en) * 2020-12-10 2021-05-11 国电南京自动化股份有限公司 Sequence control method with virtual execution suitable for rail transit monitoring application
CN112783617B (en) * 2020-12-10 2024-03-29 国电南京自动化股份有限公司 Sequential control method with virtual execution suitable for rail transit monitoring application

Similar Documents

Publication Publication Date Title
US8417504B2 (en) Conversion of circuit description to a transaction model
US6587995B1 (en) Enhanced programmable core model with integrated graphical debugging functionality
US8161440B2 (en) Highly specialized scenarios in random test generation
JP2699377B2 (en) Hardware logic simulator
US6611946B1 (en) Method and system for automatic generation of DRC rules with just in time definition of derived layers
US20030028856A1 (en) Method and apparatus for testing a software component using an abstraction matrix
JP2012059026A (en) Source code conversion method and source code conversion program
Bondavalli et al. Automated dependability analysis of UML designs
Wood et al. A model-driven development approach to mapping UML state diagrams to synthesizable VHDL
JP2004240753A (en) Design verification system, design verification method and design verification program
Park et al. BLoG: Post-silicon bug localization in processors using bug localization graphs
US20070055911A1 (en) A Method and System for Automatically Generating a Test-Case
JP2009169828A (en) Test case creation device and creation program
JP2003177804A (en) Method and device for generating sequence control program and program for making computer execute the same method
JP2011170749A (en) Simulation device and simulation method
US7051301B2 (en) System and method for building a test case including a summary of instructions
Cavarra et al. Combining sequence diagrams and OCL for liveness
JP2005108007A (en) LSI design verification apparatus and LSI design verification method
JP2005222221A (en) Embedded controller development tool, embedded controller, and embedded controller development process
JP2009217720A (en) Program generating device and program generating method
JP3641090B2 (en) Programming support apparatus and method
Bombieri et al. On the mutation analysis of SystemC TLM-2.0 standard
JP5034867B2 (en) Software verification support program, recording medium recording the program, software verification support apparatus, and software verification support method
CN120705061B (en) Embedded firmware hybrid symbolic execution test system, method, apparatus and media
Urdahl et al. Architectural system modeling for correct-by-construction RTL design

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20040427

Free format text: JAPANESE INTERMEDIATE CODE: A621

A977 Report on retrieval

Effective date: 20060331

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20060411

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Effective date: 20060801

Free format text: JAPANESE INTERMEDIATE CODE: A02