JPH10320187A - System modeling method and data communication method - Google Patents
System modeling method and data communication methodInfo
- Publication number
- JPH10320187A JPH10320187A JP9128991A JP12899197A JPH10320187A JP H10320187 A JPH10320187 A JP H10320187A JP 9128991 A JP9128991 A JP 9128991A JP 12899197 A JP12899197 A JP 12899197A JP H10320187 A JPH10320187 A JP H10320187A
- Authority
- JP
- Japan
- Prior art keywords
- variable
- event
- model
- state transition
- communication
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
(57)【要約】
【課題】 機器モデルのイベント間でデータ通信ができ
ず得られるシステムモデルが複雑になるという課題があ
った。
【解決手段】 モデルが使用するデータを状態遷移モデ
ル2の変数宣言部3で定義し、協調関係にあるイベント
の通信変数定義部7で送受信データを定義し、協調関係
に基づいてモデルを結合しモデルのイベント間でのデー
タ通信を可能とする。
(57) [Summary] [Problem] There is a problem that data communication cannot be performed between events of a device model, and the obtained system model becomes complicated. SOLUTION: Data used by a model is defined in a variable declaration section 3 of a state transition model 2, transmission / reception data is defined in a communication variable definition section 7 of a cooperative event, and the models are combined based on the cooperative relation. Enables data communication between model events.
Description
【0001】[0001]
【発明の属する技術分野】この発明は、機器等をモデル
化するための機器モデル、およびモデル化され得られた
機器モデルを用いて、それらの機器等で構成されるシス
テムのシステムモデルの生成方式およびこのシステムモ
デル内で結合された機器モデル間での情報の送受信を実
行するデータ通信方式に関するものである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for generating a system model of a system composed of devices by using a device model for modeling devices and the like and a device model obtained by the modeling. And a data communication method for transmitting and receiving information between device models connected in the system model.
【0002】[0002]
【従来の技術】システムをモデル化するために、従来か
ら状態遷移モデルが広く用いられている。状態遷移モデ
ルの代表的なものとしてペトリネットが挙げられる。ペ
トリネットは、多くのシステムに適用可能な視覚的で数
学的なモデル化ツールであり、特に、並行的、非同期
的、非決定的、確率的な動作を特徴とする情報処理シス
テムをモデル化するための有力なツールとして従来より
使用されている。2. Description of the Related Art State transition models have been widely used to model systems. A typical state transition model is a Petri net. Petri nets are visual and mathematical modeling tools applicable to many systems, especially for modeling information processing systems characterized by concurrent, asynchronous, nondeterministic, and stochastic behavior. It has been used as a powerful tool in the past.
【0003】図14は、従来の状態遷移モデルとしての
ペトリネットを用いてモデル化されたシステムを示す説
明図である。図において、円で表されるPi(i=1、
・・・、6)はプレース、長方形で表されるTi(i=
1、・・・、4)は発火則にしたがって発火するトラン
ジション、プレースからトランジションあるいはトラン
ジションからプレースヘの矢印で表されるのはアーク、
プレース中の黒丸で表されるのはトークンである。トー
クンがトランジションの発火に伴いプレース上を移動し
て、これにより状態の遷移が表される。FIG. 14 is an explanatory diagram showing a system modeled using a Petri net as a conventional state transition model. In the figure, Pi (i = 1,
..., 6) is a place, Ti (i =
1, ..., 4) are transitions that fire according to the firing rules, arcs are represented by arrows from place to transition or transition to place,
The tokens represented by black circles in the place are tokens. The token moves on the place as the transition fires, thereby representing a state transition.
【0004】図14の説明図に示した従来例はペトリネ
ットの簡単な例であり、ある処理が行われた後に2つの
並行処理を行い、この2つの並行処理の両方が終了した
後に、さらに別の処理を行うシステムをモデル化した例
である。[0004] The conventional example shown in the explanatory diagram of FIG. 14 is a simple example of a Petri net, in which two parallel processes are performed after a certain process is performed. This is an example in which a system that performs another process is modeled.
【0005】次に動作について説明する。図14の説明
図で示したシステムモデルの例において、まず、トーク
ンがあるプレースP1の処理を行い、プレースP1の処
理が終了するとトランジションT1が発火可能となる。
トランジションT1が発火すると、プレースP1からト
ークンが取り除かれ、プレースP2、P3ヘトークンが
加えられる。そして、トークンが加えられたプレースP
2、P3で処理が行われる。次に、プレースP2の処理
が終了するとトランジションT2が発火可能となり、プ
レースP2からトークンが取り除かれ、プレースP4ヘ
トークンが加えられる。そして、トークンが加えられた
プレースP4で処理が行われる。Next, the operation will be described. In the example of the system model shown in the explanatory diagram of FIG. 14, first, processing of a place P1 having a token is performed, and when the processing of the place P1 ends, a transition T1 can be fired.
When the transition T1 fires, the token is removed from the place P1, and the token is added to the places P2 and P3. And the place P where the token was added
2. Processing is performed at P3. Next, when the processing of the place P2 is completed, the transition T2 can be fired, the token is removed from the place P2, and the token is added to the place P4. Then, the processing is performed in the place P4 to which the token has been added.
【0006】同様に、プレースP3の処理が終了すると
トランジションT3が発火可能となり、プレースP3か
らトークンが取り除かれ、プレースP5ヘトークンが加
えられる。そして、トークンが加えられたプレースP5
で処理が行われる。最後に、トークンが存在するプレー
スP4、P5の両方の処理が終了すると、トランジショ
ンT4が発火可能となる。トランジションT4が発火す
ると、プレースP4、P5からトークンが取り除かれ、
プレースP6ヘトークンが加えられる。そして、プレー
スP6の処理を行いシステムの動作が終了する。Similarly, when the processing of the place P3 is completed, the transition T3 can be fired, the token is removed from the place P3, and the token is added to the place P5. And place P5 where the token was added
Is performed. Finally, when the processing of both places P4 and P5 where the token exists is completed, the transition T4 can be fired. When transition T4 fires, tokens are removed from places P4 and P5,
A token is added to place P6. Then, the processing of the place P6 is performed, and the operation of the system ends.
【0007】システムモデル化の他の従来手法として、
例えば、生産システムを構成する機器を個別にモデル化
し、それらを結合して生産システム全体のモデルを作成
する手法も提案されている。(古澤,吉川,辻堂,藤
田:“状態遷移モデルに基づく生産システムモデル化手
法の開発”,精密工学会秋季大会学術講演会講演論文
集,pp.359−360,1996)。As another conventional method of system modeling,
For example, there has been proposed a method of individually modeling devices constituting a production system and combining them to create a model of the entire production system. (Furusawa, Yoshikawa, Tsujido, Fujita: "Development of production system modeling method based on state transition model", Proc. Of the Japan Society of Precision Engineering Autumn Meeting, pp. 359-360, 1996).
【0008】図15は、機器毎に得られるモデルを結合
できる従来の状態遷移モデルを示す説明図である。この
従来の状態遷移モデルでは、円でプレースを表し、五角
形及び六角形の矢尻形でイベントを表し、矢印でアーク
を表す。図15に示す従来例では、コンベア(Conv
eyor)とロボット(Robot)が協調して動作す
る場合を示している。コンベアは、停止している状態と
動作している状態とをもつ。ロボットは、アイドル状態
とワークを搬送している状態とをもつ。コンベアとロボ
ットとの間でワークの受け渡しを行う場合、コンベアと
ロボットは、協調動作を行わなければならない。コンベ
アとロボットのモデルは、それらが協調する部分で結合
する。協調関係定義に基づき、コンベア上でワークの到
着完了を示すarrivedイベントとロボットの動作
の開始を示すstartイベントを関連付け、それら2
つのイベントをつなげるようにして2つの機器モデルを
結合する。これにより、コンベアがワークを搬送し終わ
った後にロボットが動作を開始するという協調動作をモ
デルとして表現できる。FIG. 15 is an explanatory diagram showing a conventional state transition model that can combine models obtained for each device. In this conventional state transition model, places are represented by circles, events are represented by pentagonal and hexagonal arrowheads, and arcs are represented by arrows. In the conventional example shown in FIG.
8 shows a case where the eye and the robot operate in cooperation with each other. The conveyor has a stopped state and an operating state. The robot has an idle state and a state of transporting a work. When a workpiece is transferred between a conveyor and a robot, the conveyor and the robot must perform a cooperative operation. Conveyor and robot models are linked where they cooperate. Based on the cooperative relationship definition, an associated event indicating the completion of arrival of the work on the conveyor and a start event indicating the start of the operation of the robot are associated with each other.
The two device models are connected so as to connect two events. Thus, a cooperative operation in which the robot starts operating after the conveyor has finished transporting the work can be represented as a model.
【0009】[0009]
【発明が解決しようとする課題】しかしながら、従来の
状態遷移モデルとしてのペトリネットでは、モデルを個
別に作成しそれらを組み合わせる機能がなかった。その
ため、はじめからシステム全体のモデルを作成しなけれ
ばならず、大規模なシステムをモデル化することは困難
であるという課題があった。また、システムの一部を変
更する場合も、システム全体のモデルに対して修正を施
す必要があり、容易にシステム変更が行えないという課
題があった。さらに、既に提案されている機器モデルを
結合することが可能な従来の状態遷移モデルにおいて
も、以下の(1)、(2)に示す課題を有していた。However, in the conventional Petri net as a state transition model, there is no function of creating models individually and combining them. Therefore, it is necessary to create a model of the entire system from the beginning, and there is a problem that it is difficult to model a large-scale system. Further, even when a part of the system is changed, it is necessary to modify the model of the entire system, and there is a problem that the system cannot be easily changed. Furthermore, the conventional state transition model that can combine the already proposed device models also has the following problems (1) and (2).
【0010】(1)機器モデル間でやりとりするデータ
を扱えないという課題があった。従来の状態遷移モデル
では、機器モデル間でデータを扱うことが不可能なた
め、モデルとして管理する必要性のある情報は、すべて
モデルの状態として表現する必要があった。例えば図1
5に示す従来例では、ワークが3種類ありワークの種類
によりロボットの搬送先を変更するような場合、従来の
状態遷移モデルでは、ワークの種類の情報をデータとし
て保持することが不可能なので、ワークの種類を区別す
るために、ワークの種類毎にシーケンスを分岐しモデル
化する必要があり複雑になるという課題があった。図1
6は、上記したワークの種類を区別するためにワークの
種類毎にシーケンスを分岐しモデル化した従来例を示す
説明図である。このように従来では、類似した構成の挙
動シーケンスをワークの種類分だけ作成する必要があ
り、図16に示す従来例のように繁雑なモデルになって
いた。また、システムモデルにおいて、データを保持す
るだけではなく、その値を利用したり容易に変更可能な
機構が必要とされていた。(1) There is a problem that data exchanged between device models cannot be handled. In the conventional state transition model, since data cannot be handled between device models, all information that needs to be managed as a model has to be represented as a model state. For example, FIG.
In the conventional example shown in FIG. 5, when there are three types of workpieces and the transfer destination of the robot is changed according to the type of workpiece, the conventional state transition model cannot hold information on the type of workpiece as data. In order to distinguish the type of work, it is necessary to branch and model the sequence for each type of work, and there is a problem that the sequence becomes complicated. FIG.
FIG. 6 is an explanatory diagram showing a conventional example in which a sequence is branched and modeled for each type of work in order to distinguish the above-described types of work. As described above, in the related art, it is necessary to create a behavior sequence having a similar configuration for each type of work, which is a complicated model as in the conventional example shown in FIG. In addition, in the system model, a mechanism that not only holds data but also uses its value and can easily change the value is required.
【0011】(2)機器モデル間でのデータ通信ができ
ないという課題があった。仮に、各機器モデル内でデー
タを扱えた場合でも、それらのデータを他の機器と送受
信できる必要性があった。例えば、ワークが3種類あ
り、ワークの種類によりロボットの搬送先を変更するよ
うな場合、ロボットがワークの種類に応じた動作をする
ためには、コンベア側で保持しているワークの種類の情
報をロボット側が得る必要がある。しかし、従来の状態
遷移モデルでは、機器モデル間でのデータの通信をモデ
ルとして表現することができないという課題があった。(2) There is a problem that data communication cannot be performed between device models. Even if data could be handled in each device model, there was a need to be able to transmit and receive that data to and from other devices. For example, when there are three types of workpieces, and the transfer destination of the robot is changed according to the type of workpiece, in order for the robot to perform an operation according to the type of workpiece, information on the type of workpiece held on the conveyor side is required. Must be obtained by the robot. However, the conventional state transition model has a problem that data communication between device models cannot be represented as a model.
【0012】この発明は上記のような課題を解決するた
めになされたもので、モデル化する対象のシステムが多
数の機器から構成される大規模なシステムの場合であっ
ても、得られるシステムモデルが複雑になることなく、
また相互でデータ通信を必要とする機器からなるシステ
ムを容易に構成が複雑になることなくモデル化し、機器
モデル間でのデータの送受信を表現可能なシステムモデ
ル化方式及びデータ通信方式を得ることを目的とする。SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. Even if the system to be modeled is a large-scale system composed of a large number of devices, a system model to be obtained can be obtained. Without complicating
In addition, a system comprising devices that require data communication with each other is easily modeled without complicating the configuration, and a system modeling method and a data communication method capable of expressing data transmission and reception between device models are obtained. Aim.
【0013】[0013]
【課題を解決するための手段】請求項1記載の発明に係
るシステムモデル化方式は、モデル内で使用される変数
を定義する変数宣言部とシステムを構成する機器の状態
遷移を定義するモデル定義部から構成される状態遷移モ
デルを用いて、機器の制御シーケンスを表現し、機器の
モデルを相互に結合させ、変数宣言部に記載された変数
に対応した値をデータ格納領域から得てシステム全体の
動作を制御するシステムモデルを生成するものであり、
変数宣言部で宣言された変数を利用し、変数宣言部に記
述された演算等を実行可能な状態遷移モデルを作成し、
得られたモデルを結合してシステムモデルを作成するも
のである。According to a first aspect of the present invention, there is provided a system modeling method, comprising: a variable declaration section for defining variables used in a model; and a model definition for defining state transitions of devices constituting the system. Express the control sequence of the device by using the state transition model composed of the parts, connect the models of the device to each other, obtain the value corresponding to the variable described in the variable declaration section from the data storage area, and Is to generate a system model that controls the operation of
Using the variables declared in the variable declaration section, create a state transition model that can execute the operations etc. described in the variable declaration section,
The system model is created by combining the obtained models.
【0014】請求項2記載の発明に係るデータ通信方式
は、状態遷移モデルが使用される変数を定義する変数宣
言部とシステムを構成する機器やシステムの状態遷移を
定義するモデル定義部とで構成され、モデル定義部は機
器やシステムのイベントを定義するイベント部を有し、
イベント部はイベントの発火時に行う通信の対象となる
変数を定義する通信変数定義部を有し、通信変数定義部
を有するイベントをもつ複数の状態遷移モデル間の協調
動作する結合部分で、変数宣言部や通信変数定義部を用
いてデータを互いに通信でき、イベント発生時に、複数
のモデルの結合部分でデータを送受信するものである。According to a second aspect of the present invention, there is provided a data communication system comprising a variable declaration section for defining a variable in which a state transition model is used and a model definition section for defining a state transition of a device or a system constituting the system. The model definition part has an event part that defines the event of the device or system,
The event part has a communication variable definition part that defines a variable to be communicated at the time of firing of the event, and is a coupling part that cooperates between a plurality of state transition models having the event having the communication variable definition part, and a variable declaration. The data can be communicated with each other by using a communication unit and a communication variable definition unit, and when an event occurs, the data is transmitted and received at a connection portion of a plurality of models.
【0015】請求項3記載の発明に係るデータ通信方式
は、複数の状態遷移モデル間の結合部分において、ある
イベント部内の通信変数定義部で定義した送信対象の変
数の値を、他のイベント部内の通信変数定義部で定義し
た受信対象の変数で受け取り、データ通信を複数の状態
遷移モデル間の結合部分で実行し、イベント発生時に、
複数のモデルの結合部分においてイベント部内の通信変
数定義部で定義した送信対象の変数の値を通信変数定義
部で定義した受信変数へ渡すものである。In the data communication method according to the third aspect of the present invention, in a connection part between a plurality of state transition models, a value of a variable to be transmitted defined in a communication variable definition part in a certain event part is changed in another event part. Received in the variable of the reception target defined in the communication variable definition part of, execute data communication in the connection part between multiple state transition models, when the event occurs,
In the connection part of the plurality of models, the value of the variable to be transmitted defined by the communication variable definition part in the event part is transferred to the reception variable defined by the communication variable definition part.
【0016】請求項4記載の発明に係るデータ通信方式
は、複数のイベントに関する各イベント部内の通信変数
定義部で送信対象の変数および受信対象の変数を定義
し、複数の状態遷移モデル間のある1つのイベント結合
部分を介して、送信対象の変数および受信対象の変数に
関する複数のデータ通信を、複数の状態遷移モデル間で
行い、イベント発生時に、複数のモデルの結合部分にお
いてイベントの通信変数定義部で定義した送信対象の変
数から受信対象の変数へ同時に複数のデータを通信する
ものである。According to a fourth aspect of the present invention, there is provided a data communication method wherein a variable to be transmitted and a variable to be received are defined by a communication variable definition section in each event section relating to a plurality of events, and there is a plurality of state transition models. A plurality of data communications relating to a variable to be transmitted and a variable to be received are performed between a plurality of state transition models via one event coupling part, and when an event occurs, a communication variable definition of the event in the coupling part of the plurality of models when an event occurs A plurality of data are simultaneously communicated from the transmission target variable defined in the section to the reception target variable.
【0017】請求項5記載の発明に係るデータ通信方式
は、複数の状態遷移モデル間の結合部分において、ある
イベント部内の通信変数定義部で定義した送信対象の変
数および受信対象の変数の値と、他のイベント部内の通
信変数定義部で定義した受信対象の変数および送信対象
の変数とを用いて、双方向のデータ通信を複数の状態遷
移モデル間の結合部分で実行するものである。According to a fifth aspect of the present invention, there is provided a data communication system in which a value of a variable to be transmitted and a variable to be received defined by a communication variable definition section in a certain event section are used in a connection between a plurality of state transition models. The bidirectional data communication is executed at a connection between a plurality of state transition models by using a variable to be received and a variable to be transmitted defined by a communication variable definition unit in another event unit.
【0018】[0018]
【発明の実施の形態】以下、この発明の実施の一形態を
説明する。 実施の形態1.図1はこの発明の実施の形態1によるシ
ステムモデル化方式及びデータ通信方式を用いて得られ
たシステムモデルを示す説明図、図2はこの発明の実施
の形態によるシステムモデル化方式及びデータ通信方式
で使用されるデータ取扱い可能な状態遷移モデルを示す
構造図であり、図において、1は各機器モデルで使用さ
れる変数値を格納するためのデータ格納領域であり複数
のデータ領域から構成されている。2は各機器やシステ
ムをモデル化して得られる状態遷移モデルであり、変数
宣言部3およびモデル定義部4から構成される。モデル
定義部4は、イベント部5および入力プレース/出力プ
レース6からなる組を複数組備えた構成を有している。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below. Embodiment 1 FIG. FIG. 1 is an explanatory diagram showing a system model obtained by using a system modeling method and a data communication method according to a first embodiment of the present invention, and FIG. 2 is a system modeling method and a data communication method according to an embodiment of the present invention. FIG. 3 is a structural diagram showing a state transition model capable of handling data used in the present embodiment. In the figure, reference numeral 1 denotes a data storage area for storing variable values used in each device model, which is composed of a plurality of data areas. I have. Reference numeral 2 denotes a state transition model obtained by modeling each device or system, and includes a variable declaration unit 3 and a model definition unit 4. The model definition unit 4 has a configuration including a plurality of sets each including an event unit 5 and an input place / output place 6.
【0019】この実施の形態のシステムモデル化方式及
びデータ通信方式は、例えば図1に示す機器Aおよび機
器Bで構成されるシステムにおいて、2つの機器モデル
A、Bの結合部分を介して互いの機器モデルA、B間の
データ通信を可能とするものである。即ち、機器Aと機
器Bから構成されるシステムにおいて、機器Aのモデル
と機器Bのモデルのイベント結合部分で、機器Aの変数
Xの値を機器Bの変数Yで受信し、これによりシステム
内の機器Aおよび機器B間でのデータ通信をモデル化す
るものである。The system modeling method and the data communication method according to this embodiment are, for example, in a system composed of devices A and B shown in FIG. This enables data communication between the device models A and B. That is, in a system composed of the device A and the device B, the value of the variable X of the device A is received as the variable Y of the device B in the event connection part of the model of the device A and the model of the device B, and thereby the Modeling data communication between the device A and the device B.
【0020】次に動作について説明する。図1の説明図
に示すように、結合するイベントに、データを通信する
変数(通信変数)に関する情報を付加する。送信側のモ
デル(機器A側)では、結合するイベントに記述された
通信変数の情報をもとに、送信するデータの格納領域か
らその値を得て、受信側のモデルにその値を渡す。受信
側のモデルでは、結合するイベントに記述された通信変
数の情報をもとに、受信するデータの格納領域を得て、
受信したデータをデータ格納領域1内の所定のデータ領
域内に格納する。Next, the operation will be described. As shown in the explanatory diagram of FIG. 1, information on a variable for communicating data (communication variable) is added to the event to be combined. The model on the transmitting side (device A side) obtains the value from the storage area of the data to be transmitted based on the information of the communication variable described in the event to be combined, and passes the value to the model on the receiving side. In the model on the receiving side, based on the information of the communication variables described in the event to be combined, a storage area for the received data is obtained,
The received data is stored in a predetermined data area in the data storage area 1.
【0021】図2に示す状態遷移モデル2は、機器やシ
ステムの挙動を表現する。状態遷移モデル2においてデ
ータの取扱いを可能とするため、この実施の形態のシス
テムモデル化方式及びデータ通信方式で用いられる状態
遷移モデル2は、変数宣言部3と機器やシステムの状態
遷移を表現する情報をイベント毎に列挙した少なくとも
1つ以上のモデル定義部4、即ちイベント部5と入力プ
レース/出力プレース6から構成されており、具体的に
は、図2に示すように、(イベント1、入力プレース
1、出力プレース1)、...、(イベントn、入力プ
レースn、出力プレースn)からなる。A state transition model 2 shown in FIG. 2 expresses the behavior of a device or a system. In order to enable handling of data in the state transition model 2, the state transition model 2 used in the system modeling method and the data communication method of this embodiment expresses the variable declaration unit 3 and the state transition of the device or system. It is composed of at least one or more model definition units 4 that enumerate information for each event, that is, an event unit 5 and an input place / output place 6. Specifically, as shown in FIG. Input place 1, output place 1),. . . , (Event n, input place n, output place n).
【0022】変数宣言部3では、その機器モデル内で使
用する変数を宣言する。機器の状態遷移は、モデル定義
部4内のイベント部5とそのイベントに対する入力プレ
ース/出力プレース6によって表現される。入力プレー
ス/出力プレース6は複数個存在することもあり、その
場合はそれらをすべて列挙する(入力プレース1、出力
プレース1、...入力プレースn、出力プレースn等
々)。入力プレース/出力プレース6は、いずれも同じ
入出力プレース構造として定義する。モデル内のすべて
のイベントについて、これらの状態遷移を表す情報を列
挙して定義する。状態遷移モデル2で定義した複数のモ
デルを結合した場合、結合後のモデルも状態遷移モデル
2の構造を有するものとする。また、結合後のモデルで
は、結合したすべてのモデルの変数宣言部を統合した構
成となる。The variable declaration section 3 declares variables used in the device model. The state transition of the device is represented by an event section 5 in the model definition section 4 and an input place / output place 6 for the event. There may be a plurality of input places / output places 6, in which case all of them are listed (input place 1, output place 1, ... input place n, output place n, etc.). The input place / output place 6 are both defined as the same input / output place structure. Enumerate and define information representing these state transitions for all events in the model. When a plurality of models defined by the state transition model 2 are combined, it is assumed that the combined model also has the structure of the state transition model 2. Further, the combined model has a configuration in which the variable declaration sections of all the combined models are integrated.
【0023】図3は、図2に示した状態遷移モデル2内
の変数宣言部3を示す構成図である。この変数宣言部3
では、モデル内で用いるすべての変数に対して、その変
数名、変数の型、変数の初期値を記述する。変数の型
は、例えば、INT(整数)、REAL(実数)、BO
OL(TRUE/FALSE)等がある。変数の初期値
を設定する必要がない場合は、初期値の設定は省略して
もよい。変数宣言部3で宣言したすべての変数につい
て、その変数の型に応じたデータ領域をデータ格納領域
1内にそれぞれ確保する。FIG. 3 is a configuration diagram showing the variable declaration section 3 in the state transition model 2 shown in FIG. This variable declaration part 3
In, for each variable used in the model, the variable name, variable type, and initial value of the variable are described. Variable types are, for example, INT (integer), REAL (real number), BO
OL (TRUE / FALSE). If it is not necessary to set the initial value of the variable, the setting of the initial value may be omitted. For all variables declared by the variable declaration section 3, data areas corresponding to the types of the variables are secured in the data storage area 1, respectively.
【0024】図4は、図2に示した状態遷移モデル2内
の入力プレース/出力プレース6を示す構造図である。
入力プレースおよび出力プレースのそれぞれは、プレー
ス名とそれに対応する変数演算定義部との組を列挙した
構造をもつ(プレース名1、変数演算定義部1、...
プレース名n、変数演算定義部n)。ここで、変数演算
定義部とは、プレースにトークンが存在するときに実行
する演算を定義する部分である。例えば、図15に示し
たシステムモデル内のコンベアでワークを搬送している
ことを表す“run”のプレースにトークンが存在する
場合で、かつコンベアのモータをONする場合、コンベ
アの“run”というプレースに対応する変数演算定義
部には、例えば、“Motor:=TRUE”のような
定義が記述される。1つのイベントに対する入力プレー
スは複数存在することもある。FIG. 4 is a structural diagram showing an input place / output place 6 in the state transition model 2 shown in FIG.
Each of the input place and the output place has a structure in which a set of a place name and a corresponding variable operation definition unit are listed (place name 1, variable operation definition unit 1,...).
Place name n, variable operation definition part n). Here, the variable operation definition part is a part that defines an operation to be executed when a token exists in a place. For example, when a token exists in the place of “run” indicating that a workpiece is being conveyed by the conveyor in the system model shown in FIG. 15 and when the motor of the conveyor is turned ON, the “run” of the conveyor is referred to as “run”. For example, a definition such as “Motor: = TRUE” is described in the variable operation definition section corresponding to the place. There may be a plurality of input places for one event.
【0025】同様に、1つのイベントに対する出力プレ
ースは複数存在することもある。存在するプレースの数
だけ、プレース名と変数演算定義部の組を列挙する。例
えば、図15に示したシステムモデルで、コンベアの到
着完了を示すarrivedイベントとロボットの動作
開始を示すstartイベントとの結合イベントに対す
る入力プレースは、コンベアのrunプレースとロボッ
トのidleプレースであるので、その入力プレースの
構造には、プレース名と変数演算定義部の組が2つ列挙
される。Similarly, there may be a plurality of output places for one event. List the pairs of the place name and the variable operation definition part for the number of existing places. For example, in the system model shown in FIG. 15, the input places for the combined event of the activated event indicating the completion of arrival of the conveyor and the start event indicating the start of the operation of the robot are the run place of the conveyor and the idle place of the robot. In the structure of the input place, two pairs of a place name and a variable operation definition part are listed.
【0026】次に、状態遷移モデル2でデータを処理す
るために用いる変数演算定義部8について説明する。変
数演算定義部8は、変数を実際に用いて実行する演算式
とその演算結果を代入する変数を定義する部分から構成
される。この定義は、状態遷移モデル2の各入力プレー
ス/出力プレース6で行う。プレースに対して定義した
演算は、そのプレースにトークンが到着した時点で1度
だけ実行する。各変数演算定義部8には、変数や数値を
用いた演算式及びその演算結果を代入する変数を記述す
る。Next, the variable operation definition unit 8 used for processing data in the state transition model 2 will be described. The variable operation definition unit 8 includes a part that defines an operation expression to be executed using a variable and a variable to which the operation result is assigned. This definition is made in each input place / output place 6 of the state transition model 2. The operation defined for the place is executed only once when the token arrives at the place. Each variable operation definition unit 8 describes an operation expression using a variable or a numerical value and a variable to which the operation result is substituted.
【0027】図5は、図4に示した入力プレース/出力
プレース6内の変数演算定義部8の記述例を示す説明図
であり、図において、X0、X1はINT型、M0、M
1、M2はBOOL型である。例えば、X0の値と5と
の積をX1に代入することを“:=”を用いて“X1:
=X0*5”と記述する。変数演算定義部8における定
義は、このような代入文を列挙して行う。各代入文は、
例えば“;”という記号で区切る。FIG. 5 is an explanatory diagram showing a description example of the variable operation definition section 8 in the input place / output place 6 shown in FIG. 4. In FIG. 5, X0 and X1 are INT types, M0 and M.
1, M2 is a BOOL type. For example, substituting the product of the value of X0 and 5 for X1 is described as “X1:
= X0 * 5 ". The definition in the variable operation definition section 8 is performed by listing such assignment statements.
For example, they are separated by the symbol ";".
【0028】図6は、図2に示した状態遷移モデル2内
のイベント部5を示す構造図である。イベント部5は、
イベント名とイベント発火条件式と通信変数定義部7か
らなる組を複数個列挙した構造を持つ。ここで、イベン
ト発火条件式とは、イベントを引き起こすトリガとなる
条件式のことである。通信変数定義部7とは、イベント
発火時に通信する変数を定義する部分のことである。他
のモデルのイベントによって引き起こされるイベント
は、そのイベント自身では発火できないので、イベント
発火条件式は定義しない。FIG. 6 is a structural diagram showing the event part 5 in the state transition model 2 shown in FIG. Event part 5
It has a structure in which a plurality of sets each including an event name, an event firing condition expression, and a communication variable definition unit 7 are enumerated. Here, the event firing conditional expression is a conditional expression that is a trigger that causes an event. The communication variable definition unit 7 is a part that defines variables to be communicated when an event is fired. An event triggered by an event of another model cannot be fired by the event itself, so that an event firing conditional expression is not defined.
【0029】協調関係により結合したすべてのイベント
は、1つのイベント構造として定義する。結合している
イベントの数だけ、イベント名とイベント発火条件式と
通信変数定義部7の組を列挙する。例えば、図15に示
したシステムモデルでは、協調関係によりコンベアのa
rrivedというイベントとロボットのstartと
いうイベントが結合しているので、その部分は1つのイ
ベント構造で表され、そのイベント構造には、イベント
名とイベント発火条件式と通信変数定義部7の組が2つ
列挙される。All events linked by a cooperative relationship are defined as one event structure. A list of event names, event firing conditional expressions, and communication variable definition sections 7 is listed for the number of connected events. For example, in the system model shown in FIG.
Since the event “driven” and the event “start” of the robot are combined, the portion is represented by one event structure. Are listed.
【0030】イベント発火条件式として定義可能な条件
式は、BOOL値(TRUEまたはFALSE)をもつ
関係式、論理式あるいはそれらの組み合わせである。条
件式では関係演算子、論理演算子及び括弧を用いて表現
する。The conditional expression that can be defined as the event firing conditional expression is a relational expression having a BOOL value (TRUE or FALSE), a logical expression, or a combination thereof. The conditional expression is expressed using relational operators, logical operators, and parentheses.
【0031】図7は、図6に示したイベント内のイベン
ト発火条件式の例を示す説明図であり、図において、
“(X0<=5)AND(NOT M1)”は定義され
たイベントの発火条件であり、X0が5以下であり、か
つ、M1がFALSEであるときにイベントが発火する
ことを表している。これにより、複雑な条件によって状
態遷移を行うモデルを記述することが可能になる。FIG. 7 is an explanatory diagram showing an example of an event firing condition expression in the event shown in FIG.
“(X0 <= 5) AND (NOT M1)” is a defined event firing condition, and indicates that the event is fired when X0 is 5 or less and M1 is FALSE. This makes it possible to describe a model that performs state transitions under complicated conditions.
【0032】図15に示したシステムにおいて、ワーク
をコンベアによって搬送し、ある場所にワークが到着し
たらセンサが反応し、それに応じてロボットが動作を開
始するという場合、コンベアのarrivedというイ
ベントに対するイベント発火条件式は、例えば、“Se
nsor==TRUE”となる。In the system shown in FIG. 15, when a work is conveyed by a conveyor, and a sensor responds when the work arrives at a certain place, and the robot starts operating in response thereto, an event is fired for an event called "arrived" of the conveyor. The conditional expression is, for example, “Se
nsor == TRUE ”.
【0033】次に、機器間でデータを通信するデータ通
信方式について説明する。機器間でのデータの通信は、
ある所定のタイミングで行う。そのタイミングは、イベ
ントで表現される。即ち、機器間のデータ通信は、それ
らの機器モデルの結合(協調)部分で行う。Next, a data communication system for communicating data between devices will be described. Data communication between devices
This is performed at a predetermined timing. The timing is represented by an event. That is, the data communication between the devices is performed at the connection (cooperation) portion of those device models.
【0034】図1に示したシステムモデルの説明図は、
モデル間でのデータ通信を表現している。図1に示した
システムモデルの場合、機器Aと機器Bのイベント結合
部分で、機器Aの変数Xの値を機器Bの変数Yで受ける
ことにより、データの通信を行うことができる。図2に
示した状態遷移モデル2内の変数宣言部3で宣言された
変数の名前を、結合部分のイベントに関する通信変数定
義部7内に記述することにより、データ通信で使用する
変数の定義を行う。The explanatory diagram of the system model shown in FIG.
Expresses data communication between models. In the case of the system model shown in FIG. 1, data communication can be performed by receiving the value of the variable X of the device A by the variable Y of the device B in the event connection portion between the device A and the device B. By describing the name of the variable declared in the variable declaration section 3 in the state transition model 2 shown in FIG. 2 in the communication variable definition section 7 relating to the event of the connection part, the definition of the variable used in the data communication can be defined. Do.
【0035】図8は、図6に示したイベント内の通信変
数定義部7を示す構造図である。通信変数定義部7に
は、通信するすべてのデータに対して、通信相手を特定
するための通信識別子、通信する方向(送信あるいは受
信)、通信する変数の名前をそれぞれ記述する。図1に
示したシステムモデルの場合、2つのモデルの結合(協
調)部分において、機器Aのモデルのイベントに対応す
る通信変数定義部7では、例えば、通信識別子を“1”
と定義し、通信方向を“Send”と定義し、変数名を
“X”と定義する。また、機器Bのモデルのイベントに
対応する通信変数定義部7では、例えば、通信識別子を
“1”と定義し、通信方向を“Recv”と定義し、変
数名を“Y”と定義する。FIG. 8 is a structural diagram showing the communication variable definition unit 7 in the event shown in FIG. The communication variable definition unit 7 describes a communication identifier for specifying a communication partner, a communication direction (transmission or reception), and a name of a variable to be communicated for all data to be communicated. In the case of the system model shown in FIG. 1, in the connection (cooperation) part of the two models, the communication variable definition unit 7 corresponding to the event of the model of the device A sets the communication identifier to “1”, for example.
, The communication direction is defined as “Send”, and the variable name is defined as “X”. In the communication variable definition unit 7 corresponding to the event of the model of the device B, for example, the communication identifier is defined as “1”, the communication direction is defined as “Recv”, and the variable name is defined as “Y”.
【0036】図9は、この実施の形態のシステムモデル
化方式及びデータ通信方式を用いて得られた3つの機器
からなるシステムモデルを示す説明図である。図1に示
したシステムモデルの例では、機器Aと機器Bの2つの
機器モデル間でのデータ通信であったが、この発明のシ
ステムモデル化方式及びデータ通信方式によれば、図9
に示すように、3つの機器モデルが結合した場合も、2
つ機器モデルからなるシステムモデルの場合と同様に、
機器モデル間でのデータ通信を定義することができる。
図9に示すシステムモデルの例では、3つのモデルのイ
ベント結合部分で、機器Aの変数Xの値を機器Bの変数
Y及び機器Cの変数Zで受けることを表している。この
ように、この発明のシステムモデル化方式及びデータ通
信方式によれば、結合するモデルの数がさらに増加した
場合であっても、上記と同様にしてモデル間のデータ通
信を定義することができる。FIG. 9 is an explanatory diagram showing a system model including three devices obtained by using the system modeling method and the data communication method according to this embodiment. In the example of the system model shown in FIG. 1, data communication is performed between the two device models of the device A and the device B. However, according to the system modeling method and the data communication method of the present invention, FIG.
As shown in the figure, when three device models are combined,
As in the case of the system model consisting of one device model,
Data communication between device models can be defined.
In the example of the system model shown in FIG. 9, it is shown that the value of the variable X of the device A is received by the variable Y of the device B and the variable Z of the device C in the event connection part of the three models. As described above, according to the system modeling method and the data communication method of the present invention, even when the number of coupled models further increases, data communication between models can be defined in the same manner as described above. .
【0037】他のモデルのイベントを引き起こすイベン
トに係る通信変数定義部7には、送信するすべてのデー
タについて定義する。他のモデルのイベントによって引
き起こされるイベントの通信変数定義部7には、送信側
に対応するように受信するすべてのデータについて定義
する。すなわち、1つのイベント結合部分で複数のデー
タを送受信することができる。これにより、送信側のイ
ベントの通信変数定義部7に記述した変数の値を、その
イベントに結合したすべての受信側のイベントの通信変
数定義部7に記述した変数へ渡す動作、即ちデータ通信
を行うことができる。All data to be transmitted are defined in the communication variable definition unit 7 relating to an event causing an event of another model. In the communication variable definition unit 7 of an event caused by an event of another model, all data to be received are defined so as to correspond to the transmission side. That is, a plurality of data can be transmitted / received by one event connection part. Thus, the operation of passing the value of the variable described in the communication variable definition unit 7 of the event on the transmission side to the variable described in the communication variable definition unit 7 of all the events on the reception side coupled to the event, that is, data communication is performed. It can be carried out.
【0038】図10は、この実施の形態のシステムモデ
ル化方式及びデータ通信方式を用いて得られた2つの機
器からなる他のシステムモデルを示す説明図である。こ
の発明のシステムモデル化方式及びデータ通信方式で
は、他のモデルのイベントを引き起こすイベントの通信
変数定義部7内に送信するデータを定義し、他のモデル
のイベントによって引き起こされるイベントの通信変数
定義部7内に受信するデー夕を定義する必要は必ずしも
なく、例えば、図10に示すように、他のモデルのイベ
ントにより引き起こされるイベントの通信変数定義部7
内に送信するデータを定義し、他のモデルのイベントを
引き起こすイベントの通信変数定義部7内に受信するデ
ータを定義してもよい。FIG. 10 is an explanatory diagram showing another system model composed of two devices obtained by using the system modeling method and the data communication method of this embodiment. In the system modeling method and the data communication method according to the present invention, data to be transmitted in the communication variable definition unit 7 for an event causing an event of another model is defined, and the communication variable definition unit for an event caused by an event of another model is defined. It is not necessary to define the data to be received in the communication variable definition unit 7. For example, as shown in FIG.
May be defined, and data to be received may be defined in the communication variable definition unit 7 for an event that causes an event of another model.
【0039】図10に示したシステムモデルの場合、機
器Aと機器Bのイベント結合部分で、機器Bの変数Yの
値を機器Aの変数Xで受けることにより、データの通信
を行っている。図10に示すように、変数宣言部3で宣
言した変数の名前をモデル結合部分のイベントの通信変
数定義部7に記述することにより、データを通信する変
数を定義する。In the case of the system model shown in FIG. 10, data communication is performed by receiving the value of the variable Y of the device B by the variable X of the device A at the event connection portion between the devices A and B. As shown in FIG. 10, a variable for data communication is defined by describing the name of the variable declared by the variable declaration section 3 in the communication variable definition section 7 of the event of the model connection part.
【0040】図10に示したシステムモデルは、機器A
と機器Bの2つのモデル間でのデータ通信の例であった
が、結合するモデルの数がさらに増加しても、同様にし
てモデル間のデータ通信を定義することができる。The system model shown in FIG.
Although the example of the data communication between the two models of the device B and the device B has been described, the data communication between the models can be similarly defined even if the number of models to be combined further increases.
【0041】図11は、この実施の形態のシステムモデ
ル化方式及びデータ通信方式を用いて得られた4つの機
器からなる他のシステムモデルを示す説明図である。こ
の発明のシステムモデル化方式及びデータ通信方式によ
れば、1つのイベント結合部分において送信するデータ
をもつイベントは1つである必要はなく、図11に示す
システムモデルの例のように、送信する変数を複数のイ
ベントで定義し、それらの値を受信する変数を、複数の
イベントで定義してもよい。通信する相手を特定できる
ように、通信変数定義部7内で通信識別子を定義するこ
とにより、1つのイベント結合部分において複数のデー
タ通信を行うことができる。FIG. 11 is an explanatory diagram showing another system model composed of four devices obtained by using the system modeling method and the data communication method of this embodiment. According to the system modeling method and the data communication method of the present invention, the number of events having data to be transmitted in one event connection portion does not need to be one, and is transmitted as in the example of the system model shown in FIG. Variables may be defined in multiple events, and variables that receive their values may be defined in multiple events. By defining a communication identifier in the communication variable definition unit 7 so that a communication partner can be specified, a plurality of data communications can be performed in one event connection part.
【0042】図11に示すシステムモデルの例の場合、
4つの機器A、機器B、機器C、機器Dのイベント結合
部分で、機器Aの変数Xの値を機器Cの変数Zで受け、
機器Bの変数Yの値を機器Dの変数Wで受けるデータ通
信を行っている。この場合、4つのモデルの結合(協
調)部分において、例えば、機器Aのモデルのイベント
に対する通信変数定義部7では、通信識別子を“1”と
定義し、通信方向を“Send”と定義し、変数名を
“X”と定義し、機器Cのモデルのイベントに対する通
信変数定義部7では、通信識別子を“1”と定義し、通
信方向を“Recv”と定義し、変数名を“Z”と定義
する。また、機器Bのモデルのイベントに対する通信変
数定義部7では、通信識別子を“2”と定義し、通信方
向を“Send”と定義し、変数名を“Y”と定義し、
機器Dのモデルのイベントに対する通信変数定義部7で
は、通信識別子を“2”と定義し、通信方向を“Rec
v”と定義し、変数名を“W”と定義する。このように
して、1つのイベント結合部分で複数の異なるデータ通
信を表現することができる。In the case of the example of the system model shown in FIG.
In the event connection part of the four devices A, B, C and D, the value of the variable X of the device A is received as the variable Z of the device C,
Data communication is performed in which the value of the variable Y of the device B is received by the variable W of the device D. In this case, in the coupling (coordination) part of the four models, for example, the communication variable definition unit 7 for the event of the model of the device A defines the communication identifier as “1” and the communication direction as “Send”. The variable name is defined as “X”, the communication variable definition unit 7 for the event of the model of the device C defines the communication identifier as “1”, defines the communication direction as “Recv”, and sets the variable name as “Z”. Is defined. The communication variable definition unit 7 for the event of the model of the device B defines the communication identifier as “2”, defines the communication direction as “Send”, defines the variable name as “Y”,
The communication variable definition unit 7 for the event of the model of the device D defines the communication identifier as “2” and sets the communication direction to “Rec”.
v ”and the variable name is defined as“ W. ”In this manner, one event connection portion can express a plurality of different data communications.
【0043】図12は、この実施の形態のシステムモデ
ル化方式及びデータ通信方式を用いて得られた2つの機
器からなる他のシステムモデルを示す説明図である。こ
のシステムモデル化方式及びデータ通信方式では、上記
した各例の説明からもわかるように、結合したモデルの
1つのイベントの通信変数定義部7に複数の変数を定義
してもよいし、送信変数と受信変数とを共に定義しても
よい。図12に示すシステムモデル例の場合、機器Aと
機器Bのイベント結合部分で、機器Bの変数Yの値を機
器Aの変数Xで受け、機器Aの変数Zの値を機器Bの変
数Wで受けることで、双方向データ通信を行うことがで
きる。FIG. 12 is an explanatory diagram showing another system model composed of two devices obtained by using the system modeling method and the data communication method of this embodiment. In the system modeling method and the data communication method, as can be understood from the description of each example described above, a plurality of variables may be defined in the communication variable definition unit 7 for one event of the combined model, And the reception variable may be defined together. In the case of the system model example shown in FIG. 12, the value of the variable Y of the device A is received as the variable X of the device A, and the value of the variable Z of the device A is received as the variable W of the device B in the event connection portion between the devices A and B. , Two-way data communication can be performed.
【0044】送信側のイベント内の通信変数定義部7で
は、受信側が必要とするデータ以外のデータも定義され
ていることがある。そのような場合、送信側のイベント
内の通信変数定義部7で定義されたすべての送信データ
に対応する受信データを、受信側のイベント内の通信変
数定義部7で定義する必要はなく、必要なデータに対応
するものだけを定義すればよい。例えば、機器A、機器
B、機器Cの3つのモデルが1つのイベントで結合して
いる場合、その結合部分において、機器AからデータA
1とデータA2を送信し、機器BではデータA1を変数
Bで受け、機器CではデータA2を変数Cで受けたい場
合、機器Bのイベントの通信変数定義部7では、データ
A1に対応するように変数Bを定義するだけでよく、デ
ータA2に対応するような変数を定義する必要はない。
また、機器Cのイベントの通信変数定義部7では、デー
タA2に対応するように変数Cを定義するだけでよく、
データA1に対応するような変数を定義する必要はな
い。The communication variable definition unit 7 in the event on the transmitting side sometimes defines data other than the data required by the receiving side. In such a case, it is not necessary to define the reception data corresponding to all the transmission data defined in the communication variable definition unit 7 in the event on the transmission side in the communication variable definition unit 7 in the event on the reception side. It is only necessary to define those that correspond to important data. For example, if three models of device A, device B, and device C are combined in one event, the data A
1 and the data A2 are transmitted, and the device B receives the data A1 as the variable B, and the device C receives the data A2 as the variable C. Only need to define the variable B, and it is not necessary to define a variable corresponding to the data A2.
Further, the communication variable definition unit 7 for the event of the device C only needs to define the variable C so as to correspond to the data A2.
It is not necessary to define a variable corresponding to the data A1.
【0045】図13は、この実施の形態のシステムモデ
ル化方式及びデータ通信方式を用いて得られた2つの機
器からなる他のシステムモデルを示す説明図である。こ
のシステムモデル化方式及びデータ通信方式では、必ず
しも受信側の通信変数定義部7で定義したすべての変数
に対して、送信変数を他のモデルのイベントの通信変数
定義部7で定義する必要はない。その場合、対応する送
信変数がない受信変数には、初期値が格納される。図1
3に示すシステムモデルの例の場合、モデル結合部分の
イベントの通信変数定義部で、機器Bの受信変数Wに対
応する送信変数が定義されていないので、このイベント
が起こったときには、変数Wに初期値が格納される。FIG. 13 is an explanatory diagram showing another system model composed of two devices obtained by using the system modeling method and the data communication method of this embodiment. In the system modeling method and the data communication method, it is not always necessary to define the transmission variables for all the variables defined by the communication variable definition unit 7 on the receiving side in the communication variable definition unit 7 of the event of another model. . In this case, an initial value is stored in a reception variable having no corresponding transmission variable. FIG.
In the case of the example of the system model shown in FIG. 3, since the transmission variable corresponding to the reception variable W of the device B is not defined in the communication variable definition part of the event of the model coupling portion, when this event occurs, the variable W Initial value is stored.
【0046】さらに、上述した各システムモデルにおい
て、対応する送信変数がない受信変数に、必ずしも初期
値を格納する必要はなく、あらかじめ、ある値を定めて
おき、対応する送信変数がない受信変数には、その値が
格納されてもよい。Further, in each of the above-described system models, it is not always necessary to store an initial value in a reception variable having no corresponding transmission variable. May store its value.
【0047】以上のように、この実施の形態によれば、
システムを構成する各機器の挙動を定義する状態遷移モ
デル2内の変数宣言部3を用いてモデル内で使用するす
べての変数を定義し使用することが可能であるので、機
器の情報を状態として保持する必要性はなく、機器モデ
ルやシステムモデルの構造を簡潔に表現してモデルを容
易に作成できる。また、作成したモデルを協調関係に基
づいて結合する場合に、イベント部5内の通信変数定義
部7を用いて、あるタイミングでその結合するイベント
を通してデータを通信しモデル間で情報を互いに利用で
き、さらに、あるタイミングで結合するイベントを通し
て、同時に複数のデータ通信を行うことができるので、
モデル間で同時に多くの情報を互いに利用することがで
きる。As described above, according to this embodiment,
Since it is possible to define and use all variables used in the model using the variable declaration unit 3 in the state transition model 2 that defines the behavior of each device constituting the system, the information of the device is used as a state. There is no need to retain the model, and the model can be easily created by simply expressing the structure of the device model or the system model. Further, when the created models are connected based on the cooperative relationship, the communication variable definition unit 7 in the event unit 5 can be used to communicate data at a certain timing through the connected event and to use information between the models. , Furthermore, since multiple data communication can be performed simultaneously through an event that is combined at a certain timing,
A lot of information can be simultaneously used between models.
【0048】[0048]
【発明の効果】以上のように、請求項1記載の発明によ
れば、状態遷移モデルをモデル内で使用される変数を定
義する変数宣言部とシステムを構成する機器の状態遷移
を定義するモデル定義部とで構成し、この状態遷移モデ
ルを用いて、機器の制御シーケンスを表現し、機器のモ
デルを相互に結合させ、変数宣言部に記載された変数値
をデータ格納領域から得てシステム全体の動作を制御す
るシステムモデルを生成するように構成したので、機器
の情報を状態として保持する必要はなく、変数宣言部で
宣言された変数を利用し、変数宣言部に記述された演算
等を実行可能な状態遷移モデルを作成し、得られたモデ
ルを結合してシステムモデルを容易に煩雑になることな
く作成できる効果がある。As described above, according to the first aspect of the present invention, the state transition model is a variable declaration section for defining variables used in the model and a model for defining the state transition of the equipment constituting the system. The state transition model is used to represent the control sequence of the device, the model of the device is connected to each other, and the variable values described in the variable declaration section are obtained from the data storage area to obtain the entire system. Since it is configured to generate a system model that controls the operation of the device, it is not necessary to keep the device information as a state, and use the variables declared in the variable declaration section to perform operations etc. described in the variable declaration section. There is an effect that an executable state transition model is created, and the obtained models are combined to easily create a system model without becoming complicated.
【0049】請求項2記載の発明によれば、状態遷移モ
デルを使用される変数を定義する変数宣言部とシステム
を構成する機器やシステムの状態遷移を定義するモデル
定義部とで構成し、状態遷移モデル内のモデル定義部は
機器やシステムのイベントを定義するイベント部を有
し、イベント部はイベントの発火時に行う通信の対象と
なる変数を定義する通信変数定義部を有し、通信変数定
義部を有するイベントをもつ複数の状態遷移モデル間の
協調動作する部分で状態遷移モデルを結合させ、変数宣
言部や通信変数定義部を用いて状態遷移モデル間の結合
部分でデータを互いに通信可能となるように構成したの
で、機器の情報を状態として保持する必要はなく、イベ
ント発生時に複数のモデルの結合部分で行われるデータ
の送受信を含む状態遷移モデルを簡潔に表現できる効果
がある。According to the second aspect of the present invention, the state transition model comprises a variable declaration section for defining variables to be used and a model definition section for defining state transitions of devices and systems constituting the system. The model definition part in the transition model has an event part that defines an event of a device or a system, and the event part has a communication variable definition part that defines a variable to be communicated when an event is fired. Combine state transition models in a part that cooperates between multiple state transition models that have an event with a part, and use the variable declaration part and communication variable definition part to communicate data with each other in the connection part between the state transition models. It is not necessary to keep the device information as a state because it is configured to be a state that includes data transmission and reception that is performed at the joint of multiple models when an event occurs There is an effect that can be succinctly expressed the transfer model.
【0050】請求項3記載の発明によれば、複数の状態
遷移モデル間の結合部分において、あるイベント部内の
通信変数定義部で定義した送信対象の変数の値を、他の
イベント部内の通信変数定義部で定義した受信対象の変
数で受け取り、データ通信を複数の状態遷移モデル間の
結合部分で実行するように構成したので、イベント発生
時に、複数のモデルの結合部分においてイベントの通信
変数定義部で定義した送信対象の変数の値を通信変数定
義部で定義した受信変数へ渡すことができ、相互のモデ
ル間で情報を互いに利用できる効果がある。According to the third aspect of the present invention, in the connection between the plurality of state transition models, the value of the variable to be transmitted defined by the communication variable definition in one event part is replaced by the communication variable in another event part. Since it is configured to receive by the variable of the reception target defined in the definition part and execute data communication in the connection part between multiple state transition models, when an event occurs, the communication variable definition part of the event in the connection part of multiple models The value of the variable to be transmitted defined in (1) can be passed to the reception variable defined in the communication variable definition section, and there is an effect that information can be mutually used between the models.
【0051】請求項4記載の発明によれば、複数のイベ
ントに関する各イベント部内の通信変数定義部で送信対
象の変数および受信対象の変数を定義し、複数の状態遷
移モデル間のある1つの結合部分を介して、送信対象の
変数および受信対象の変数に関する複数のデータ通信
を、複数の状態遷移モデル間で実行するように構成した
ので、イベント発生時に、複数のモデルの結合部分にお
いてイベントの通信変数定義部で定義した送信対象の変
数から受信対象の変数へ同時に複数のデータを通信して
情報を互いに利用できる効果がある。According to the fourth aspect of the present invention, the variables to be transmitted and the variables to be received are defined by the communication variable definition section in each event section relating to a plurality of events, and one connection between the plurality of state transition models is defined. Since a plurality of data communications relating to variables to be transmitted and variables to be received are executed between a plurality of state transition models via a portion, when an event occurs, communication of the event is performed in a joint portion of the plurality of models when an event occurs. There is an effect that a plurality of data can be simultaneously communicated from a transmission target variable defined by the variable definition unit to a reception target variable and information can be used mutually.
【0052】請求項5記載の発明によれば、複数の状態
遷移モデル間の結合部分において、あるイベント部内の
通信変数定義部で定義した送信対象の変数および受信対
象の変数の値と、他のイベント部内の通信変数定義部で
定義した受信対象の変数および送信対象の変数とを用い
て、双方向のデータ通信を複数の状態遷移モデル間の結
合部分で実行するように構成したので、モデル間で多く
の情報を一度に利用し合えるという効果がある。According to the fifth aspect of the present invention, at the connection between a plurality of state transition models, the value of the variable to be transmitted and the variable to be received defined by the communication variable definition section in a certain event section are compared with the values of other variables. Using the variables to be received and variables to be transmitted defined in the communication variable definition part in the event part, bidirectional data communication is configured to be executed at the connection between multiple state transition models. This has the effect that many pieces of information can be used at once.
【図1】 この発明の実施の形態1によるシステムモデ
ル化方式及びデータ通信方式を用いて得られたシステム
モデルを示す説明図であり、特に、モデル結合部分にお
けるモデル間でのデータ通信の例を示す説明図である。FIG. 1 is an explanatory diagram showing a system model obtained by using a system modeling method and a data communication method according to a first embodiment of the present invention; in particular, an example of data communication between models in a model connection portion; FIG.
【図2】 この発明の実施の形態1によるシステムモデ
ル化方式及びデータ通信方式で使用されるデータ取扱い
可能な状態遷移モデルを示す構造図である。FIG. 2 is a structural diagram showing a data-capable state transition model used in a system modeling method and a data communication method according to the first embodiment of the present invention.
【図3】 図2に示した状態遷移モデル内の変数宣言部
を示す構成図である。FIG. 3 is a configuration diagram showing a variable declaration section in the state transition model shown in FIG. 2;
【図4】 図2に示した状態遷移モデル内の入力プレー
ス/出力プレースを示す構造図である。FIG. 4 is a structural diagram showing an input place / output place in the state transition model shown in FIG. 2;
【図5】 図4に示した入力プレース/出力プレース内
の変数演算定義部の記述例を示す説明図である。FIG. 5 is an explanatory diagram showing a description example of a variable operation definition section in the input place / output place shown in FIG. 4;
【図6】 図2に示した状態遷移モデル内のイベントを
示す構造図である。FIG. 6 is a structural diagram showing an event in the state transition model shown in FIG. 2;
【図7】 図6に示したイベント内のイベント発火条件
式の例を示す説明図である。FIG. 7 is an explanatory diagram showing an example of an event firing condition expression in the event shown in FIG. 6;
【図8】 図6に示したイベント内の通信変数定義部を
示す構造図である。FIG. 8 is a structural diagram showing a communication variable definition part in the event shown in FIG. 6;
【図9】 この発明のシステムモデル化方式及びデータ
通信方式を用いて得られた3つの機器からなるシステム
モデルを示す説明図である。FIG. 9 is an explanatory diagram showing a system model including three devices obtained by using the system modeling method and the data communication method according to the present invention.
【図10】 この発明の実施の形態1によるシステムモ
デル化方式及びデータ通信方式を用いて得られた2つの
機器からなる他のシステムモデルを示す説明図である。FIG. 10 is an explanatory diagram illustrating another system model including two devices obtained by using the system modeling method and the data communication method according to the first embodiment of the present invention.
【図11】 この発明の実施の形態1によるシステムモ
デル化方式及びデータ通信方式を用いて得られた4つの
機器からなる他のシステムモデルを示す説明図である。FIG. 11 is an explanatory diagram showing another system model including four devices obtained by using the system modeling method and the data communication method according to the first embodiment of the present invention.
【図12】 この発明の実施の形態1によるシステムモ
デル化方式及びデータ通信方式を用いて得られた2つの
機器からなる他のシステムモデルを示す説明図である。FIG. 12 is an explanatory diagram showing another system model including two devices obtained using the system modeling method and the data communication method according to the first embodiment of the present invention.
【図13】 この発明の実施の形態1によるシステムモ
デル化方式及びデータ通信方式を用いて得られた2つの
機器からなる他のシステムモデルを示す説明図である。FIG. 13 is an explanatory diagram showing another system model including two devices obtained by using the system modeling method and the data communication method according to the first embodiment of the present invention.
【図14】 従来の状態遷移モデルとしてのペトリネッ
トを用いてモデル化されたシステムを示す説明図であ
る。FIG. 14 is an explanatory diagram showing a system modeled using a Petri net as a conventional state transition model.
【図15】 機器毎に得られるモデルを結合できる従来
の状態遷移モデルを示す説明図である。FIG. 15 is an explanatory diagram showing a conventional state transition model that can combine models obtained for each device.
【図16】 ワークの種類を区別するためにワークの種
類毎にシーケンスを分岐しモデル化した複雑な従来のシ
ステムモデルを示す説明図である。FIG. 16 is an explanatory diagram showing a complicated conventional system model in which a sequence is branched and modeled for each type of work in order to distinguish the type of work.
1 データ格納領域、2 状態遷移モデル、3 変数宣
言部、4 モデル定義部、5 イベント部、7 通信変
数定義部。1 Data storage area, 2 State transition model, 3 Variable declaration section, 4 Model definition section, 5 Event section, 7 Communication variable definition section.
Claims (5)
数宣言部とシステムを構成する機器の状態遷移を定義す
るモデル定義部から構成される状態遷移モデルを用いて
前記機器の制御シーケンスを表現し、前記機器のモデル
を相互に結合させ、前記変数宣言部に記載された前記変
数に対応する値をデータ格納領域から得てシステム全体
の動作を制御するシステムモデルを生成することを特徴
とするシステムモデル化方式。1. A control sequence of a device is expressed by using a state transition model including a variable declaration unit that defines a variable used in a model and a model definition unit that defines a state transition of a device constituting a system. And combining the model of the device with each other, obtaining a value corresponding to the variable described in the variable declaration section from a data storage area, and generating a system model for controlling the operation of the entire system. System modeling method.
する変数宣言部とシステムを構成する機器や前記システ
ムの状態遷移を定義するモデル定義部とから構成され、
前記モデル定義部は前記機器や前記システムのイベント
を定義するイベント部を有し、前記イベント部は前記イ
ベントの発火時に行う通信の対象となる変数を定義する
通信変数定義部を有し、前記通信変数定義部を有するイ
ベントをもつ複数の状態遷移モデル間の協調動作する結
合部分で、前記変数宣言部や前記通信変数定義部を用い
てデータを互いに通信することを特徴とするデータ通信
方式。2. A state transition model includes a variable declaration section for defining a variable to be used and a model definition section for defining a device constituting the system and a state transition of the system.
The model definition unit includes an event unit that defines an event of the device or the system. The event unit includes a communication variable definition unit that defines a variable to be communicated when the event is fired. A data communication system, characterized in that data is communicated with each other using the variable declaration unit and the communication variable definition unit at a connection part that cooperates between a plurality of state transition models having an event having a variable definition unit.
いて、あるイベント部内の通信変数定義部で定義した送
信対象の変数の値を、他のイベント部内の通信変数定義
部で定義した受信対象の変数で受け取り、データ通信を
前記複数の状態遷移モデル間の結合部分で実行すること
を特徴とする請求項2記載のデータ通信方式。3. In a connection part between a plurality of state transition models, a value of a variable to be transmitted defined by a communication variable definition part in a certain event part is replaced by a value of a reception target defined by a communication variable definition part in another event part. 3. The data communication method according to claim 2, wherein the data communication is performed by a variable and the data communication is executed at a connection portion between the plurality of state transition models.
の通信変数定義部で送信対象の変数および受信対象の変
数を定義し、複数の状態遷移モデル間のある1つの状態
遷移モデル結合部分を介して、前記送信対象の前記変数
および前記受信対象の前記変数に関する複数のデータ通
信を、前記複数の状態遷移モデル間で実行することを特
徴とする請求項2記載のデータ通信方式。4. A variable to be transmitted and a variable to be received are defined by a communication variable definition part in each event part relating to a plurality of events, and a plurality of state transition models are connected via a certain state transition model coupling part. 3. The data communication method according to claim 2, wherein a plurality of data communications regarding the variable to be transmitted and the variable to be received are executed between the plurality of state transition models.
いて、あるイベント部内の通信変数定義部で定義した送
信対象の変数および受信対象の変数の値と、他のイベン
ト部内の通信変数定義部で定義した受信対象の変数およ
び送信対象の変数とを用いて、双方向のデータ通信を前
記複数の状態遷移モデル間の結合部分で実行することを
特徴とする請求項2記載のデータ通信方式。5. In a connection part between a plurality of state transition models, a value of a transmission target variable and a reception target variable defined in a communication variable definition part in a certain event part and a communication variable definition part in another event part are used. 3. The data communication method according to claim 2, wherein two-way data communication is executed at a connection between the plurality of state transition models using the defined variable to be received and variable to be transmitted.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9128991A JPH10320187A (en) | 1997-05-19 | 1997-05-19 | System modeling method and data communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP9128991A JPH10320187A (en) | 1997-05-19 | 1997-05-19 | System modeling method and data communication method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH10320187A true JPH10320187A (en) | 1998-12-04 |
Family
ID=14998431
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP9128991A Pending JPH10320187A (en) | 1997-05-19 | 1997-05-19 | System modeling method and data communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH10320187A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006268332A (en) * | 2005-03-23 | 2006-10-05 | Kyushu Institute Of Technology | Dialog information processing apparatus and dialog information processing method |
| JP2007102707A (en) * | 2005-10-07 | 2007-04-19 | Toshiba Corp | State management method and portable terminal |
| JP2007241435A (en) * | 2006-03-06 | 2007-09-20 | Mitsubishi Electric Corp | Model generation apparatus and model generation program |
| JP2013176804A (en) * | 2012-02-09 | 2013-09-09 | Nippon Steel & Sumitomo Metal Corp | Method, device and program for supporting update of discrete model of manufacturing process |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0475135A (en) * | 1990-07-17 | 1992-03-10 | Sharp Corp | Program developing device |
| JPH04205423A (en) * | 1990-11-30 | 1992-07-27 | Seiko Epson Corp | Program creation device |
| JPH0772920A (en) * | 1993-09-03 | 1995-03-17 | Hitachi Ltd | FA system control method and device |
-
1997
- 1997-05-19 JP JP9128991A patent/JPH10320187A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0475135A (en) * | 1990-07-17 | 1992-03-10 | Sharp Corp | Program developing device |
| JPH04205423A (en) * | 1990-11-30 | 1992-07-27 | Seiko Epson Corp | Program creation device |
| JPH0772920A (en) * | 1993-09-03 | 1995-03-17 | Hitachi Ltd | FA system control method and device |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006268332A (en) * | 2005-03-23 | 2006-10-05 | Kyushu Institute Of Technology | Dialog information processing apparatus and dialog information processing method |
| JP2007102707A (en) * | 2005-10-07 | 2007-04-19 | Toshiba Corp | State management method and portable terminal |
| JP2007241435A (en) * | 2006-03-06 | 2007-09-20 | Mitsubishi Electric Corp | Model generation apparatus and model generation program |
| JP2013176804A (en) * | 2012-02-09 | 2013-09-09 | Nippon Steel & Sumitomo Metal Corp | Method, device and program for supporting update of discrete model of manufacturing process |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Bruno et al. | Process-translatable Petri nets for the rapid prototyping of process control systems | |
| US7024250B2 (en) | Method and apparatus for the synchronous control of manipulations | |
| Der Jeng et al. | A review of synthesis techniques for Petri nets with applications to automated manufacturing systems | |
| Teng et al. | Cellular manufacturing systems modeling: the Petri net approach | |
| JPH1078876A (en) | Scheduling method for distributed transaction | |
| Jiang et al. | Object-oriented Petri nets with changeable structure (OPNs-CS) for production system modelling | |
| Lewis et al. | Control system design for flexible manufacturing systems | |
| Sauer | Marking optimization of weighted marked graphs | |
| JPH10320187A (en) | System modeling method and data communication method | |
| EP4155904B1 (en) | Graphical programming method, processor, and terminal | |
| Pawletta et al. | A devs-based approach for modeling and simulation of hybrid variable structure systems | |
| Li et al. | Improved net rewriting system-based approach to model reconfiguration of reconfigurable manufacturing systems | |
| Wang et al. | Modular modeling using Petri nets | |
| Jiang et al. | Automatic Modelling of One-of-a-Kind Production Systems by Temporised Object-Oriented Petri Nets with Changeable Structure (TOPNs–CS). | |
| Giua et al. | GRAFCET and Petri nets in manufacturing | |
| Jiang et al. | Stochastic object-oriented Petri nets (SOPNs) for reliability modeling of manufacturing systems | |
| Yalcin et al. | An architecture for flexible manufacturing cells with alternate machining and alternate sequencing | |
| EP3729348B1 (en) | System and method for generating a plant bill of process | |
| Harris et al. | Machine planning for manufacturing: dynamic resource allocation and on-line supervisory control | |
| Basile et al. | Modeling and logic controller specification of flexible manufacturing systems using behavioral traces and Petri net building blocks | |
| Lin et al. | Modeling and analysis of message passing in distributed manufacturing systems | |
| Bachula et al. | The study of distributed manufacturing control system self-configuration | |
| Tu et al. | Automatic Modelling of One-of-a-Kind Production Systems by Temporised Object-Oriented Petri Nets with Changeable Structure (TOPNs–CS) | |
| Yasuda et al. | A computer network based control architecture for autonomous distributed multirobot systems | |
| CN120461420A (en) | Dual robotic arm control method, control device, electronic device, and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050627 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050712 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050909 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20051025 |