JPH06149773A - Simulation device based upon petri net - Google Patents

Simulation device based upon petri net

Info

Publication number
JPH06149773A
JPH06149773A JP29726192A JP29726192A JPH06149773A JP H06149773 A JPH06149773 A JP H06149773A JP 29726192 A JP29726192 A JP 29726192A JP 29726192 A JP29726192 A JP 29726192A JP H06149773 A JPH06149773 A JP H06149773A
Authority
JP
Japan
Prior art keywords
arc
function
petri net
simulation
user
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
JP29726192A
Other languages
Japanese (ja)
Inventor
Masahide Son
昌秀 孫
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP29726192A priority Critical patent/JPH06149773A/en
Publication of JPH06149773A publication Critical patent/JPH06149773A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

PURPOSE:To easily represent complex logic constitution and evade a state wherein the Petri net diagram becomes complex by enabling a user to give the individual function to an arc. CONSTITUTION:The simulation device 1 based upon the Petri net is equipped with an arc function definition part 2 which allows the user to specify an arc in the Petri net and define a function for the arc and an arc function execution part 3 which executes the function of the arc on the basis of the function that the user defines when simulation is performed.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、ワークステーションや
パーソナルコンピュータ等で実現されるペトリネットに
基づくシミュレーション装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a Petri net-based simulation apparatus realized by a workstation, a personal computer or the like.

【0002】[0002]

【従来の技術】加工機械、組立機械、作業者や搬送機器
等で構成される生産システム等の離散事象システムを設
計する場合、目標とする生産能力を達成するために必要
な個々の構成機器等の数量、中間バッファの配置やその
容量等を充分検討する必要がある。
2. Description of the Related Art When designing a discrete event system such as a processing machine, an assembly machine, a production system composed of workers and transfer equipment, etc., individual constituent equipment necessary for achieving a target production capacity. It is necessary to fully consider the number of items, the arrangement of intermediate buffers and their capacity.

【0003】このような場合、従来から汎用言語やシミ
ュレーション専用言語を用いてシミュレーションモデル
を作成し、シミュレーションを行って色々な設計案を評
価することが行われてきた。しかし、通常の生産ライン
設計者にとってはそれらの言語の利用方法の習得が難し
く、使いこなせない状況にあった。
In such a case, conventionally, a simulation model is created using a general-purpose language or a simulation-dedicated language, and simulation is performed to evaluate various design plans. However, it was difficult for ordinary production line designers to learn how to use these languages, and it was difficult to use them.

【0004】この問題を解決するため、最近では特開昭
63−136249号公報,特開昭63−317805
号公報等に開示されているように、ペトリネットのグラ
フ表現を用いて、シミュレーションモデルの作成を視覚
的に容易に行える方法も数多く提案されている。
In order to solve this problem, recently, JP-A-63-136249 and JP-A-63-317805 have been recently used.
As disclosed in Japanese Unexamined Patent Publication No. 2003-242242, many methods have been proposed that can easily create a simulation model visually by using a graph representation of a Petri net.

【0005】ペトリネットグラフは、システム内の要素
を条件と事象に分け、条件をプレース、事象をトランジ
ションというノードで表し、条件と事象の関係をアーク
で結ぶグラフでモデルを表現するものである。そして、
条件の成立をプレースにトークンを配置することにより
表し、このトークンの移動状態に応じてトランジション
を発火させることによりシステムのダイナミクスを検証
するものである。上記プレースは、プレースに入力する
アークのリスト,出力するアークのリスト,プレースに
置かれるトークンの数等のデータからなるプレースデー
タで表現され、トランジションは、同様にトランジショ
ンに入力するアークのリスト,出力するアークのリスト
等のデータからなるトランジションデータで表現され、
また、アークは、始点ノード及び終点ノード等のデータ
からなるアークデータで表現される。
The Petri net graph is a model in which elements in the system are divided into conditions and events, conditions are placed, events are represented by nodes called transitions, and a relationship between conditions and events is represented by an arc. And
The establishment of a condition is represented by placing a token in a place, and the transition is fired according to the moving state of this token to verify the system dynamics. The above place is represented by place data consisting of a list of arcs to be input to the place, a list of arcs to be output, the number of tokens placed in the place, etc. The transition is also a list of arcs to be input to the transition and output It is represented by transition data consisting of data such as a list of arcs
Further, the arc is represented by arc data composed of data such as a start point node and an end point node.

