JP3426405B2 - Sequence program creation device - Google Patents

Sequence program creation device

Info

Publication number
JP3426405B2
JP3426405B2 JP11721595A JP11721595A JP3426405B2 JP 3426405 B2 JP3426405 B2 JP 3426405B2 JP 11721595 A JP11721595 A JP 11721595A JP 11721595 A JP11721595 A JP 11721595A JP 3426405 B2 JP3426405 B2 JP 3426405B2
Authority
JP
Japan
Prior art keywords
place
sequence program
sequence
program
input
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.)
Expired - Fee Related
Application number
JP11721595A
Other languages
Japanese (ja)
Other versions
JPH0876821A (en
Inventor
康一 西永
清 古川
直樹 田村
哲也 高橋
孝司 森田
正幸 日照
治男 奥村
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.)
Kobe Steel Ltd
Original Assignee
Kobe Steel 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 Kobe Steel Ltd filed Critical Kobe Steel Ltd
Priority to JP11721595A priority Critical patent/JP3426405B2/en
Publication of JPH0876821A publication Critical patent/JPH0876821A/en
Application granted granted Critical
Publication of JP3426405B2 publication Critical patent/JP3426405B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

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

【0001】[0001]

【産業上の利用分野】本発明は,シーケンスプログラム
作成装置に係り,詳しくは画面上でペトリネットを用い
て入力されたシーケンス制御モデルを所定の形式のシー
ケンスプログラムに変換して表示するシーケンスプログ
ラム作成装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequence program creating apparatus, and more specifically, to creating a sequence program for converting a sequence control model input using a Petri net on a screen into a sequence program of a predetermined format and displaying the sequence program. It relates to the device.

【0002】[0002]

【従来の技術】従来より,シーケンス制御を行うシーケ
ンサのプログラム開発には,ラダー図が多く用いられて
いる。これは,個々の機器の動作条件などをON,OF
Fの情報の組み合わせによって記述していくものであ
り,現在でも一般的に利用されている。しかし,このラ
ダー図は,個々の条件を羅列していくだけで,全体の制
御の流れが見えにくく,プログラムはそれを作成した本
人にしか理解しにくい。このため,メンテナンス性が悪
いなどの問題点が指摘されている。このような背景のも
と,最近ではペトリネットをシーケンスプログラムの作
成に利用しようとする試みがいくつか行われている。例
えば特開平4−18605号公報には,機械の運転仕様
を動作フローと動作仕様とに分けて,この内動作フロー
をペトリネットで,また動作仕様をシーケンステーブル
で表現した後,両者を組み合わせてラダー形式のシーケ
ンスプログラムに変換し表示する方法が紹介されてい
る。
2. Description of the Related Art Conventionally, ladder diagrams have been widely used in the development of sequencer programs for sequence control. This is for turning on / off the operating conditions of individual devices.
It is described by a combination of F information, and is generally used even now. However, in this ladder diagram, it is difficult to see the overall control flow only by listing individual conditions, and the program is difficult for the person who created it to understand. Therefore, problems such as poor maintainability have been pointed out. Against this background, several attempts have recently been made to use Petri nets for creating sequence programs. For example, in Japanese Unexamined Patent Publication No. 4-18605, operation specifications of a machine are divided into an operation flow and an operation specification. The operation flow in this is expressed by a Petri net, and the operation specification is expressed by a sequence table, and then both are combined. The method of converting to a ladder format sequence program and displaying it is introduced.

【0003】[0003]

【発明が解決しようとする課題】上記したような従来の
方法では,ペトリネットのプレースは機械の動作のみを
表現する方法を採っているため,動作の流れはペトリネ
ット上で表現できるが,機械の状態や,その他機械を動
作させるための種々の条件(異常の発生条件,センサな
どの入出力機器の状態など)など,制御対象機器の状態
がペトリネット上では表現できない。このためプログラ
ムを作成するという面では制御の流れが視覚的にわかり
ずらい。また,ペトリネットとシーケンステーブルとが
独立して別々になっているため,ペトリネットエディタ
上で各プレースの動作の仕様をみることができず不便で
ある。さらに,従来のラダー図とペトリネットとがうま
く対応していないため,変換によって生成されるラダー
プログラムは人間が手で作るものとはかけ離れたものに
なり,解読が困難なものとなりやすい。本発明は,上記
事情に鑑みてなされたものであり,その目的とするとこ
ろは,ペトリネットの持つ制御の流れを見やすくすると
いう長所を生かし,制御の流れや各機器の状態を視覚的
に表現しつつも,従来のラダーによるプログラミングの
特徴を十分取り入れた形のシーケンスプログラムの作成
装置を提供することである。
In the conventional method as described above, since the place of the Petri net expresses only the operation of the machine, the flow of the operation can be expressed on the Petri net. The state of the controlled device, such as the state of, and various other conditions for operating the machine (abnormal condition, state of input / output devices such as sensors) cannot be expressed on the Petri net. Therefore, it is difficult to visually understand the flow of control in terms of creating a program. In addition, since the Petri net and the sequence table are independent and separate, it is inconvenient because the operation specifications of each place cannot be seen on the Petri net editor. Furthermore, since the conventional ladder diagram and Petri net do not correspond well, the ladder program generated by the conversion is far from the one created by humans, and it tends to be difficult to decipher. The present invention has been made in view of the above circumstances, and an object of the present invention is to visually represent the control flow and the state of each device by making the best use of the advantage that the control flow of a Petri net is easy to see. However, it is still another object of the present invention to provide a sequence program creation device in a form that fully incorporates the characteristics of conventional ladder programming.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するため
に第1の発明は,画面上でペトリネットを用いて入力さ
れたシーケンス制御モデルを所定の形式のシーケンスプ
ログラムに変換して表示するシーケンスプログラム作成
装置において,上記ペトリネットをシーケンス制御に必
要な機能を実現するための複数の種類のプレース及び複
数の種類のアークを含むように拡張した拡張ペトリネッ
トを用いて入力されたシーケンス制御モデルを記憶する
第2のモデル記憶手段と,上記拡張ペトリネットに含ま
れる各プレースの状態が成立するようにプレースごとに
論理式の形で入力された条件及びプレースごとに必要な
設定情報を記憶する第2の条件記憶手段と,上記それぞ
れ記憶されたシーケンス制御モデルと条件及び設定情報
とに基づいて自動生成される拡張条件を所定の形式のシ
ーケンスプログラムに変換して表示する第2のシーケン
スプログラム表示手段とを具備してなることを特徴とす
るシーケンスプログラム作成装置として構成されてい
る。
According to a first aspect of the invention to achieve the above object, converting and displaying the sequence control model that is input with Petri nets on screen in a predetermined format sequence program In a sequence program creation device, a sequence control model input using an extended Petri net that expands the above Petri net to include multiple types of places and multiple types of arcs to realize the functions required for sequence control. And a second model storage unit for storing, and a condition input in the form of a logical expression for each place so that the state of each place included in the extended Petri net is established, and setting information necessary for each place. A second condition storage means, and an automatic operation based on the sequence control model and the condition and setting information stored above. And it is configured to extend conditions made as a sequence program creating device, characterized by comprising and a second sequence program display means for displaying converted into a predetermined format sequence program.

【0005】 さらには,上記第2のモデル記憶手段が,
上記シーケンス制御の対象機器の制御状態を表す状態プ
レース,上記シーケンス制御を行うシーケンサのタイマ
ー機能を表す時間プレース,上記シーケンス制御を行う
シーケンサのカウンタ機能を表すカウンタプレース,上
記シーケンサからの出力を表す出力プレース,上記シー
ケンサの各種演算機能を表す演算プレース,上記シーケ
ンサへの入力を表す入力プレース,他のプレースのオン
・オフ情報を参照する参照プレースの全部又は一部を含
む拡張ペトリネットを用いて入力されたシーケンス制御
モデルを記憶することを特徴とするシーケンスプログラ
ム作成装置である。
[0005] Further, the second model storing means,
A state place showing the control state of the target device of the sequence control, a time place showing the timer function of the sequencer performing the sequence control, a counter place showing the counter function of the sequencer performing the sequence control, an output showing the output from the sequencer. Input using an extended Petri net that includes all or part of a place, an arithmetic place indicating various arithmetic functions of the above sequencer, an input place indicating input to the above sequencer, and a reference place referencing on / off information of other places The sequence program creating device is characterized by storing the created sequence control model.

【0006】さらには,上記第2のモデル記憶手段が,
ペトリネットを階層的に記述する階層プレースを含む拡
張ペトリネットを用いて入力されたシーケンス制御モデ
ルを記憶することを特徴とするシーケンスプログラム作
成装置である。さらには,上記第2のモデル記憶手段
が,上記シーケンサのa接点接続を表すa接点接続用ア
ーク,上記シーケンサのb接点接続を表すb接点接続用
アーク,上記シーケンサの自己保持回路を表す自己保持
解除用アークの全部又は一部を含む拡張ペトリネットを
用いて入力されたシーケンス制御モデルを記憶すること
を特徴とするシーケンスプログラム作成装置である。
Further, the second model storage means is
A sequence program creating device characterized by storing a sequence control model input using an extended petri net including hierarchical places that hierarchically describe a petri net. Further, the second model storage means has an a-contact connecting arc that represents the a-contact connection of the sequencer, a b-contact connecting arc that represents the b-contact connection of the sequencer, and a self-holding that represents the self-holding circuit of the sequencer. It is a sequence program creation device characterized by storing a sequence control model input using an extended Petri net including all or a part of a releasing arc.

【0007】 さらには,上記第2の条件記憶手段が,画
面上で選択されるプレースに応じて開かれるダイアログ
ボックスを構成し,該ダイアログボックスの中に論理式
の形で入力された条件及びプレースごとに必要な設定情
報を記憶することを特徴とするシーケンスプログラム作
成装置である。さらには,上記プレースごとに必要な設
定情報が,ラベル,コメント,デバイス番号,演算指
令,当該プレースへの入出力リスト,タイマーの設定値
及びカウンタの設定値の全部又は一部を含むシーケンス
プログラム作成装置である。
[0007] Further, the second condition storage unit, configure a dialog box to be opened in accordance with the place to be selected on the screen, the condition and place entered in the form of a logical expression in the dialog box This is a sequence program creating device characterized by storing necessary setting information for each. Furthermore, a sequence program is created in which the necessary setting information for each place includes all or part of the label, comment, device number, operation command, input / output list to the place, timer setting value and counter setting value. It is a device.