【0006】図8は、ペトリネットの例であり、全ての
入力プレース51,52にトークンが存在する時、アー
ク55,56で接続されるトランジション54は発火可
能となり(同図(a)参照)、発火終了後、入力プレー
ス51,52からトークンを一個づつ取り去り、アーク
57で接続される出力プレース53にトークンが出力さ
れる様子(同図(b)参照)を表している。このペトリ
ネットのグラフ表現を利用することにより、生産システ
ムのシミュレーションモデルを視覚的に表現でき、複雑
なプログラミングを不要とすることができる。
FIG. 8 shows an example of a Petri net. When tokens are present in all the input places 51 and 52, the transition 54 connected by the arcs 55 and 56 can be fired (see FIG. 8A). After the completion of firing, the tokens are removed from the input places 51 and 52 one by one, and the tokens are output to the output place 53 connected by the arc 57 (see FIG. 7B). By using the graph representation of this Petri net, the simulation model of the production system can be represented visually, and complicated programming can be eliminated.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、上記し
た特開昭63−317805公報等に見られるような従
来のペトリネットに基づくシミュレーション装置では、
アークはその終点のノードにトークンを送るという機能
しか持っておらず、実際の生産システムの工程をシミュ
レートするには不十分である。そこで、ペトリネットの
機能を拡張するために拡張ペトリネットと呼ばれるもの
が提案されている。この拡張ペトリネットでは、アーク
はトークンの色や論理式によってトークンの流れを制御
したり許可アークまたは抑止アークを用いることにより
あるノードの状態を他のノードに知らせることができる
が、トークンがアークを通過する際トークンの属性を変
更するといった処理が行えなかった。このため、ペトリ
ネットによる複雑な論理構成の表現が難しく、かつ表現
した場合においてもノード数が著しく増加することから
ペトリネット図が繁雑になり、シミュレーションモデル
の作成に時間がかかるという欠点があった。また、この
ようなペトリネット図は、作成者のみならず第三者にと
っても極めて分かりにくいものとなっていた。このた
め、従来のペトリネットに基づくシミュレーション装置
を使って複雑な制御を伴う生産ラインのシミュレーショ
ンを行うには、生産機械の制御ロジックをペトリネット
で表現するためにかなりの熟練を必要としたり、多くの
困難を伴っていた。
However, in the conventional simulation apparatus based on the Petri net as disclosed in the above-mentioned Japanese Patent Laid-Open No. 63-317805,
The arc has only the function of sending a token to the node at its end point, which is insufficient to simulate the process of the actual production system. Therefore, a so-called extended Petri net has been proposed in order to expand the function of the Petri net. In this extended Petri net, arcs can control the flow of tokens by the color and logical expression of tokens and can notify other nodes of the state of one node by using permit arcs or inhibition arcs. It was not possible to change the attribute of the token when passing. For this reason, it is difficult to express a complicated logical structure by a Petri net, and even if it is expressed, the number of nodes increases remarkably, which makes the Petri net diagram complicated and it takes time to create a simulation model. . In addition, such a Petri net diagram is extremely difficult for not only the creator but also a third party to understand. For this reason, in order to simulate a production line with complicated control using a conventional Petri net-based simulation device, considerable skill is required to express the control logic of a production machine in a Petri net, and many Was accompanied by difficulties.

【0008】そこで本発明は、ユーザが独自の機能をア
ークに与えられるようにすることにより、複雑な論理構
成を容易に表現することを可能とし、かつペトリネット
図が繁雑となることを回避することを目的とする。
Therefore, the present invention enables a user to give a unique function to an arc, thereby easily expressing a complicated logical structure and avoiding a complicated Petri net diagram. The purpose is to

【0009】[0009]

【課題を解決するための手段】本発明は、前記目的を達
成するため、ペトリネットを作成する手段と、作成され
たペトリネットを表示する手段と、ペトリネットの中の
アークを指定して該アークに対してユーザが機能を定義
する手段と、定義された機能を記憶する手段と、シミュ
レーション実行の際に前記ユーザが定義した機能に基づ
いてアークの機能を実行する手段とを備えていることを
特徴とする。
In order to achieve the above-mentioned object, the present invention specifies a petri net, a means for displaying the created petri net, and an arc in the petri net by designating the arc. It is provided with a means for the user to define a function for the arc, a means for storing the defined function, and a means for executing the function of the arc based on the function defined by the user when executing the simulation. Is characterized by.

【0010】[0010]

【作用】本発明の作用を、図1に示す原理図を参照して
説明する。
The operation of the present invention will be described with reference to the principle diagram shown in FIG.

【0011】本発明は、図1のように表示部1a,入力
部1b,処理部1c,記憶部1dを備えた従来と同様な
構成のシミュレーション装置1に加えて、アークにユー
ザが何らかの機能を定義するためのアーク機能定義部2
と、定義された機能をシミュレーションの際に実行する
アーク機能実行部3とを設けている。そしてこれに対応
して、機能データは、始点ノード,終点ノード,多重
度,図形情報等からなる従来のアークのデータを格納す
る領域4(図2(a)参照)に加えて、アークにユーザ
機能を保持するデータ領域5を新たに設けている。アー
ク機能定義部2は、ユーザ機能設定パネル等の手段およ
びこれを開始するためのメニュー等の手段を持ち、アー
ク機能実行部3は、アーク機能定義部2にて設定または
記述された機能を実行するための手段を持つ。アークに
新たに付け加えられたデータ領域5は、アーク機能定義
部2を呼んだアークに付与される。
According to the present invention, in addition to the simulation device 1 having the same structure as that of the prior art including the display unit 1a, the input unit 1b, the processing unit 1c, and the storage unit 1d as shown in FIG. Arc function definition part 2 for defining
And an arc function execution unit 3 that executes the defined function at the time of simulation. Correspondingly, in addition to the area 4 (see FIG. 2 (a)) for storing the data of the conventional arc consisting of the start point node, the end point node, the multiplicity, the graphic information, etc., the function data is added to the arc user A data area 5 for holding the function is newly provided. The arc function definition unit 2 has means such as a user function setting panel and means for starting this, and the arc function execution unit 3 executes the function set or described in the arc function definition unit 2. Have the means to do. The data area 5 newly added to the arc is given to the arc that called the arc function definition unit 2.

【0012】シミュレーション実行の際には、入力プレ
ースからのトークンがアークを通過して出力プレースに
到るが、トークンがアークを通過する際には、アーク機
能定義部2で予め定義されたアークの機能に応じて、ア
ーク機能実行部3によりトークンの通過が制御される。
たとえば、予め決められた所定時間内ではトークンが通
過できないようにアークが定義されている場合には、そ
の時間内ではトークンの通過が保留され、その時間が経
過した後にトークンが通過し工程が進行する。
When the simulation is executed, the token from the input place passes through the arc and reaches the output place, but when the token passes through the arc, the arc function defined by the arc function definition unit 2 The arc function execution unit 3 controls the passage of the token according to the function.
For example, if an arc is defined so that a token cannot pass within a predetermined time, the token is suspended from passing within that time, and after that time the token passes and the process proceeds. To do.

【0013】[0013]

【実施例】以下、図面を参照しながら実施例に基づいて
本発明の特徴を具体的に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The features of the present invention will be specifically described below based on embodiments with reference to the drawings.