【0008】さらには,上記第2のシーケンスプログラ
ム表示手段が,上記シーケンス制御モデルからシーケン
サのデバイス番号を割り付けるべきプレースを順次抽出
するデバイス番号割り付けプレース抽出手段と,上記抽
出されたプレースに上記シーケンサのデバイス番号を所
定のルールにより自動的に割り付けるデバイス番号自動
割り付け手段と,上記シーケンス制御モデルから上記シ
ーケンスプログラムに変換するプレースを上記自動的に
割り付けられたデバイス番号又は別途指示されたデバイ
ス番号に従い順次検出するプレース検出手段と,上記検
出されたプレースに対応する条件をトランジションを介
してアークで結合された上流側のプレースにまで適用範
囲を拡張することによって上記拡張条件を自動生成する
拡張条件生成手段と,上記生成された拡張条件をリスト
形式のプログラムに変換するプログラム変換手段と,上
記変換されたリスト形式のプログラムに上記検出された
プレースの種類に応じて出力命令を付加することにより
リスト形式のシーケンスプログラムを作成するリスト形
式シーケンスプログラム作成手段と,上記作成されたリ
スト形式のシーケンスプログラムをラダー形式のプログ
ラムに変換することによりラダー形式のシーケンスプロ
グラムを作成するラダー形式シーケンスプログラム作成
手段と,上記作成されたリスト形式及び/又はラダー形
式のシーケンスプログラムを表示する表示手段とを具備
してなることを特徴とするシーケンスプログラム作成装
置である。第2の発明は,上記ペトリネットが,上記シ
ーケンス制御モデル中の上流側プレースと下流側プレー
スとの間にのみ介在しえて上記シーケンスプログラムに
は変換されることのないダミー機能を表すダミープレー
スを含むことを特徴とするシーケンスプログラム作成装
置として構成されている。
Further, the second sequence program display means sequentially extracts the places to which the device numbers of the sequencer are to be assigned from the sequence control model, and the device number allocation place extraction means, and the sequencer model to the extracted places. Device number automatic assigning means for automatically assigning device numbers according to a predetermined rule, and a place for converting the sequence control model into the sequence program is sequentially detected according to the automatically assigned device number or a separately designated device number. And the extended condition generating means for automatically generating the extended condition by extending the applicable range of the condition corresponding to the detected place to the upstream place connected by an arc through a transition. A program conversion means for converting the generated extended condition into a list format program, and a list format sequence by adding an output command to the converted list format program according to the detected place type A list format sequence program creating means for creating a program, a ladder format sequence program creating means for creating a ladder format sequence program by converting the created list format sequence program into a ladder format program, and the above created And a display means for displaying a sequence program in a list format and / or a ladder format. A second invention is a dummy place the upper Symbol Petri nets, represents a dummy function that is not converted into only interposed E with the sequence program between the upstream places and downstream place in the sequence control model Is configured as a sequence program creating device.

【0009】[0009]

【作用】第1の発明によれば,画面上でペトリネットを
用いて入力されたシーケンス制御モデルを所定の形式の
シーケンスプログラムに変換して表示するに際し,まず
上記ペトリネットをシーケンス制御に必要な機能を実現
するための複数種類のプレース及び複数の種類のアーク
を含むように拡張した拡張ペトリネットを用いて入力さ
れたシーケンス制御モデルが第2のモデル記憶手段によ
り記憶される。次に上記拡張ペトリネットに含まれる各
プレースの状態が成立するようにプレース毎に論理式の
形で入力された条件及びプレースごとに必要な設定情報
が第2の条件記憶手段により記憶される。そして上記そ
れぞれ記憶されたシーケンス制御モデルと条件及び設定
情報とに基づいて自動生成される拡張条件が第2のシー
ケンスプログラム表示手段により所定の形式のシーケン
スプログラムに変換され表示される。
According to the first aspect of the present invention, upon converting and displaying the sequence control model that is input with Petri nets on screen in a predetermined format of a sequence program, first need to sequence control the Petri net A second model storage unit stores a sequence control model input using an extended Petri net extended to include a plurality of types of places and a plurality of types of arcs for realizing various functions. Next, the conditions input in the form of a logical expression for each place so that the state of each place included in the extended Petri net is established, and the setting information necessary for each place are stored by the second condition storage means. Then, the extended condition automatically generated based on the stored sequence control model and the condition and setting information is converted into a sequence program in a predetermined format by the second sequence program display means and displayed.

【0010】従って,ペトリネットによる仕様記述能力
が向上し,条件間の関連がペトリネット上で視覚的に表
現され,シーケンスプログラムの作成が一層容易とな
る。第の発明によれば,画面上でペトリネットを用い
て入力されたシーケンス制御モデルを所定の形式のシー
ケンスプログラムに変換して表示するに際し,上記シー
ケンス制御モデル中の上流側プレースと下流側プレース
との間にのみ介在しえて上記シーケンスプログラムには
変換されることのないダミー機能を表すダミープレース
を含むペトリネットが用いられる。従って,ペトリネッ
トによる仕様記述能力がさらに向上し,条件間の関連が
ペトリネット上で簡単に表現され,シーケンスプログラ
ムの作成がより一層容易となる。またペトリネットから
ラダー図及びリストプログラムに変換する際に,補助リ
レーの数,ステップ数を大幅に減ずることができる。
Therefore, the specification description ability by the Petri net is improved, the relation between conditions is visually expressed on the Petri net, and the creation of the sequence program is further facilitated. According to the second invention, when converting the sequence control model input using the Petri net on the screen into the sequence program of a predetermined format and displaying the sequence program, the upstream place and the downstream place in the sequence control model are displayed. A Petri net including a dummy place that represents a dummy function that is not converted is used in the sequence program by interposing only between and. Therefore, the specification description ability by the Petri net is further improved, the relation between conditions is easily expressed on the Petri net, and the sequence program is further easily created. Also, the number of auxiliary relays and the number of steps can be greatly reduced when converting from Petri nets to ladder diagrams and list programs.

【0011】[0011]

【実施例】以下添付図面を参照して,まず本発明の背景
となるシーケンスプログラム作成装置について説明し,
次にこの背景技術をを改良し本発明を具体化した実施例
につき説明し,本発明の理解に供する。尚,以下の実施
例は本発明を具体化した一例であって,本発明の技術的
範囲を限定する性格のものではない。ここに,図1は
記背景技術であるシーケンスプログラム作成装置1の概
略構成を示すブロック図,図2はシーケンスプログラム
作成装置1の画面例を示す図,図3は装置1の条件記述
ダイアログボックスの概念図,図4は装置1によるシー
ケンスプログラム作成手順を示すフロー図,図5は装置
1による拡張条件生成の様子を示す説明図,図6はシー
ケンス制御機構の例図,図7は装置1による拡張ペトリ
ネットと条件の例図,図8はリスト形式シーケンスプロ
グラムの例図,図9はラダー形式シーケンスプログラム
の例図,図10は本願第1の発明の一実施例(第の実
施例)に係るシーケンスプログラム作成装置51の概略
構成を示すブロック図,図11はシーケンスプログラム
作成装置51の画面例を示す図,図12は参照プレース
の機能説明図,図13は階層プレースの機能説明図,図
14は各種アークの機能説明図,図15は装置51の条
件記述ダイアログボックスの概念図,図16は装置51
によるシーケンスプログラム作成手順を示すフロー図,
図17は装置51による拡張ペトリネットと条件の例
図,図18は第の発明の一実施例(第の実施例)に
係るシーケンスプログラム作成装置71の基本原理を示
す説明図,図19は装置71によるシーケンスプログラ
ム作成例を示す説明図,図20は装置51による他のシ
ーケンスプログラム作成例を示す説明図,図21は装置
71による他のシーケンスプログラム作成例を示す説明
図である。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, the background of the present invention will be described with reference to the accompanying drawings.
The sequence program creation device will be explained.
Next, examples for embodying the present invention by improving the background art will be described to provide an understanding of the present invention. It should be noted that the following embodiments are examples of embodying the present invention, and are not intended to limit the technical scope of the present invention. Here, Figure 1 is above
2 is a block diagram showing a schematic configuration of a sequence program creating device 1 as background art, FIG. 2 is a diagram showing an example of a screen of the sequence program creating device 1, FIG. 3 is a conceptual diagram of a condition description dialog box of the device 1, and FIG. FIG. 5 is a flow chart showing a sequence program creation procedure by the device 1, FIG. 5 is an explanatory diagram showing how extended conditions are generated by the device 1, FIG. 6 is an example diagram of a sequence control mechanism, and FIG. 7 is an extended petri net by the device 1 and conditions. Example diagram, FIG. 8 is an example diagram of a list format sequence program, FIG. 9 is an example diagram of a ladder format sequence program, and FIG. 10 is a sequence program creating device according to one embodiment ( first embodiment) of the first invention of the present application . 51 is a block diagram showing a schematic configuration of 51, FIG. 11 is a diagram showing an example of a screen of the sequence program creating device 51, FIG. 12 is a functional explanatory diagram of a reference place, FIG. 3 is a functional explanatory diagram of a hierarchical place, FIG. 14 is a functional explanatory diagram of various arcs, FIG. 15 is a conceptual diagram of a condition description dialog box of the device 51, and FIG.
Flowchart showing the sequence program creation procedure by
Figure 17 is an example view of an expandable Petri net and conditions of device 51, FIG. 18 is an explanatory diagram showing the basic principle of the sequence program creating device 71 according to an embodiment of the second invention (second embodiment), FIG. 19 21 is an explanatory diagram showing an example of creating a sequence program by the device 71, FIG. 20 is an explanatory diagram showing another example of creating a sequence program by the device 51, and FIG. 21 is an explanatory diagram showing another example of creating a sequence program by the device 71.

【0012】図1に示すごとく,本願発明の背景となる
シーケンスプログラム作成装置1は,画面上でペトリネ
ットを用いて入力されたシーケンス制御モデルを所定の
形式のシーケンスプログラムに変換して表示する点で従
来例と同様である。しかし,この装置では,上記ペトリ
ネットをシーケンス制御に必要な機能を表現するための
複数種類のプレースを含むように拡張した拡張ペトリネ
ットを用いて入力されたシーケンス制御を記憶する第1
のモデル記憶手段2と,上記拡張ペトリネットに含まれ
る各プレースの状態が成立するようにプレース毎に論理
式の形で入力された条件を記憶する第1の条件記憶手段
3と,上記それぞれ記憶されたシーケンス制御モデルと
条件とに基づいて自動生成される拡張条件を所定の形式
のシーケンスプログラムに変換して表示する第1のシー
ケンスプログラム表示手段4とを具備するものである
As shown in FIG. 1, the sequence program creating apparatus 1 which is the background of the present invention converts a sequence control model input using a Petri net on the screen into a sequence program of a predetermined format. The display is similar to the conventional example. However, in this apparatus , the first Petri net that stores the sequence control input using an extended Petri net that is expanded to include a plurality of types of places for expressing the functions required for sequence control is stored.
Model storage means 2, first condition storage means 3 for storing the conditions input in the form of a logical expression for each place so that the state of each place included in the extended Petri net is established, and each of the above storages. those comprising a first sequence program display unit 4 for converting and displaying the expanded condition that is automatically generated predetermined format sequence program on the basis of the sequence control models and conditions set.

【0013】さらに,上記第1のモデル記憶手段2が,
上記シーケンス制御の対象機器の制御状態を表す状態プ
レース,上記シーケンス制御を行うシーケンサのタイマ
ー機能を表す時間プレース,上記シーケンス制御を行う
シーケンサのカウンタ機能を表すカウンタプレース,上
記シーケンサからの出力を表す出力プレース,上記シー
ケンサの各種演算機能を表す演算プレースの全部又は一
部よりなる拡張ペトリネットを用いて入力されたシーケ
ンス制御モデルを記憶することとしてもよい。さらに,
上記第1の条件記憶手段3が画面上で選択されるプレー
スに応じて開かれるダイアログボックスを構成し,この
ダイアログボックスの中に論理式の形で入力された条件
を記憶することとしてもよい。さらに,上記第1のシー
ケンスプログラム表示手段4が,上記シーケンス制御モ
デルから上記シーケンスプログラムに変換するプレース
を順次検出するプレース検出手段5と,上記検出された
プレースに対応する条件をトランジションを介して結合
された上流側のプレースにまで適用範囲を拡張すること
によって,上記拡張条件を自動生成する拡張条件生成手
段6と,上記生成された拡張条件をリスト形式のプログ
ラムに変換するプログラム変換手段7と,上記変換され
たリスト形式のプログラムに上記検出されたプレースの
種類に応じて出力命令を付加することによりリスト形式
のシーケンスプログラムを作成するリスト形式シーケン
スプログラム作成手段8と,上記作成されたリスト形式
のシーケンスプログラムをラダー形式のプログラムに変
換することによりラダー形式のシーケンスプログラムを
作成するラダー形式シーケンスプログラム作成手段9
と,上記作成されたリスト形式及び/又はラダー形式の
シーケンスプログラムを表示する表示手段10とを具備
してもよい
Further, the first model storage means 2 is
A state place showing the control state of the target device of the sequence control, a time place showing the timer function of the sequencer performing the sequence control, a counter place showing the counter function of the sequencer performing the sequence control, an output showing the output from the sequencer. It is also possible to store a sequence control model input using an extended Petri net formed of all or some of the places and the arithmetic places representing various arithmetic functions of the sequencer. further,
The first condition storage means 3 may constitute a dialog box opened according to the place selected on the screen, and the condition input in the form of a logical expression may be stored in this dialog box. Further, the first sequence program display means 4 combines a place detection means 5 for sequentially detecting places to be converted from the sequence control model into the sequence program, and a condition corresponding to the detected place via a transition. An extended condition generating means 6 for automatically generating the extended condition by expanding the applicable range to the created place on the upstream side, and a program converting means 7 for converting the generated extended condition into a list format program, A list format sequence program creating means 8 for creating a list format sequence program by adding an output command to the converted list format program according to the type of the detected place, and a list format sequence program creating means 8 Ladder format program for sequence programs Ladder type sequence program creating means 9 for creating a ladder format sequence program by converting the
And a display means 10 for displaying the created list format and / or ladder format sequence program .