【0014】図3は、本発明の実施例の構成を示すブロ
ック図である。入力部11は、キーボードおよびマウス
で構成されており、ペトリネットを構成するプレース,
トランジション,アーク等の位置を入力したり、アーク
の機能を入力したり、或いは、シミュレーションの実行
を指示したりするために使用される。処理部12は、入
力部11から入力された各種データを記憶部13に格納
するとともに、これらのデータに基づいて、プレース生
成部14でプレースデータを生成し、トランジション生
成部15でトランジションデータを生成し、アーク生成
部16でアークデータを生成する。
FIG. 3 is a block diagram showing the configuration of the embodiment of the present invention. The input unit 11 is composed of a keyboard and a mouse, and a place forming a Petri net,
It is used for inputting positions of transitions, arcs, etc., for inputting arc functions, or for instructing execution of simulation. The processing unit 12 stores various data input from the input unit 11 in the storage unit 13, and based on these data, the place generation unit 14 generates the place data and the transition generation unit 15 generates the transition data. Then, the arc generation unit 16 generates arc data.

【0015】プレースデータ、トランジションデータ及
びアークデータのデータ構造の一例を表1、表2及び表
3に示す。
Tables 1, 2 and 3 show examples of data structures of place data, transition data and arc data.

【0016】[0016]

【表1】 [Table 1]

【表2】 [Table 2]

【表3】 上述のようにして生成されたプレース,トランジショ
ン,アーク等のデータは、CRTディスプレイ等からな
る表示部17に供給され、ペトリネットが表示される。
[Table 3] The data of places, transitions, arcs, etc. generated as described above is supplied to the display unit 17 such as a CRT display, and the Petri net is displayed.

【0017】本実施例においては、上述の構成に加えて
更に、アークの機能をユーザが定義するためのアーク機
能定義部18と、この定義されたアーク機能を実行する
ためのアーク機能実行部19が設けられている。
In the present embodiment, in addition to the above-mentioned configuration, an arc function defining section 18 for the user to define the arc function and an arc function executing section 19 for executing the defined arc function. Is provided.

【0018】次に、上述のシミュレーション装置におい
て、アークの機能をユーザが定義する場合の動作につい
て、図4のフローチャートを参照して説明する。
Next, with reference to the flow chart of FIG. 4, the operation of the above-described simulation apparatus when the user defines the arc function will be described.

【0019】いま、図5に示されるようなプレース5
1,52,53、トランジション54、アーク55,5
6,57からなるペトリネットグラフが表示部17に表
示されており、アーク56に対してユーザ機能を定義す
る場合について説明する。
Now, place 5 as shown in FIG.
1, 52, 53, transition 54, arc 55, 5
A case will be described in which a Petri net graph composed of 6, 57 is displayed on the display unit 17, and a user function is defined for the arc 56.

【0020】先ず、入力部11に設けられたマウスを使
用してマウスカーソルCをアーク56の位置に移動さ
せ、マウスボタンを押してアーク56を指定する (ステ
ップ101)。そして、マウスに設けられた選択項目メ
ニュー表示ボタンを押すことにより (ステップ10
2)、処理部12を介してアーク機能定義部18が起動
され、表示部17には、図5に示すような選択項目メニ
ューMが表示される (ステップ103)。選択項目メニ
ューMには、たとえば、「属性設定」,「エディッ
ト」,「ユーザ機能設定」の三つの項目が含まれてい
る。ここでマウスによりメニューの中から「ユーザ機能
設定」を選択すると (ステップ104)、表示部17に
は、図6に示すような、ユーザ定義を行うためのユーザ
機能設定パネルPが表示される。
First, the mouse provided on the input section 11 is used to move the mouse cursor C to the position of the arc 56, and the mouse button is pressed to specify the arc 56 (step 101). Then, by pressing the selection item menu display button provided on the mouse (step 10
2) The arc function defining unit 18 is activated via the processing unit 12, and the selection item menu M as shown in FIG. 5 is displayed on the display unit 17 (step 103). The selection item menu M includes, for example, three items of “attribute setting”, “edit”, and “user function setting”. Here, when "user function setting" is selected from the menu with the mouse (step 104), the display unit 17 displays a user function setting panel P for user definition as shown in FIG.

【0021】ユーザ機能設定パネルPには、予めいくつ
かの機能がボタンの形で用意されている。なお、ここで
いうボタンとは、実際に物理的に押圧されるものではな
く、マウスカーソルCにより指定される、表示部17に
表示された小さな矩形領域を意味する。図6の例では、
色付きペトリネットにおいてトークンの色を変換するた
めの色変換ボタンP1と、トークンが保持する変数をア
クセスするための変数ボタンP2と、アークの機能を式
等で定義するためのユーザ記述ボタンP3が存在する。
色変換ボタンP1が押された場合には、入力色と出力色
の入力が可能となり、シミュレーション実行時にトーク
ンがアークを通過する際に入力色で指定された色を持つ
トークンの色が出力色に変換される。また、変数ボタン
P2が押された場合には、変数名とデータの入力が可能
となり、シミュレーション実行時にトークンがアークを
通過する際に、変数名で指定されるトークン変数の値が
データで指定された値となる。また、ユーザ記述ボタン
P3が押された場合には、記述欄P4に条件式を入力す
ることが可能となり、必要に応じて複雑な処理を記述す
ることが可能となる。この記述は、たとえば、「Sma
lltalk(米国Xerox社の登録商標)」と呼ば
れる言語によって行われる。
On the user function setting panel P, some functions are prepared in advance in the form of buttons. It should be noted that the button here means a small rectangular area displayed on the display unit 17, which is designated by the mouse cursor C and is not actually physically pressed. In the example of FIG.
There is a color conversion button P1 for converting the color of the token in the colored Petri net, a variable button P2 for accessing the variable held by the token, and a user-described button P3 for defining the function of the arc with an expression or the like. To do.
When the color conversion button P1 is pressed, it becomes possible to input the input color and the output color, and the color of the token having the color specified by the input color when the token passes through the arc during the simulation execution becomes the output color. To be converted. When the variable button P2 is pressed, the variable name and data can be input, and when the token passes through the arc during simulation, the value of the token variable specified by the variable name is specified by the data. It will be a value. Further, when the user description button P3 is pressed, it becomes possible to input a conditional expression in the description field P4, and it becomes possible to describe complicated processing as necessary. This description is, for example, "Sma
lltalk (registered trademark of Xerox, Inc., USA).

【0022】ここで、ユーザ記述の例を説明する。たと
えば、製品の製造工程をペトリネットグラフで表現した
場合、製品の流れはトークンの流れで表される。トラン
ジションでは、入力プレースの条件が満足されれば発火
して次の状態に変化するが、実際の製造工程では、入力
条件が満足されただけでは作業が進まない場合がある。
たとえば、製造工場が昼休みの時間には、原料や材料が
揃っており且つ製造機械が稼働可能な状態にあっても、
実際には作業が行われない。したがって、製品の製造工
程をペトリネットグラフで表現する場合には、このよう
な時間的な制限も表現できるようにする必要がある。た
とえば、昼休みが12時から13時までであり、その工
程を終了するのに必要な時間が30分であったとする。
この場合は11時30分から13時までは、新しい仕事
を受け付けることはできない。この条件を上記した「S
malltalk(登録商標)」で記述すると以下のよ
うになる。
Here, an example of user description will be described. For example, when the manufacturing process of a product is represented by a Petri net graph, the product flow is represented by a token flow. In the transition, if the condition of the input place is satisfied, it is fired and changes to the next state, but in the actual manufacturing process, the work may not be progressed just by satisfying the input condition.
For example, during the lunch break at the manufacturing plant, even if the raw materials and materials are available and the manufacturing machines are in operation,
No work is actually done. Therefore, when expressing the manufacturing process of a product by a Petri net graph, it is necessary to be able to express such a time limitation. For example, assume that the lunch break is from 12:00 to 13:00 and the time required to complete the process is 30 minutes.
In this case, no new work can be accepted from 11:30 to 13:00. This condition is described above in "S
It is as follows when described by "malltalk (registered trademark)".