【0014】以下,この装置1についてさらに詳しく述
べる。図2は,第1のモデル記憶手段2と第1の条件記
憶手段3にそれぞれ記憶される入力データの画面例を示
す。この装置1のシステムでは,パーソナルコンピュー
タのWindows 上に構築されており,図中,11がペトリ
ネット入力エディタを,12が条件を記述するための条
件記述ダイアログボックスをそれぞれ示している。尚,
このシステムでは各プレースをダブルクリックすること
により,そのプレースに対応した条件記述ダイアログボ
ックスが開くようになっており,ペトリネット図の記述
と条件の記述とが並行して行える。ペトリネット入力エ
ディタ11では,メニュー13より必要なプレースの種
類を選択して,マウス(不図示)によりドラッグしてく
ることによって入力できるようになっている。メニュー
13は左から,状態プレース,時間プレース,カウンタ
プレース,演算プレース,出力プレース,トランジショ
ンをそれぞれ表している。各プレースにはデバイス番号
と呼ばれる番号(M0000,T0000等)が割り付
けられているが,これは,シーケンサにおける入出力接
点番号や,内部リレーに割り付けられている番号と対応
している。このようにラダーの一行をペトリネット上で
は1つのプレースに対応させることによりペトリネット
図を記述していくことによって,これまでラダー図によ
る開発に慣れ親しんだ人でもラダー図と同じような感覚
や手順で違和感なくこの装置1を用いてプログラムを作
成できる。また,この背景技術における拡張ペトリネッ
トモデルを用いれば,単に機械の動作の流れを表すだけ
ではなくて,各機器の状態やタイマーや出力の状態など
もペトリネット上で表現できる。ただしプレースの種類
は,この例で表示された種類に限定されるものではな
く,例えば階層プレースや部品を表すプレース,その他
各種の演算命令に対応したプレース等を追加していくこ
とも可能である。
The device 1 will be described in more detail below. FIG. 2 shows an example of a screen of input data stored in the first model storage means 2 and the first condition storage means 3, respectively. The system of the apparatus 1 is constructed on a personal computer Windows, and in the figure, 11 indicates a Petri net input editor and 12 indicates a condition description dialog box for describing conditions. still,
In this system, by double-clicking on each place, the condition description dialog box corresponding to that place is opened, and the Petri net diagram description and condition description can be performed in parallel. In the Petri net input editor 11, a necessary place type is selected from the menu 13 and can be input by dragging it with a mouse (not shown). From the left, the menu 13 represents a status place, a time place, a counter place, a calculation place, an output place, and a transition. A number called a device number (M0000, T0000, etc.) is assigned to each place, which corresponds to the input / output contact number in the sequencer and the number assigned to the internal relay. In this way, by describing a Petri net diagram by associating one line of the ladder with one place on the Petri net, even those who are familiar with the development of ladder diagrams can feel the same feeling and procedure as ladder diagrams. Therefore, a program can be created by using this device 1 without any discomfort. Further, by using the extended Petri net model in this background art , not only the flow of machine operation but also the state of each device, the state of timers and outputs, etc. can be expressed on the Petri net. However, the types of places are not limited to the types displayed in this example, and it is possible to add, for example, hierarchical places, places representing parts, and places corresponding to various other operation instructions. .

【0015】また,必要に応じてトランジションやアー
クも複数種類用意してペトリネットモデルの更なる拡張
機能を行うことも考えられる。条件記述ダイアログボッ
クス12は,図3にその概略図を示すように,プレース
の種類に応じて形が違っており,それぞれのプレースに
必要な条件が入力できるようになっている。条件はいず
れも論理式の形で入力するが,これはラダーとの整合性
を良くするためであり,これにより従来ラダーを書いて
いたのと同じような感覚でプログラムを記述でき,しか
も後でラダープログラムに変換するときも,従来人間が
直接書いていたラダープログラムと,ほぼ同じ形のラダ
ープログラムを得ることが可能となる。なおここでは,
条件式をキーボード(不図示)より直接入力している
が,プレースや演算記号をマウスでクリックすることに
より,自動的に入力できるようにすることや,典型的な
パターンを記憶させておいて必要なときに呼び出すよう
にしてもよい。また,条件記述ダイアログボックスの中
味は図3の例に限られるものではなく,必要に応じて種
々の情報を入力できるように改良しても良い。
It is also conceivable to prepare a plurality of types of transitions and arcs as needed to perform a further extension function of the Petri net model. As shown in the schematic diagram of FIG. 3, the condition description dialog box 12 has a different shape depending on the type of place, and a condition required for each place can be input. All of the conditions are entered in the form of logical expressions, which is to improve the consistency with the ladder. This allows you to write a program in the same way as you used to write a ladder, and later When converting to a ladder program, it is possible to obtain a ladder program that has almost the same shape as a ladder program that was previously written directly by humans. Here,
Although the conditional expression is directly input from the keyboard (not shown), it is necessary to enable automatic input by clicking a place or operation symbol with the mouse, or to store a typical pattern in advance. You may call it at any time. Further, the contents of the condition description dialog box are not limited to the example of FIG. 3, and may be improved so that various information can be input as necessary.

【0016】次に第1のシーケンスプログラム表示手段
4におけるシーケンスプログラムの自動生成について,
その処理の流れを図4を参照しつつステップS1,S
2,…順に説明する。先ず,ペトリネット図のネット構
造を基に変換していくプレースの順番を決定する(S
1)。この順番はプレース検出手段5によりプレースを
アークに沿って検索していくことにより決定されるが,
出力プレースはラダーの慣例に従って最後にまとめて変
換される。そして,最初のプレースに関して,そのプレ
ースの条件記述ダイアログボックス12に記述された条
件を取得する(S2)。この条件記述ダイアログボック
ス12は上記図3で示したようにプレースの種類によっ
て内容が異なっており,それぞれ拡張条件生成手段6に
よりそれぞれ次のような規則で変換のもとになる条件式
(拡張条件に相当)を自動的に作成する(S3〜S
6)。
Next, regarding the automatic generation of the sequence program in the first sequence program display means 4,
The process flow will be described with reference to FIG.
2, ... will be described in order. First, the order of places to be converted is determined based on the net structure of the Petri net diagram (S
1). This order is determined by searching the place along the arc by the place detecting means 5,
The output places are finally converted together according to the ladder convention. Then, regarding the first place, the condition described in the condition description dialog box 12 of the place is acquired (S2). As shown in FIG. 3, the content of the conditional description dialog box 12 differs depending on the type of place, and the conditional expression (extended condition) which is the basis of conversion by the extended condition generating means 6 is as follows. Is automatically created (S3 to S)
6).

【0017】(規則1) 状態プレースと出力プレースの場合: <自己保持有りの場合> 条件式=(条件欄の条件式+プレースのデバイス番号)
*OFF条件欄の条件式 <自己保持無しの場合> 条件式=条件欄の条件式 時間プレース,カウンタプレース,演算プレースの場
合: 条件式=条件欄の条件式 次に,このプレースの入力トランジションがあるかない
かを調べる。無い場合には上記規則1で得られた条件式
がそのまま変換対象となる。しかし,有る場合にはその
全ての入力トランジションに対してそのトランジション
への全ての入力プレースを調べ,その得られたプレース
のデバイス番号を取得する。そして次のような規則で上
記規則1で得られた条件式と結合する。
(Rule 1) In the case of status place and output place: <With self-holding> Conditional expression = (conditional expression in condition column + device number of place)
* OFF Condition column conditional expression <without self-holding> Conditional expression = Conditional column conditional expression For time place, counter place, operation place: Conditional expression = Conditional column conditional expression Next, the input transition of this place is Check if there is one. If there is not, the conditional expression obtained by the above Rule 1 becomes the conversion target as it is. However, if it exists, all the input places to the transition are checked for all the input transitions, and the device numbers of the obtained places are acquired. Then, it is combined with the conditional expression obtained in the above rule 1 according to the following rule.