【0023】 (TIME>11:30)&(TIME<13:00) if True:〔↑false〕 この式は、現在時刻TIMEが11時30分から13時
00分の間は、False(偽)を返すことを示してい
る。なお、TIMEはシミュレーション時間を保持する
大域変数である。
(TIME> 11:30) & (TIME <13:00) if True: [↑ false] This formula is False from the current time TIME from 11:30 to 13:00. It indicates to return. Note that TIME is a global variable that holds the simulation time.

【0024】上記のユーザ機能設定パネルPを使用して
入力された上述の各種データは、処理部12を介して記
憶部13に記憶される。
The above various data input using the user function setting panel P is stored in the storage unit 13 via the processing unit 12.

【0025】なお、ステップ104のメニュー選択で
「属性設定」或いは「エディット」を選択した場合に
は、それぞれ対応した処理が行われる (ステップ10
7,108)。すなわち、属性設定を選択することによ
り、アークの多重度の設定と通常,許可,抑止等のアー
クの設定を行うことができ、また、エディットを選択す
ることにより、アークの画面上の形を見易いようにマウ
ス操作によって変形することができる。
If "attribute setting" or "edit" is selected in the menu selection in step 104, the corresponding processing is performed (step 10).
7, 108). That is, by selecting the attribute setting, it is possible to set the multiplicity of the arc and the arc settings such as normal, permit, and inhibit, and by selecting the edit, it is easy to see the shape of the arc on the screen. It can be transformed by operating the mouse.

【0026】次に、シミュレーションの実行時の動作に
ついて図7のフローチャートを参照して説明する。
Next, the operation at the time of executing the simulation will be described with reference to the flowchart of FIG.

【0027】入力部11からシミュレーションの開始が
指示されると、シミュレーション時刻が設定され (ステ
ップ201)、その時刻で全てのトランジションが発火
可能か否かが判別される。このトランジションの発火の
可否の判別の詳細は以下の通りである。先ず、トランジ
ションが選択され (ステップ202)、そのトランジシ
ョンの入力アークが選択され (ステップ203)その入
力アークに対しその先の入力プレースにそれぞれのアー
クが示す多重度個のトークンが存在するか否かが判別さ
れる (ステップ204)。トークンが存在する場合には
判断結果としてTrue(真)を返す。トークンが存在
しない場合にはFalse(偽)を返し、次のトランジ
ションに処理を移す (ステップ205)。次に、アーク
機能実行部19において、アークのユーザ記述があれば
それが実行され (ステップ206)、実行結果がTru
eであればTrueを返す (ステップ207)。ユーザ
記述の実行結果がFalseであればFalseを返
し、次のトランジションに処理を移す (ステップ20
5)。全ての入力アークに対して同様な処理を行い (ス
テップ208,209)、全ての入力アークにおいて判
断結果がTrueである場合には (ステップ210)、
トランジションを発火候補として配列にセットする (ス
テップ211)。
When the start of the simulation is instructed from the input unit 11, the simulation time is set (step 201) and it is determined whether or not all the transitions can be fired at that time. The details of the determination of whether or not the transition is fired are as follows. First, a transition is selected (step 202), an input arc of the transition is selected (step 203), and whether or not there are tokens of multiplicity indicated by each arc in the input place ahead of the input arc. Is determined (step 204). When the token exists, True is returned as the determination result. If the token does not exist, False is returned and the process moves to the next transition (step 205). Next, in the arc function execution unit 19, if there is a user description of the arc, it is executed (step 206), and the execution result is Tru.
If it is e, True is returned (step 207). If the execution result of the user description is False, False is returned, and the process moves to the next transition (step 20).
5). The same processing is performed for all input arcs (steps 208 and 209), and when the determination result is true for all input arcs (step 210),
The transition is set as an ignition candidate in the array (step 211).