【0018】(規則2) 図5(a)に示すように変換対象プレースへの入力トラ
ンジションが1つだけ存在する場合: 条件式=b1のデバイス番号*b2のデバイス番号*・
・・*bnのデバイス番号*aの条件式 図5(b)に示すように変換対象プレースへの入力トラ
ンジションが複数存在する場合: 条件式=(b1のデバイス番号+b2のデバイス番号+
・・・+bnのデバイス番号)*aの条件式 このようにして得られた条件式が変換の対象となり,こ
の条件式を解読し,変換するプログラム変換手段7を用
いてリスト形式のプログラムを自動生成する(S7)。
(Rule 2) When there is only one input transition to the conversion target place as shown in FIG. 5A: Conditional expression = device number of b1 * device number of b2 *.
.. Conditional expression of device number * a of * bn When there are multiple input transitions to the conversion target place as shown in FIG. 5B: Conditional expression = (device number of b1 + device number of b2 +
(+ Bn device number) * a conditional expression The conditional expression obtained in this way is the object of conversion, and the list format program is automatically converted by using the program conversion means 7 for decoding and converting this conditional expression. Generate (S7).

【0019】次にこのようにして生成されたリストプロ
グラムにリスト形式シーケンスプログラム作成手段8に
よって出力命令を追加する処理を行う(S8)。出力命
令の追加は次のような規則で行われる。 (規則3) 以下の出力命令を上記で得られたリストプログラムに追
加する。 状態プレース,出力プレースの場合: OUT デバイス番号 時間プレースの場合: OUT デバイス番号 タイム値 カウンタプレースの場合: OUT デバイス番号 カウント値 演算プレースの場合: 演算の欄の条件をそのまま追加 以上の手順で1つのプレースに対するシーケンスプログ
ラムへの変換処理が終了する。その後,全てのプレース
について同様な変換を繰り返していくことによりリスト
形式のシーケンスプログラムを得ることができる(S
9)。尚,生成されたシーケンスプログラムをリスト形
式ではなく,ラダー形式で見たい場合には,得られたリ
スト形式のプログラムをラダー形式のプログラムに変換
するラダー形式シーケンスプログラム作成手段9を用い
て容易に変換することができる(S10,S11)。こ
のようにして得られたリスト形式及び/又はラダー形式
のシーケンスプログラムを表示手段10により表示する
(S12)。
Next, the list format sequence program creating means 8 adds an output command to the list program thus generated (S8). Output commands are added according to the following rules. (Rule 3) The following output command is added to the list program obtained above. For status place and output place: OUT device number For time place: OUT Device number For time value counter place: OUT device number For count value operation place: Add the condition in the operation column as it is The conversion process of the place into the sequence program ends. After that, a list-format sequence program can be obtained by repeating similar conversion for all places (S
9). If the generated sequence program is to be viewed in the ladder format instead of the list format, the obtained list format program can be easily converted by using the ladder format sequence program creating means 9 for converting the program in the ladder format. It can be done (S10, S11). The list format and / or ladder format sequence program thus obtained is displayed by the display means 10 (S12).

【0020】以下この装置1を用いた背景技術を以下に
簡単に示す。この具体例は,図6に示すような1つの治
具1シリンダ内のピストンを動かすものであり,まず出
押しボタンX1を押すと,出側のソレノイドY1に出力
信号が出てピストンが出側方向に動きだし,出側のリミ
ットスイッチX3が入るとピストンが止まる。その際,
タイマでタイムアウトを監視しており,5秒たってもリ
ミットスイッチX3が入らないときにはタイムアウトと
なって,タイムアウトを表示する赤ランプY3が点灯
し,併わせてカウント値の更新と,データセット処理と
が行われるものとする。また,時間内にリミットスイッ
チX3が入って正常に終了した場合には,緑のランプY
4が点灯するものとする。同様に,戻押しボタンX2を
押すと,戻側のソレノイドY2に出力信号が出てピスト
ンが戻り側方向に動き出し,戻り側のリミットスイッチ
X4が入るとピストンが止まる。この際も,タイマでタ
イムアウトを監視しており,5秒たってもリミットスイ
ッチX4が入らないときは,タイムアウトとなって,タ
イムアウトを表示する赤ランプY3が点灯し,併わせて
カウント値の更新とデータセット処理とが行われるもの
とする。また,時間内にリミットスイッチX4が入っ
て,正常に終了した場合には,緑のランプY5が点灯す
るものとする。以上の動作を本装置1の拡張ペトリネッ
トと条件式とで表した例を図7に示す。条件式は本来は
条件記述ダイアログボックス12内に個別に記述されて
いるが,この例では必要なもののみまとめて書いてい
る。また,これらの出力をリスト形式のプログラムに変
換した場合を図8に,ラダー形式のプログラムに変換し
た場合を図9にそれぞれ示した。
The background art using the device 1 will be briefly described below. In this specific example, a piston in one jig and one cylinder as shown in FIG. 6 is moved. First, when the push-out button X1 is pressed, an output signal is output to the solenoid Y1 on the output side and the piston is output. The piston stops when the limit switch X3 on the exit side turns on. that time,
The timer monitors the time-out, and if the limit switch X3 does not turn on after 5 seconds, the time-out occurs, and the red lamp Y3 that indicates the time-out lights up, and the count value is updated and the data set process is performed at the same time. Shall be performed. If the limit switch X3 is turned on within the specified time and the process ends normally, the green lamp Y
4 shall be illuminated. Similarly, when the return push button X2 is pressed, an output signal is output to the return side solenoid Y2 to move the piston in the return side direction, and when the return side limit switch X4 is turned on, the piston stops. Also at this time, the timer is monitoring the time-out, and if the limit switch X4 does not turn on after 5 seconds, the time-out occurs and the red lamp Y3 that indicates the time-out lights up, and the count value is updated at the same time. Data set processing shall be performed. Further, when the limit switch X4 is turned on within the time and the processing is normally completed, the green lamp Y5 is turned on. FIG. 7 shows an example in which the above operation is represented by the extended Petri net of the present apparatus 1 and the conditional expression. Originally, the conditional expressions are individually described in the conditional description dialog box 12, but in this example, only the necessary ones are collectively described. FIG. 8 shows a case where these outputs are converted into a list format program, and FIG. 9 shows a case where they are converted into a ladder format program.

【0021】以上のように,背景技術に係るシーケンス
プログラム作成装置1を用いれば,ペトリネットをシー
ケンス制御で必要な機能を実現するためのプレースを複
数種類用意することにより拡張した拡張ペトリネットを
用いて入力されたシーケンス制御モデルと,プレース毎
に論理式の形で入力された動作,処理等の条件とによ
り,ペトリネットにより制御の流れや,各機器の状態を
視覚的に表現しつつも,従来のラダーによるプログラミ
ングの特徴を十分取り入れた形でプログラムの作成が行
えるというようにお互いの長所をうまくいかした方法に
よりプログラム作成が行え,これを表示することができ
る。しかも,装置1ならば,ペトリネットとラダーとの
対応がうまくとれるため,生成されたシーケンスプログ
ラムは非常に読解が困難であったという問題点も解決さ
れ,生成されるシーケンスプログラムは人間が作成した
ものと同様な品質のものを得ることができる。また,プ
レース毎にダイアログボックスを開いて条件を入力する
という方法をとっているため,画面上で効率よくプログ
ラム作成を行うことができる。ところで,上記背景技術
では,ラダーの一行をペトリネット上で一つのプレース
に対応させることによりペトリネット図を記述してい
き,そのプレースの状態が成立するための条件(ラダー
の接点情報)は論理式を用いて記述している。通常要求
される上記条件は比較的簡単なものであるため,上記
景技術で充分対処できる。しかし,この背景技術では,
論理式で記述された条件がペトリネット上から見えず条
件間の関連が分かりにくいため,条件がさらに複雑にな
れば論理式で表現するのが難しく,また論理式をみても
条件の関連が理解しらい場合も予想される。
As described above, when the sequence program creating apparatus 1 according to the background art is used, the extended Petri net is used by expanding the Petri net by preparing a plurality of types of places for realizing the necessary functions in sequence control. Based on the sequence control model that is input in the form and the conditions such as operation and processing that are input in the form of a logical expression for each place, while visually expressing the control flow and the state of each device by Petri net, Programs can be created and displayed by methods that take advantage of each other's strengths, such as programs can be created in which the features of conventional ladder programming are fully incorporated. Moreover, if the equipment 1, because the correspondence between the Petri net and ladder can be taken well, the sequence program that has been generated has been resolved very problem that the reading has been difficult, the sequence program to be generated is human-created It is possible to obtain the same quality as that obtained. In addition, since the method of opening a dialog box for each place and inputting conditions is adopted, it is possible to efficiently create a program on the screen. By the way, in the background art described above, a Petri net diagram is described by associating one line of a ladder with one place on the Petri net, and a condition for establishing the state of the place (contact of the ladder) Information) is described using a logical formula. Since the conditions normally required is relatively simple, the back
Scenic technology can handle it sufficiently. However, with this background technology ,
Since the conditions described by the logical expressions are not visible on the Petri net and the relationships between the conditions are difficult to understand, it is difficult to express them in logical expressions if the conditions become more complicated, and the relationship of the conditions can be understood by looking at the logical expressions. it is expected the case to Dzu leprosy.

【0022】そこで,発明者らはこのような場合にも対
処すべく,上記拡張ペトリネットを,いわゆる入力プレ
ース等の追加によりさらに拡張したり(第の発明),
いわゆるダミープレースの導入によりさらに拡張したり
(第の発明)することとした。以下,まず本出願に係
の発明について述べる。図10に示すごとく,第
の発明の一実施例(第の実施例)に係るシーケンス
プログラム作成装置51は,画面上でペトリネットを用
いて入力されたシーケンス制御モデルを所定の形式のシ
ーケンスプログラムに変換して表示する点で従来例と同
様である。しかし,本第の実施例では,上記ペトリネ
ットをシーケンス制御に必要な機能を表現するための複
数種類のプレース及び複数種類のアークを含むように拡
張した拡張ペトリネットを用いて入力されたシーケンス
制御モデルを記憶する第2のモデル記憶手段52と,上
記拡張ペトリネットに含まれる各プレースの状態が成立
するようにプレース毎に論理式の形で入力された条件及
びプレースごとに必要な設定情報を記憶する第2の条件
記憶手段53と,上記それぞれ記憶されたシーケンス制
御モデルと条件及び設定情報とに基づいて自動生成され
る拡張条件を所定の形式のシーケンスプログラムに変換
して表示する第2のシーケンスプログラム表示手段54
とを具備する点で従来例と異なる。
Therefore, in order to deal with such a case, the inventors further expand the expanded Petri net by adding a so-called input place or the like ( first invention),
It was decided to further expand ( second invention) by introducing a so-called dummy place. First of all ,
Described for the first invention that. As shown in FIG.
A sequence program creating device 51 according to an embodiment ( first embodiment) of the first invention converts a sequence control model input using a Petri net on a screen into a sequence program of a predetermined format and displays the sequence program. The point is similar to the conventional example. However, in the first embodiment, a sequence input using an extended Petri net that expands the Petri net to include multiple types of places and multiple types of arcs for expressing the functions required for sequence control. Second model storage means 52 for storing a control model, conditions input in the form of a logical expression for each place so that the state of each place included in the extended Petri net is established, and setting information necessary for each place A second condition storing means 53 for storing the second condition, and a second condition for converting and displaying the extended condition automatically generated on the basis of the sequence control model and the condition and the setting information, which are respectively stored, into a sequence program of a predetermined format. Sequence program display means 54
It is different from the conventional example in that

【0023】さらに,上記第2のモデル記憶手段52
が,上記シーケンス制御の対象機器の制御状態を表す状
態プレース,上記シーケンス制御を行うシーケンサのタ
イマー機能を表す時間プレース,上記シーケンス制御を
行うシーケンサのカウンタ機能を表すカウンタプレー
ス,上記シーケンサからの出力を表す出力プレース,上
記シーケンサの各種演算機能を表す演算プレース,上記
シーケンサへの入力を表す入力プレース,他のプレース
のオン・オフ情報を参照する参照プレースの全部又は一
部,あるいはペトリネットを階層的に記述する階層プレ
ース,あるいは上記シーケンサのa接点接続を表すa接
点接続用アーク,上記シーケンサのb接点接続を表すb
接点接続用アーク,上記シーケンサの自己保持回路を表
す自己保持解除用アークの全部又は一部を含む拡張ペト
リネットを用いて入力されたシーケンス制御モデルを記
憶することとしてもよい。さらに,上記第2の条件記憶
手段53が画面上で選択されるプレースに応じて開かれ
るダイアログボックスを構成し,このダイアログボック
スの中に論理式の形で入力された条件及びプレースごと
に必要な設定情報を記憶することとしてもよい。さら
に,上記プレースごとに必要な設定情報が,ラベル,コ
メント,デバイス番号,演算命令,当該プレースへの入
出力リスト,タイマーの設定値及びカウンタの設定値の
全部又は一部を含むこととしてもよい。
Further, the second model storage means 52
, A status place showing the control state of the target device of the sequence control, a time place showing the timer function of the sequencer performing the sequence control, a counter place showing the counter function of the sequencer performing the sequence control, and an output from the sequencer. All or part of the output place that represents, the operation place that represents the various calculation functions of the sequencer, the input place that represents the input to the sequencer, the reference place that refers to the on / off information of other places, or the Petri net hierarchically The hierarchical place described in 1), or the a contact connection arc that represents the a contact connection of the above sequencer, and the b that represents the b contact connection of the above sequencer.
It is also possible to store the sequence control model input using an extended Petri net that includes all or part of the contact connection arc and the self-hold release arc that represents the self-hold circuit of the sequencer. Furthermore, the second condition storage means 53 constitutes a dialog box opened according to the place selected on the screen, and the condition and place that are input in the form of a logical expression in this dialog box are necessary for each place. The setting information may be stored. Further, the setting information required for each place may include a label, a comment, a device number, a calculation instruction, an input / output list for the place, a timer setting value, and a counter setting value, in whole or in part. .

【0024】さらに,上記第2のシーケンスプログラム
表示手段54が,上記シーケンス制御モデルからシーケ
ンサのデバイス番号を割り付けるべきプレースを順次抽
出するデバイス番号割り付けプレース抽出手段55と,
上記抽出されたプレースに上記シーケンサのデバイス番
号を所定のルールにより自動的に割り付けるデバイス番
号自動割り付け手段56と,上記シーケンス制御モデル
から上記シーケンスプログラムに変換するプレースを上
記自動的に割り付けられたデバイス番号又は別途指示さ
れたデバイス番号に従い順次検出するプレース検出手段
57と,上記検出されたプレースに対応する条件をトラ
ンジションを介して結合された上流側のプレースにまで
適用範囲を拡張することによって,上記拡張条件を自動
生成する拡張条件生成手段58と,上記生成された拡張
条件をリスト形式のプログラムに変換するプログラム変
換手段59と,上記変換されたリスト形式のプログラム
に上記検出されたプレースの種類に応じて出力命令を付
加することによりリスト形式のシーケンスプログラムを
作成するリスト形式シーケンスプログラム作成手段60
と,上記作成されたリスト形式のシーケンスプログラム
をラダー形式のプログラムに変換することによりラダー
形式のシーケンスプログラムを作成するラダー形式シー
ケンスプログラム作成手段61と,上記作成されたリス
ト形式及び/又はラダー形式のシーケンスプログラムを
表示する表示手段62とを具備してもよい。これらの点
でも従来例と異なる。
Further, the second sequence program display means 54 includes a device number allocation place extraction means 55 for sequentially extracting the places to which the device numbers of the sequencer are to be allocated from the sequence control model,
A device number automatic assigning means 56 for automatically assigning the device number of the sequencer to the extracted place according to a predetermined rule, and a device number for automatically assigning a place for converting the sequence control model to the sequence program. Alternatively, the above-mentioned expansion is performed by expanding the applicable range to the place detection means 57 that sequentially detects according to the separately designated device number and the condition corresponding to the detected place to the upstream place connected through the transition. Depending on the type of the detected place in the converted list format program, the extended condition generating means 58 for automatically generating the condition, the program converting means 59 for converting the generated extended condition into a list format program. By adding an output command List to create a list format of the sequence program format sequence program creating means 60
And a ladder format sequence program creating means 61 for creating a ladder format sequence program by converting the created list format sequence program into a ladder format program, and the created list format and / or ladder format Display means 62 for displaying the sequence program may be provided. These points are also different from the conventional example.

【0025】以下,この装置51についてさらに詳しく
述べる。図11は,第2のモデル記憶手段52と第2の
条件記憶手段53にそれぞれ記憶される入力データの画
面例を示す。この装置51のシステムでは,パーソナル
コンピュータのWindows 上に構築されており,63がペ
トリネット入力エディタを,64が条件を記述するため
の条件記述ダイアログボックスをそれぞれ示している。
尚,このシステムでは各プレースをダブルクリックする
ことにより,そのプレースに対応した条件記述ダイアロ
グボックスが開くようになっており,ペトリネット図の
記述と条件の記述とが並行して行える。ペトリネット入
力エディタ63では,アイコン65より必要なプレース
の種類を選択して,マウス(不図示)によりドラッグし
てくることによって入力できるようになっている。アイ
コン65は図11中の左から,入力プレース,出力プレ
ース,状態プレース,時間プレース,カウンタプレー
ス,演算プレース,参照プレース,階層プレース,トラ
ンジションをそれぞれ表している。この内,入力プレー
スは,シーケンサの入力信号を表し,図11の画面中の
三角形で示された出側ボタン等がその例である。出力プ
レース,状態プレース,時間プレース,カウンタプレー
ス及び演算プレースは前記背景技術と同様であるので,
その説明はここでは割愛する。参照プレースは,任意の
実体となるプレースのオン・オフ情報を参照し,図11
の画面中の楔形で示された治具1出限界等がその例であ
る。即ち,あるラベルの実体となるプレースは画面中一
つしかなく,そのプレースの情報を他のプレース等に使
いたい場合は,通常そのプレースと他のプレース等とを
アークで接続する。しかし,アークが多くなれば,アー
ク同士が交錯等して画面が見づらくなる。そこで,参照
プレースでそのプレースの代用をさせて,画面上からア
ークを省略することにより画面を見やすくすることがで
きる(図12参照)。
The device 51 will be described in more detail below. FIG. 11 shows a screen example of input data stored in the second model storage means 52 and the second condition storage means 53, respectively. The system of this device 51 is constructed on a personal computer Windows, 63 indicates a Petri net input editor, and 64 indicates a condition description dialog box for describing conditions.
In this system, by double-clicking on each place, the condition description dialog box corresponding to that place is opened, and the Petri net diagram description and the condition description can be performed in parallel. In the Petri net input editor 63, a necessary place type is selected from the icon 65 and can be input by dragging it with a mouse (not shown). The icon 65 represents an input place, an output place, a status place, a time place, a counter place, a calculation place, a reference place, a hierarchical place, and a transition from the left in FIG. Among these, the input place represents an input signal of the sequencer, and an example thereof is an output side button indicated by a triangle in the screen of FIG. The output place, the status place, the time place, the counter place, and the operation place are the same as those in the background art .
The explanation is omitted here. The reference place refers to on / off information of a place that is an arbitrary entity, and is shown in FIG.
An example thereof is the jig 1 protrusion limit, which is indicated by a wedge in the screen. That is, there is only one place that is the substance of a certain label on the screen, and when it is desired to use the information of that place for another place, etc., that place is usually connected to another place by an arc. However, if the number of arcs increases, the arcs will intersect and the screen will be difficult to see. Therefore, it is possible to make the screen easier to see by substituting the place in the reference place and omitting the arc from the screen (see FIG. 12).

【0026】階層プレースは,ペトリネットを階層的に
記述する。即ち,画面中のプレース等が多く全体構成が
見づらい場合や,一定の部分構成がくり返されている場
合には,その部分構成を纏めて例えば「階層1」と表わ
すことにより,全体構成を見やすく,また入力の手間を
省略することができる。「階層1」の内容はメインウイ
ンドウ中の当該プレースをクリックすることにより,サ
ブウインドウ上に表示できる(図13参照)。また,ア
ークはメニュー(不図示)より,a接点接続用アーク,
b接点接続用アーク,自己保持解除用アークをユーザが
選択して使い分けることができ,それぞれのアークは,
図14に示すような機能を有する。即ち,図14(1)
に示すa接点接続用アークでは,プレースaがオン状態
となるとプレースbがオン状態となる。図14(2)に
示すb接点接続用アークでは,プレースaがオフ状態と
なるとプレースbがオン状態となる。図14(3)に示
す自己保持解除用アークでは,プレースaがオン状態
(プレースb,cはオフ状態)となるとプレースdがオ
ン状態となり,自己保持状態となる。その後プレースb
又はcがオン状態となると自己保持状態は解除される。
The hierarchical place describes the Petri net hierarchically. That is, when there are many places on the screen and the entire structure is difficult to see, or when a certain partial structure is repeated, the partial structure is collectively expressed as, for example, “tier 1” to make the entire structure easy to see. , Also, the trouble of inputting can be omitted. The contents of "Level 1" can be displayed in the sub-window by clicking the place in the main window (see FIG. 13). In addition, the arc is from the menu (not shown)
The user can select and use the b-contact connecting arc and the self-holding releasing arc.
It has a function as shown in FIG. That is, FIG. 14 (1)
In the arc for connecting a contact shown in (1), the place b is turned on when the place a is turned on. In the b-contact connecting arc shown in FIG. 14 (2), when the place a is turned off, the place b is turned on. In the self-holding release arc shown in FIG. 14C, when the place a is in the on state (places b and c are in the off state), the place d is in the on state and the self-holding state is set. Then place b
Alternatively, when c is turned on, the self-holding state is released.

【0027】各プレースにはコメント情報を表すラベル
を設定することができ,そのプレースの持つ意味が表現
される。また,シーケンスプログラムへの変換時には,
各プレースに対してデバイス番号(M0,T0等)が自
動的に割り付けられる。これは,シーケンサにおける入
出力接点番号や,内部リレーに割り当てられている番号
と対応している。なお,このデバイス番号は自動的に割
り付ける代わりに必要に応じてユーザが指定することも
できる。第1の実施例では,このように,上記背景技術
における拡張ペトリネットをさらに拡張しており,これ
によりプレースが成立するための条件(ラダーの接点情
報)まで含めて,全てをペトリネットで記述することを
可能とした。従って,条件間の関連がペトリネット上で
視覚的に表現でき,また,プログラムの作成も一層容易
になる。また,上記背景技術と同じく,これまでラダー
図による開発に慣れ親しんだ人でもラダー図と同じよう
な感覚,手順で違和感なくこのシステムを用いてプログ
ラムを作成できる。また,第2の実施例の拡張ペトリネ
ットを用いれば,単に機械の動作の流れを表すだけでは
なくて,各機器の状態やタイマーや出力の状態などもペ
トリネット上で表現できる。なおプレース,アークの種
類は本第の実施例で表示された種類に限定されるもの
ではなく,新たに追加していくことも可能である。
A label representing comment information can be set in each place, and the meaning of the place is expressed. Also, when converting to a sequence program,
Device numbers (M0, T0, etc.) are automatically assigned to each place. This corresponds to the input / output contact number in the programmable controller and the number assigned to the internal relay. Note that this device number can be specified by the user as needed instead of being assigned automatically. In the first embodiment, the extended Petri net in the background art is further extended in this way, and all the conditions including the condition for establishing a place (contact information of the ladder) are achieved. It became possible to describe by Petri net. Therefore, the relationship between conditions can be visually expressed on the Petri net, and the program can be created more easily. Also, as with the background art described above, even a person who has become familiar with development using ladder diagrams can create programs using this system with the same feeling and procedure as ladder diagrams. Further, by using the extended Petri net of the second embodiment, not only the flow of machine operation but also the state of each device and the state of timers and outputs can be expressed on the Petri net. The types of places and arcs are not limited to the types displayed in the first embodiment, and new types can be added.

【0028】次に本第の実施例における条件記述ダイ
アログボックスの概略図を図15に示す。このダイアロ
グボックスは,プレースの種類に応じて形が違ってお
り,それぞれのプレースに必要な情報が入力できる。こ
こでは,基本的にはペトリネットで全ての条件を記述す
るため,論理式を用いて条件を記述する必要は無いが,
条件が簡単な場合やプレースの数を減らしたい場合に
は,上記背景技術と同じく論理式の形で記述することも
可能である。なお,条件記述ダイアログボックスの中身
は図15の例に限られるものではなく,必要に応じて種
々の情報を入力できるように改良してもよい。次に,第
2のシーケンスプログラム表示手段54におけるシーケ
ンスプログラムの自動生成について,その処理の流れを
図16を参照しつつ,ステップS51,S52,…順に
説明する。
Next, FIG. 15 shows a schematic diagram of the condition description dialog box in the first embodiment. This dialog box has different shapes depending on the type of place, and you can enter the necessary information for each place. Here, basically all conditions are described by Petri nets, so it is not necessary to describe the conditions using logical expressions,
If the conditions are simple or if you want to reduce the number of places, it is possible to describe in the form of a logical expression as in the background art above. The content of the condition description dialog box is not limited to the example of FIG. 15, and may be improved so that various information can be input as necessary. Next, the automatic generation of the sequence program in the second sequence program display means 54 will be described in the order of steps S51, S52, ... With reference to FIG.