【0028】次に、全てのトランジションの中から発火
可能なトランジションを調べ (ステップ212,21
3)、無作為に一つのトランジションを抽出し発火作業
を行う(ステップ214)。
Next, a transition that can be fired is checked from among all the transitions (steps 212, 21).
3) At random, one transition is extracted and ignition work is performed (step 214).

【0029】発火可能なトランジションがなくなるまで
上述の処理を繰り返す。
The above process is repeated until there are no transitions that can be fired.

【0030】次に、発火させたトランジションから最も
早い時刻に発火が終了するトランジションを取り出し、
発火終了作業を行う。すなわち、トランジションの出力
プレースにトークンをセットし (ステップ215)、シ
ミュレーションの時刻を進める (ステップ216)。
Next, the transition whose firing ends at the earliest time is taken out from the fired transitions,
Carry out the work to end the ignition. That is, the token is set in the output place of the transition (step 215) and the simulation time is advanced (step 216).

【0031】以下同様にトランジションの発火、トーク
ンの出力が繰り返されて、順次生産システムの動きが表
現される。
In the same manner, transition firing and token output are repeated in the same manner to sequentially represent the movement of the production system.

【0032】このようにしてシミュレーションを実行
し、得られた結果により生産システムの設計案の評価が
行われる。なお、ペトリネットを使用したシミュレーシ
ョン自体については、前記した特開昭62−27725
0号公報等に開示されているのでここでは詳述しない。
The simulation is executed as described above, and the design plan of the production system is evaluated based on the obtained result. The simulation itself using the Petri net is described in the above-mentioned JP-A-62-27725.
Since it is disclosed in Japanese Patent Publication No. 0, etc., it will not be described in detail here.

【0033】なお、本実施例では、アーク機能実行部は
処理部12内に存在するシミュレーション実行部から呼
び出されるようになっているが、これをシミュレーショ
ン実行部に組み込むことができる。
In the present embodiment, the arc function executing section is called by the simulation executing section existing in the processing section 12, but it can be incorporated in the simulation executing section.

【0034】[0034]

【発明の効果】以上に述べたように、本発明において
は、アークにユーザが何らかの機能を定義するためのア
ーク機能定義部と、定義された機能をシミュレーション
中に実行するアーク機能実行部を設けたので、トークン
がアークを通過する際トークンの属性を変更するといっ
た処理が行えるようになる。このため、複雑な論理構成
のペトリネットによる複雑な論理構成の表現が容易にな
り、かつ表現したペトリネットのノード数を少なくでき
ることからペトリネット図が簡潔になり、シミュレーシ
ョンモデルの作成が短時間でできる。
As described above, according to the present invention, the arc function defining portion for the user to define a certain function in the arc and the arc function executing portion for executing the defined function during the simulation are provided. Therefore, when the token passes through the arc, it becomes possible to change the attribute of the token. For this reason, it is easy to express a complicated logical structure by using a Petri net with a complicated logical structure, and the number of nodes in the expressed Petri net can be reduced, so that the Petri net diagram is simplified and the simulation model can be created in a short time. it can.

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

【図1】 本発明の概略の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a schematic configuration of the present invention.

【図2】 本発明におけるアークデータの格納状態を示
す説明図である。
FIG. 2 is an explanatory diagram showing a storage state of arc data according to the present invention.

【図3】 本実施例の実施例を示すブロック図である。FIG. 3 is a block diagram showing an example of this embodiment.

【図4】 本実施例におけるユーザ機能設定処理を説明
するためのフローチャートである。
FIG. 4 is a flowchart for explaining a user function setting process in this embodiment.

【図5】 ユーザ機能設定を行う場合に表示される選択
項目メニューを示す説明図である。
FIG. 5 is an explanatory diagram showing a selection item menu displayed when a user function is set.