【0029】まず,デバイス番号割り付けプレース抽出
手段55は,ペトリネット図のネット構造をもとに,デ
バイス番号を割り付けるプレースを自動的に選択してい
く(S51)。この際,入力,出力プレースは原則的に
ユーザが番号を指定する必要があるため省かれ,また,
演算,参照,階層プレースはその性質上デバイス番号を
割り付ける必要はない。そうして選択されたプレースに
対してデバイス番号自動割り付け手段56によりデバイ
ス番号が所定のルールに従い(例えば選択された順番
に)自動的に割り付けられていく(S52,S53)。
上記背景技術では,全てのデバイス番号をユーザが手動
で割り付ける必要があったが,この方法を用いることに
より,その手間を軽減することができる。尚,上記所定
のルールはユーザが任意に設定可能である。次にペトリ
ネット図のネット構造をもとに変換していくプレースの
順番を決定する(S54)。この順番はプレース検出手
段57によりプレースをアークに沿って探索していくこ
とにより決定されるが,出力プレースはラダーの慣例に
従って最後にまとめて変換される。そして,最初のプレ
ースに関して,そのプレースの条件記述ダイアログボッ
クスに記述された条件を取得する(S55)。この条件
記述ダイアログボックスは図15で示したようにプレー
スの種類によって内容が異なっており,それぞれ拡張条
件生成手段58により以下の規則で変換のもとになる条
件式を自動的に作成する(S56〜S59)。
First, the device number allocation place extraction means 55 automatically selects the place to which the device number is allocated based on the net structure of the Petri net diagram (S51). In this case, the input and output places are omitted because the user basically needs to specify the number.
Due to the nature of operations, references, and hierarchical places, it is not necessary to assign device numbers. The device numbers are automatically allocated to the selected places by the device number automatic allocation means 56 according to a predetermined rule (for example, in the selected order) (S52, S53).
In the background art described above, it was necessary for the user to manually assign all device numbers, but by using this method, the labor can be reduced. The predetermined rule can be arbitrarily set by the user. Next, the order of places to be converted is determined based on the net structure of the Petri net diagram (S54). This order is determined by searching the places along the arc by the place detecting means 57, but the output places are collectively converted at the end according to the convention of the ladder. Then, for the first place, the condition described in the condition description dialog box of the place is acquired (S55). As shown in FIG. 15, the contents of this conditional description dialog box differ depending on the type of place, and the extended conditional generation means 58 automatically creates the conditional expression which is the basis of conversion by the following rules (S56). ~ S59).

【0030】(規則2−1) 状態,出力,時間,カウンタ,演算プレースの場合: 条件式=条件欄の条件式 (その他のプレースは条件を持たない。) 次に,このプレースへの入力トランジションがあるかな
いかを調べる。入力トランジションが無い場合には上記
規則2−1で得られた条件式がそのまま変換の対象とな
る。しかし,入力トランジションが有る場合にはその全
てのトランジションに対してそのトランジションへの全
ての入力プレースを調べ,その得られたプレースのデバ
イス番号を取得する。そして,以下のような上記背景技
と同様の規則で,上記規則2−1で得られた条件式と
結合する。 (規則2−2) 前記図5(a)に示すように変換対象プレースへの入力
トランジションが1つだけ存在する場合: 条件式=b1のデバイス番号*b2のデバイス番号*・
・・*bnのデバイス番号*aの条件式 前記図5(b)に示すように変換対象プレースへの入力
トランジションが複数存在する場合: 条件式=(b1のデバイス番号+b2のデバイス番号+
・・・+bnのデバイス番号)*aの条件式
(Rule 2-1) State, output, time, counter, operation place: Conditional expression = conditional expression in condition column (other places have no condition.) Next, input transition to this place Check if there is. When there is no input transition, the conditional expression obtained in the above Rule 2-1 is directly subjected to conversion. However, when there is an input transition, all the input places to the transition are checked for all the transitions, and the device number of the obtained place is acquired. And the above background techniques as follows
It is combined with the conditional expression obtained in the above Rule 2-1 by the same rule as the above. (Rule 2-2) When there is only one input transition to the conversion target place as shown in FIG. 5A: Conditional expression = device number of b1 * device number of b2 *.
.. Conditional expression of device number * a of * bn When there are multiple input transitions to the conversion target place as shown in FIG. 5B: Conditional expression = (device number of b1 + device number of b2 +
... + bn device number) * a conditional expression

【0031】ここで,状態プレースと出力プレースとに
は自己保持状態を設定することが可能である。自己保持
は,図14(3)に示したように自己保持解除アークを
用いて表され,以下の規則で変換される。 (規則2−3) 自己保持の場合: 条件式=(dの条件+dのデバイス番号)*dの自己保
持解除条件 このようにして得られた条件式が変換の対象となり,こ
の条件式を解読し,変換するプログラム変換手段59を
用いてリスト形式のプログラムを自動生成する(S6
0)。
Here, it is possible to set the self-holding state in the status place and the output place. The self-holding is expressed by using the self-holding release arc as shown in FIG. 14 (3), and converted by the following rules. (Rule 2-3) In the case of self-holding: Conditional expression = (condition of d + device number of d) * self-holding release condition of d The conditional expression thus obtained becomes the target of conversion, and this conditional expression is decoded. Then, the program in the list format is automatically generated using the program converting means 59 for converting (S6).
0).

【0032】次にこのようにして生成されたリストプロ
グラムにリスト形式シーケンスプログラム作成手段60
によって出力命令を追加する処理を行う(S61)。出
力命令の追加は次のような上記背景技術と同様の規則で
行われる。 (規則3) 以下の出力命令を上記で得られたリストプログラムに追
加する。 状態プレース,出力プレースの場合: OUT デバイス番号 時間プレースの場合: OUT デバイス番号 タイム値 カウンタプレースの場合: OUT デバイス番号 カウント値 演算プレースの場合: 演算の欄の条件をそのまま追加 以上の手順で1つのプレースに対するシーケンスプログ
ラムへの変換処理が終了する。その後,全てのプレース
について同様な変換を繰り返していくことによりリスト
形式のシーケンスプログラムを得ることができる(S6
2)。尚,生成されたシーケンスプログラムをリスト形
式ではなく,ラダー形式で見たい場合には,得られたリ
スト形式のプログラムをラダー形式のプログラムに変換
するラダー形式シーケンスプログラム作成手段61を用
いて容易に変換することができる(S63,S64)。
Next, the list format sequence program creating means 60 is added to the list program thus created.
A process for adding an output command is performed by (S61). The output command is added according to the same rule as the above background art . (Rule 3) The following output command is added to the list program obtained above. For status place and output place: OUT device number For time place: OUT Device number For time value counter place: OUT device number For count value operation place: Add the condition in the operation column as it is The conversion process of the place into the sequence program ends. After that, by repeating the same conversion for all the places, a list format sequence program can be obtained (S6).
2). If the generated sequence program is to be viewed in the ladder format instead of the list format, the obtained list format program is easily converted by using the ladder format sequence program creating means 61 for converting the program in the ladder format. Can be performed (S63, S64).

【0033】このようにして得られたリスト形式及び/
又はラダー形式のシーケンスプログラムを表示手段62
により表示する(S65)。以上述べた第の実施例
を,前記背景技術と同じく前記図6の例に対して適用し
た結果を図17に示した。また,これらを上記第2の実
施例によってリスト形式のプログラムに変換した結果,
及びラダー形式のプログラムに変換した結果は,それぞ
れ前記図8及び図9と同様のものとなる。以上のよう
に,本第の実施例によれば,ペトリネットによる仕様
記述能力の向上により,論理式による条件記述を用いな
くても,ペトリネットだけで仕様を記述できるようにな
った。これにより,条件間の関連がペトリネット上で視
覚的に表現でき,また,プログラムの作成も容易になっ
た。さらに,プレースにデバイス番号を自動的に割り付
ける機能の追加によりユーザがデバイス番号を割り付け
る手間が軽減された。
The list format thus obtained and /
Alternatively, the ladder-type sequence program is displayed on the display unit 62.
Is displayed by (S65). FIG. 17 shows the result of applying the above-described first embodiment to the example of FIG. 6 as in the background art . Moreover, as a result of converting these into a list format program by the second embodiment,
The result of conversion into the program of the ladder format is the same as that of FIG. 8 and FIG. 9, respectively. As described above, according to the first embodiment, the specification description ability by the Petri net is improved, so that the specification can be described only by the Petri net without using the conditional description by the logical expression. As a result, the relationship between conditions can be visually expressed on the Petri net and the program can be created easily. Furthermore, the addition of a function that automatically assigns device numbers to places has reduced the time and effort for assigning device numbers by the user.

【0034】引き続いて第の発明について述べる。
尚,本第の発明は,前記背景技術及びの実施例に
係る装置1,51のいずれにも適用可能であるが,以下
では装置51に適用する場合(説明の便宜上装置71と
する)を例示する。例えば図10に示すごとく,第
発明の一実施例(第の実施例)に係るシーケンスプロ
グラム作成装置71は,画面上でペトリネットを用いて
入力されたシーケンス制御モデルを所定の形式のシーケ
ンスプログラムに変換して表示する点で従来例と同様で
ある。しかし,本第の実施例では,上記ペトリネット
が,上記シーケンス制御モデル中の上流側と下流側プレ
ースとの間にのみ介在しえて上記シーケンスプログラム
には変換されることのないダミー機能を表すダミープレ
ースを含む点で従来例と異なる。
Next, the second invention will be described.
The second invention is applicable to both the background art and the devices 1 and 51 according to the first embodiment, but in the following, when applied to the device 51 (for convenience of explanation, it will be referred to as device 71). ) Is illustrated. For example as shown in FIG. 10, one embodiment of the second invention (second embodiment) in the sequence program creating device 71 according the sequence control model that is input with Petri nets on the screen a predetermined format This is the same as the conventional example in that it is converted into a sequence program and displayed. However, in the second embodiment, the Petri net represents a dummy function that is interposed only between the upstream side and the downstream side in the sequence control model and is not converted into the sequence program. It differs from the conventional example in that it includes a dummy place.

【0035】以下,本第の実施例の基本原理を前記第
2の実施例のそれと比較することにより説明する。例え
ば図18において,X1,X2,X3をいずれもプレー
スとすると,上記第2の実施例のペトリネットで各プレ
ースの条件間の全体の関連である(X1またはX2)か
つX3;を表現し,リストプログラムに変換すると図1
8(1)に示すとおりとなる。即ち,2つの部分的な関
連(a),(b)で表現される。この場合,(a),
(b)の合計である補助リレーの数は2個(M1,M
2),リストプログラムのステップ数は6ステップとな
る。次に,上記(X1またはX2)かつX3;を本第3
の実施例装置71を用いてペトリネット表現し,リスト
プログラムに変換すると図18(2)に示すとおりとな
る。即ち,1つの全体の関連で表現される。この場合,
補助リレーは1個(M1),リストプログラムのステッ
プ数は4ステップとなり,上記第2の実施例のペトリネ
ットのみを用いた場合に比べて補助リレーは1個,ステ
ップ数は2ステップだけ減少する。
[0035] Hereinafter, will be explained by comparing the basic principle of the second embodiment and that of the second embodiment. For example, in FIG. 18, if X1, X2, and X3 are all places, the Petri net of the second embodiment expresses the overall relation (X1 or X2) between the conditions of each place and X3; Figure 1 when converted to a list program
This is as shown in 8 (1). That is, it is expressed by two partial relationships (a) and (b). In this case, (a),
The number of auxiliary relays, which is the sum of (b), is two (M1, M
2) The number of steps in the list program is 6. Next, the above (X1 or X2) and X3;
18 (2) when Petri net representation is performed by using the apparatus 71 of FIG. That is, it is expressed by one whole relation. in this case,
There is one auxiliary relay (M1) and the number of steps of the list program is four steps, which is one auxiliary relay and the number of steps is reduced by two steps as compared with the case of using only the Petri net of the second embodiment. .

【0036】これは,画面上のシーケンス制御モデル中
にダミープレースを介在させたためである。このダミー
プレースは,リストプログラム上は全く無用のものであ
るが,画面上でのみ条件間の関連を視覚的に把握しやす
くするといういわば実体のないプレースである。次に図
19に示すようなダミープレースを含むペトリネットで
表現したシーケンス制御モデルの変換処理について詳述
する。この場合,上記第2の実施例におけるステップ6
0中の(規則2−3)に以下の規則が追加される。その
他の処理は上記第2の実施例における各ステップと同様
であるので,それらの説明はここでは割愛する。 (規則2−4) ダミープレースの場合: 条件式は持たない。つまり変換操作は行わない。 (規則2−5) あるプレース(変換対象a)への入力トランジションの
入力プレースの中にダミープレース(D)がある場合: ダミープレース(D)への全ての入力トランジションに
対してそのトランジションへの全ての入力プレースを調
べ,そのすべての入力プレースが変換対象のプレースa
への入力トランジションに直接つながっているとして前
記(規則2−1),(規則2−2),(規則2−3)に
のっとり条件式を作り出し変換を行う。
This is because the dummy place is interposed in the sequence control model on the screen. Although this dummy place is completely useless in the list program, it is a so-called insubstantial place that makes it easy to visually understand the relationship between conditions only on the screen. Next, the conversion process of the sequence control model expressed by a Petri net including a dummy place as shown in FIG. 19 will be described in detail. In this case, step 6 in the second embodiment described above.
The following rules are added to (Rule 2-3) in 0. Other processes are the same as the steps in the second embodiment, and therefore their explanations are omitted here. (Rule 2-4) In the case of dummy place: Does not have a conditional expression. That is, no conversion operation is performed. (Rule 2-5) When there is a dummy place (D) in the input places of the input transition to a certain place (conversion target a): For all the input transitions to the dummy place (D), Examine all the input places, and all the input places are the places a to be converted.
It is directly connected to the input transition to (1) to (2), (2) and (3), and a conversion is performed by creating a conditional expression.

【0037】以下,本第の実施例による効果を確認す
べく,より複雑な条件設定を行った。 即ち,プレースの条件間の全体の関連である 〔{(X1またはX2)かつ(X3またはX4)}また
はX5〕かつX6 を第の実施例のトリネットで表現し,リストプログラ
ムに変換すると図20のとおりとなる。これに対し,本
の実施例の拡張ペトリネットで表現し,リストプロ
グラムに変換すると図21のとおりとなり,第3の実施
例の効果が顕著になることが確認できた。以上のよう
に,本第の実施例によれば,ペトリネットによる仕様
記述能力がさらに向上し,条件間の関連がペトリネット
上で簡単に表現され,シーケンスプログラムの作成がよ
り一層容易となる。また,ペトリネットからラダー図及
びリストプログラムに変換する際に,補助リレーの数,
ステップの数を大幅に減ずることができる。
In the following, more complicated condition settings were made in order to confirm the effect of the second embodiment. That is, the whole relation between the place conditions [{(X1 or X2) and (X3 or X4)} or X5] and X6 is expressed by the trinet of the first embodiment and converted into a list program. Twenty. On the other hand, when it is expressed by the extended Petri net of the second embodiment and converted into a list program, the result is as shown in FIG. 21, and it was confirmed that the effect of the third embodiment becomes remarkable. As described above, according to the second embodiment, the specification description ability by the Petri net is further improved, the relation between the conditions is easily expressed on the Petri net, and the sequence program is further easily created. . Also, when converting from Petri nets to ladder diagrams and list programs, the number of auxiliary relays,
The number of steps can be significantly reduced.

【0038】[0038]

【発明の効果】本発明(第1,第2の発明)に係るシー
ケンスプログラム作成装置は,上記したように構成され
ているため,以下の効果を奏する。 (1 )また,上記拡張されたペトリネットを複数種類の
プレース及び複数種類のアークの追加によりさらに拡張
することによってペトリネットによる仕様記述能力が向
上し,条件間の関連がペトリネット上で簡単に表現さ
れ,シーケンスプログラムの作成が一層容易となる。さ
らに,プレースにデバイス番号を自動的に割り付ける機
能の追加によりユーザがデバイス番号を割り付ける手間
が軽減される(第の発明)。 ()さらに,ペトリネットをダミープレースの追加に
より拡張することによって,ペトリネットによる仕様記
述能力がさらに向上し,条件間の関連がペトリネット上
で簡単に表現され,シーケンスプログラムの作成がより
一層容易となる。また,ペトリネットからラダー図及び
リストプログラムに変換する際に,補助リレーの数,ス
テップ数を大幅に減ずることができる(第の発明)。
The sequence program creating device according to the present invention (first and second inventions) has the following effects because it is configured as described above . (1 ) Further, by further expanding the expanded Petri net by adding plural kinds of places and plural kinds of arcs, the specification description ability by the Petri net is improved, and the relation between conditions can be easily made on the Petri net. This makes it easier to create a sequence program. Further, the addition of the function of automatically allocating the device number to the place saves the user the trouble of allocating the device number ( first invention). ( 2 ) Furthermore, by extending the Petri net by adding dummy places, the specification description ability by the Petri net is further improved, the relation between conditions is easily expressed on the Petri net, and the creation of the sequence program is further enhanced. It will be easy. Also, when converting from Petri nets to ladder diagrams and list programs, the number of auxiliary relays and the number of steps can be significantly reduced ( second invention).

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

【図1】 背景技術に係るシーケンスプログラム作成装
置1の概略構成を示すブロック図。
FIG. 1 is a block diagram showing a schematic configuration of a sequence program creation device 1 according to a background art .

【図2】 シーケンスプログラム作成装置1の画面例を
示す図。
FIG. 2 is a diagram showing an example of a screen of the sequence program creating device 1.

【図3】 装置1による条件記述ダイアログボックスの
概念図。
FIG. 3 is a conceptual diagram of a condition description dialog box by the device 1.

【図4】 装置1によるシーケンスプログラム作成手順
を示すフロー図。
FIG. 4 is a flowchart showing a sequence program creation procedure by the device 1.

【図5】 装置1による拡張条件生成の様子を示す説明
図。
FIG. 5 is an explanatory diagram showing how extended conditions are generated by the device 1.

【図6】 シーケンス制御機構の例図。FIG. 6 is an example diagram of a sequence control mechanism.

【図7】 装置1による拡張ペトリネットと条件の例
図。
FIG. 7 is an example diagram of an extended Petri net and conditions by the device 1.

【図8】 リスト形式シーケンスプログラムの例図。FIG. 8 is an example diagram of a list format sequence program.

【図9】 ラダー形式シーケンスプログラムの例図。FIG. 9 is an example diagram of a ladder format sequence program.

【図10】 第の発明の一実施例(第の実施例)に
係るシーケンスプログラム作成装置51の概略構成を示
すブロック図。
Figure 10 is a block diagram showing a schematic configuration of a sequence program creating apparatus 51 according to an embodiment (first embodiment) of the first invention.

【図11】 シーケンスプログラム作成装置51の画面
例を示す図。
FIG. 11 is a diagram showing an example of a screen of the sequence program creating device 51.

【図12】 参照プレースの機能説明図。FIG. 12 is a functional explanatory diagram of a reference place.

【図13】 階層プレースの機能説明図。FIG. 13 is a functional explanatory diagram of a hierarchical place.

【図14】 各種アークの機能説明図。FIG. 14 is a functional explanatory diagram of various arcs.

【図15】 装置51の条件記述ダイアログボックスの
概念図。
FIG. 15 is a conceptual diagram of a condition description dialog box of the device 51.

【図16】 装置51によるシーケンスプログラム作成
手順を示すフロー図。
FIG. 16 is a flowchart showing a sequence program creation procedure by the device 51.

【図17】 装置51による拡張ペトリネットと条件の
例図。
FIG. 17 is an example diagram of an extended Petri net and conditions by the device 51.

【図18】 第2の発明の一実施例(第2の実施例)に
係るシーケンスプログラム作成装置71の基本構成を示
す説明図。
FIG. 18 is an explanatory diagram showing the basic configuration of a sequence program creation device 71 according to an embodiment (second embodiment) of the second invention.

【図19】 装置71によるシーケンスプログラム作成
例を示す説明図。
FIG. 19 is an explanatory diagram showing an example of creating a sequence program by the device 71.

【図20】 装置51による他のシーケンスプログラム
作成例を示す説明図。
20 is an explanatory diagram showing another example of creating a sequence program by the device 51. FIG.

【図21】 装置71による他のシーケンスプログラム
作成例を示す説明図。
FIG. 21 is an explanatory diagram showing another example of creating a sequence program by the device 71.

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

1…シーケンスプログラム作成装置 2…第1のモデル記憶手段 3…第1の条件記憶手段 4…第1のシーケンスプログラム表示手段 5…プレース検出手段 6…拡張条件生成手段 7…プログラム変換手段 8…リスト形式シーケンスプログラム作成手段 9…ラダー形式シーケンスプログラム作成手段 10…表示手段 51,71…シーケンスプログラム作成装置 52…第2のモデル記憶手段 53…第2の条件記憶手段 54…第2のシーケンスプログラム表示手段 55…デバイス番号割り付けプレース抽出手段 56…デバイス番号自動割り付け手段 57…プレース検出手段 58…拡張条件生成手段 59…プログラム変換手段 60…リスト形式シーケンスプログラム作成手段 61…ラダー形式シーケンスプログラム作成手段 62…表示手段 1. Sequence program creation device 2 ... First model storage means 3 ... First condition storage means 4 ... First sequence program display means 5: Place detection means 6 ... Extended condition generating means 7 ... Program conversion means 8 ... List format sequence program creating means 9 ... Ladder format sequence program creation means 10 ... Display means 51, 71 ... Sequence program creation device 52 ... Second model storage means 53 ... Second condition storage means 54 ... Second sequence program display means 55 ... Device number allocation place extraction means 56 ... Device number automatic allocation means 57 ... Place detection means 58 ... Extended condition generating means 59 ... Program conversion means 60 ... List format sequence program creating means 61 ... Ladder format sequence program creating means 62 ... Display means