【図6】 ユーザ機能設定を行う場合に表示されるユー
ザ機能設定パネルを示す説明図である。
FIG. 6 is an explanatory diagram showing a user function setting panel displayed when performing user function setting.

【図7】 シミュレーション実行時の処理を説明するた
めのフローチャートである。
FIG. 7 is a flowchart for explaining a process at the time of executing a simulation.

【図8】 ペトリネットの原理を示す説明図である。FIG. 8 is an explanatory diagram showing the principle of a Petri net.

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

1:シミュレーション装置、2:アーク機能定義部、
3:アーク機能実行部、4,5:データ領域、11:入
力部、12:処理部、13:記憶部、14:プレース生
成部、15:トランジション生成部、16:アーク生成
部、17:表示部、18:アーク機能定義部、19:ア
ーク機能実行部
1: Simulation device, 2: Arc function definition unit,
3: arc function execution unit, 4, 5: data area, 11: input unit, 12: processing unit, 13: storage unit, 14: place generation unit, 15: transition generation unit, 16: arc generation unit, 17: display Part, 18: arc function definition part, 19: arc function execution part

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 ペトリネットを作成する手段と、作成さ
れたペトリネットを表示する手段と、ペトリネットの中
のアークを指定して該アークに対してユーザが機能を定
義する手段と、定義された機能を記憶する手段と、シミ
ュレーション実行の際に前記ユーザが定義した機能に基
づいてアークの機能を実行する手段とを備えていること
を特徴とするペトリネットに基づくシミュレーション装
置。
1. A means for creating a petri net, a means for displaying the created petri net, and means for designating a function for a user by designating an arc in the petri net. And a means for storing the function, and a means for executing the arc function based on the function defined by the user when executing the simulation.
JP29726192A 1992-11-06 1992-11-06 Simulation device based upon petri net Pending JPH06149773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP29726192A JPH06149773A (en) 1992-11-06 1992-11-06 Simulation device based upon petri net

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP29726192A JPH06149773A (en) 1992-11-06 1992-11-06 Simulation device based upon petri net

Publications (1)

Publication Number Publication Date
JPH06149773A true JPH06149773A (en) 1994-05-31

Family

ID=17844237

Family Applications (1)

Application Number Title Priority Date Filing Date
JP29726192A Pending JPH06149773A (en) 1992-11-06 1992-11-06 Simulation device based upon petri net

Country Status (1)

Country Link
JP (1) JPH06149773A (en)

Similar Documents

Publication Publication Date Title
US5485175A (en) Method and apparatus for continuously displaying a hierarchical menu with a permanent stationing setting/clearing icon
US5721959A (en) Information processing apparatus for pattern editing using logic relationship representative patterns
CN107544437A (en) Procedure editing device, method and storage medium
JPH07219754A (en) Request definition support device using screen transition diagram
US5668965A (en) Menu system for data processor
JP2608085B2 (en) Production planning simulation device
JPH06131168A (en) User interface preparation supporting device
JPH06149773A (en) Simulation device based upon petri net
JPS62197826A (en) Production of system flow specifications
JP4212396B2 (en) Graphic element selection program
JPH06176003A (en) Simulation device based upon petri net
JP2855835B2 (en) Simulation device based on Petri net
JPH06266545A (en) Gui parts library development support device
JPH06149774A (en) Simulation device based upon petri net
JP2900504B2 (en) Information processing device
JP2702416B2 (en) Method of generating operation button for computer processing and method of storing selected state of operation button
JPH05233295A (en) Supporting system for design type expert system construction
Kilgore et al. Animation design with CINEMA
JPH04130953A (en) Simulation device based upon petri net graph
JPH02148118A (en) Operation procedure display system
JPH03119465A (en) Document editing device
JP3570773B2 (en) Graphic processing unit
Hargreaves Computer graphics for directed graph design methods
JPH06149776A (en) Simulation device based upon petri net
JPH08147167A (en) Knowledge editing method