───────────────────────────────────────────────────── フロントページの続き (72)発明者 田村 直樹 兵庫県神戸市西区高塚台1丁目5番5号 株式会社神戸製鋼所 神戸総合技術研 究所内 (72)発明者 高橋 哲也 兵庫県神戸市西区高塚台1丁目5番5号 株式会社神戸製鋼所 神戸総合技術研 究所内 (72)発明者 森田 孝司 兵庫県神戸市西区高塚台1丁目5番5号 株式会社神戸製鋼所 神戸総合技術研 究所内 (72)発明者 日照 正幸 愛知県豊橋市三弥町字中原15番1号 株 式会社神戸製鋼所 豊橋工場内 (72)発明者 奥村 治男 愛知県豊橋市三弥町字中原15番1号 株 式会社神戸製鋼所 豊橋工場内 (56)参考文献 特開 平4−18605(JP,A) 特開 昭64−38804(JP,A) 特開 昭61−233803(JP,A) 特開 平7−72920(JP,A) (58)調査した分野(Int.Cl.7,DB名) G05B 19/05 G05B 23/02 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Naoki Tamura 1-5-5 Takatsukadai, Nishi-ku, Kobe City, Hyogo Prefecture Kobe Steel Works, Ltd. Kobe Research Institute (72) Inventor Tetsuya Takahashi Nishi-ku, Kobe City, Hyogo Prefecture 1-5-5 Takatsukadai Kobe Steel Co., Ltd., Kobe Research Laboratory (72) Inventor, Takashi Morita 1-5-5 Takatsukadai, Nishi-ku, Kobe, Hyogo Kobe Steel Works, Kobe Research Laboratory (72) Inventor Masayuki Hisho 15-1 Nakahara, Miyaya-cho, Toyohashi-shi, Aichi Co., Ltd.Kobe Steel Works, Toyohashi factory (72) Inventor Haruo Okumura 15-1 Nakahara, Miya-cho, Toyohashi-shi, Aichi Co., Ltd. Kobe Steel, Toyohashi Plant (56) Reference JP 4-18605 (JP, A) JP 64-38804 (JP, A) JP 61-233803 (JP, A) JP JP -72920 (JP, A) (58 ) investigated the field (Int.Cl. 7, DB name) G05B 19/05 G05B 23/02

Claims (8)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 画面上でペトリネットを用いて入力され
たシーケンス制御モデルを所定の形式のシーケンスプロ
グラムに変換して表示するシーケンスプログラム作成装
置において, 上記ペトリネットをシーケンス制御に必要な機能を実現
するための複数の種類のプレース及び複数の種類のアー
クを含むように拡張した拡張ペトリネットを用いて入力
されたシーケンス制御モデルを記憶する第2のモデル記
憶手段と, 上記拡張ペトリネットに含まれる各プレースの状態が成
立するようにプレースごとに論理式の形で入力された条
件及びプレースごとに必要な設定情報を記憶する第2の
条件記憶手段と, 上記それぞれ記憶されたシーケンス制御モデルと条件及
び設定情報とに基づいて自動生成される拡張条件を所定
の形式のシーケンスプログラムに変換して表示する第2
のシーケンスプログラム表示手段とを具備してなること
を特徴とするシーケンスプログラム作成装置。
1. A sequence program creating apparatus for converting a sequence control model input using a Petri net on a screen into a sequence program of a predetermined format and displaying the sequence program, wherein the Petri net realizes a function necessary for sequence control. A second model storage means for storing a sequence control model input using an extended Petri net extended to include a plurality of types of places and a plurality of types of arcs, and included in the extended Petri net. Second condition storage means for storing conditions input in the form of a logical expression for each place so that the condition of each place is established, and setting information necessary for each place, and the sequence control model and conditions stored respectively above And a sequence program of a predetermined format with extended conditions automatically generated based on the setting information Second to convert and display
And a sequence program display means for storing the sequence program.
【請求項2】 上記第2のモデル記憶手段が,上記シー
ケンス制御の対象機器の制御状態を表す状態プレース,
上記シーケンス制御を行うシーケンサのタイマー機能を
表す時間プレース,上記シーケンス制御を行うシーケン
サのカウンタ機能を表すカウンタプレース,上記シーケ
ンサからの出力を表す出力プレース,上記シーケンサの
各種演算機能を表す演算プレース,上記シーケンサへの
入力を表す入力プレース,他のプレースのオン・オフ情
報を参照する参照プレースの全部又は一部を含む拡張ペ
トリネットを用いて入力されたシーケンス制御モデルを
記憶することを特徴とする請求項記載のシーケンスプ
ログラム作成装置。
2. The second model storage means is a status place indicating a control status of a device subject to the sequence control,
A time place that represents the timer function of the sequencer that performs the sequence control, a counter place that represents the counter function of the sequencer that performs the sequence control, an output place that represents the output from the sequencer, an operation place that represents the various operation functions of the sequencer, and the above A sequence control model stored by using an extended Petri net including all or part of an input place representing input to a sequencer and a reference place referencing on / off information of another place is stored. Item 1. A sequence program creation device according to item 1 .
【請求項3】 上記第2のモデル記憶手段が,ペトリネ
ットを階層的に記述する階層プレースを含む拡張ペトリ
ネットを用いて入力されたシーケンス制御モデルを記憶
することを特徴とする請求項記載のシーケンスプログ
ラム作成装置。
Wherein said second model storage means according to claim 1, wherein the storing sequence control model that is input using an extended Petri nets including hierarchically describes hierarchical place Petri nets Sequence program generator.
【請求項4】 上記第2のモデル記憶手段が,上記シー
ケンサのa接点接続を表すa接点接続用アーク,上記シ
ーケンサのb接点接続を表すb接点接続用アーク,上記
シーケンサの自己保持回路を表す自己保持解除用アーク
の全部又は一部を含む拡張ペトリネットを用いて入力さ
れたシーケンス制御モデルを記憶することを特徴とする
請求項記載のシーケンスプログラム作成装置。
4. The second model storage means represents an a-contact connecting arc that represents an a-contact connection of the sequencer, a b-contact connecting arc that represents a b-contact connection of the sequencer, and a self-holding circuit of the sequencer. sequence program creating device according to claim 1, wherein the storing sequence control model that is input using an extended Petri nets comprising all or part of the self-holding release for arc.
【請求項5】 上記第2の条件記憶手段が,画面上で選
択されるプレースに応じて開かれるダイアログボックス
を構成し,該ダイアログボックスの中に論理式の形で入
力された条件及びプレースごとに必要な設定情報を記憶
することを特徴とする請求項のいずれかに記載の
シーケンスプログラム作成装置。
5. The second condition storage means constitutes a dialog box opened according to a place selected on the screen, and each condition and place inputted in the form of a logical expression in the dialog box sequence program generating apparatus according to any of claims 1 to 4, characterized in that stores setting information necessary.
【請求項6】 上記プレースごとに必要な設定情報が,
ラベル,コメント,デバイス番号,演算指令,当該プレ
ースへの入出力リスト,タイマーの設定値及びカウンタ
の設定値の全部又は一部を含む請求項記載のシーケン
スプログラム作成装置。
6. The setting information required for each place is
6. The sequence program creating device according to claim 5, which includes a label, a comment, a device number, an operation command, an input / output list for the place, a timer setting value, and a counter setting value, in whole or in part.
【請求項7】 上記第2のシーケンスプログラム表示手
段が,上記シーケンス制御モデルからシーケンサのデバ
イス番号を割り付けるべきプレースを順次抽出するデバ
イス番号割り付けプレース抽出手段と,上記抽出された
プレースに上記シーケンサのデバイス番号を所定のルー
ルにより自動的に割り付けるデバイス番号自動割り付け
手段と,上記シーケンス制御モデルから上記シーケンス
プログラムに変換するプレースを上記自動的に割り付け
られたデバイス番号又は別途指示されたデバイス番号に
従い順次検出するプレース検出手段と,上記検出された
プレースに対応する条件をトランジションを介してアー
クで結合された上流側のプレースにまで適用範囲を拡張
することによって上記拡張条件を自動生成する拡張条件
生成手段と,上記生成された拡張条件をリスト形式のプ
ログラムに変換するプログラム変換手段と,上記変換さ
れたリスト形式のプログラムに上記検出されたプレース
の種類に応じて出力命令を付加することによりリスト形
式のシーケンスプログラムを作成するリスト形式シーケ
ンスプログラム作成手段と,上記作成されたリスト形式
のシーケンスプログラムをラダー形式のプログラムに変
換することによりラダー形式のシーケンスプログラムを
作成するラダー形式シーケンスプログラム作成手段と,
上記作成されたリスト形式及び/又はラダー形式のシー
ケンスプログラムを表示する表示手段とを具備してなる
ことを特徴とする請求項のいずれかに記載のシー
ケンスプログラム作成装置。
7. A device number allocation place extracting means for sequentially extracting a place to which a device number of the sequencer is to be allocated from the sequence control model by the second sequence program display means, and a device of the sequencer for the extracted place. A device number automatic assigning means for automatically assigning numbers according to a predetermined rule, and a place for converting the sequence control model into the sequence program is sequentially detected according to the automatically assigned device number or a device number designated separately. A place detecting means, and an extended condition generating means for automatically generating the extended condition by expanding the applicable range of the condition corresponding to the detected place to an upstream place connected by an arc through a transition, Above raw A program conversion means for converting the generated extended condition into a list format program, and a list format sequence program by adding an output command to the converted list format program according to the type of the detected place. A list format sequence program creating means for creating, and a ladder format sequence program creating means for creating a ladder format sequence program by converting the created list format sequence program into a ladder format program,
Sequence program generating apparatus according to any of claims 1 to 6, characterized in that comprises a display means for displaying the of the list created form and / or a ladder format sequence program.
【請求項8】 上記ペトリネットが,上記シーケンス制
御モデル中の上流側プレースと下流側プレースとの間に
のみ介在しえて上記シーケンスプログラムには変換され
ることのないダミー機能を表すダミープレースを含む
求項1〜7のいずれかに記載のシーケンスプログラム作
成装置。
8. The Petri net includes a dummy place representing a dummy function which is interposed only between an upstream place and a downstream place in the sequence control model and is not converted into the sequence program. Contract
The sequence program creating device according to any one of claims 1 to 7 .
JP11721595A 1994-06-28 1995-05-16 Sequence program creation device Expired - Fee Related JP3426405B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11721595A JP3426405B2 (en) 1994-06-28 1995-05-16 Sequence program creation device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP6-146444 1994-06-28
JP14644494 1994-06-28
JP11721595A JP3426405B2 (en) 1994-06-28 1995-05-16 Sequence program creation device

Publications (2)

Publication Number Publication Date
JPH0876821A JPH0876821A (en) 1996-03-22
JP3426405B2 true JP3426405B2 (en) 2003-07-14

Family

ID=26455370

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11721595A Expired - Fee Related JP3426405B2 (en) 1994-06-28 1995-05-16 Sequence program creation device

Country Status (1)

Country Link
JP (1) JP3426405B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100428890B1 (en) * 2001-12-21 2004-04-29 주식회사 포스코 Method for Drafting Ladder Diagram Using Petri Net
KR20110012342A (en) * 2009-07-30 2011-02-09 경상대학교산학협력단 Method of designing programmable logic controller ladder logic and generating ladder code
JP5949827B2 (en) * 2014-04-15 2016-07-13 横河電機株式会社 Energy management system

Also Published As

Publication number Publication date
JPH0876821A (en) 1996-03-22

Similar Documents

Publication Publication Date Title
JPH07261969A (en) Method for constituting definition file for hierarchical structure menu
JP3426405B2 (en) Sequence program creation device
JPH025102A (en) Input system for pc rudder graphic
JPH1049206A (en) Sequence control generating device
JP2522057B2 (en) Distributed control system
JPH09114517A (en) Monitor and control equipment
JP2533373B2 (en) Control program creation method
JPH02194496A (en) Plant monitoring equipment
JP3322930B2 (en) Program creation device
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
JPH04246720A (en) Level display system for window menu
JP2895172B2 (en) Process monitoring device
JP2798917B2 (en) Plant knowledge base creation support system
JPH01244502A (en) Pc program display system
JPH052477A (en) Graphical user interface preparing system
JPH06124288A (en) Simulation device based on petrinet
JPS62204328A (en) Man-machine interface control system
JPS60245037A (en) Crt display system
JPS6395522A (en) Man-machine interactive system
JPH0667931A (en) Single chip microcomputer simulator
JPH04335404A (en) Debug system for sequence program
JPH05224903A (en) Command processor
JPH06168012A (en) Program drawing generating device
JPH07114487A (en) Program test device
JPH06149773A (en) Simulation device based upon petri net

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees