JPH08147150A - Program generatior - Google Patents

Program generatior

Info

Publication number
JPH08147150A
JPH08147150A JP28814994A JP28814994A JPH08147150A JP H08147150 A JPH08147150 A JP H08147150A JP 28814994 A JP28814994 A JP 28814994A JP 28814994 A JP28814994 A JP 28814994A JP H08147150 A JPH08147150 A JP H08147150A
Authority
JP
Japan
Prior art keywords
program
pipe
group
plant
template
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
JP28814994A
Other languages
Japanese (ja)
Inventor
Hideji Kawada
秀司 川田
Seiichiro Tanaka
誠一郎 田中
Naoshi Uchihira
直志 内平
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP28814994A priority Critical patent/JPH08147150A/en
Publication of JPH08147150A publication Critical patent/JPH08147150A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE: To provide a program generator which efficiently produces parts. CONSTITUTION: A first setting means 1 used the attribute to be concretized for each group of plural desired devices to set a template where the operation of this group is generally represented as the original form of a part of a program. The constitution of a plant as the simulation object is inputted from an input means 2 as groups, attributes, and connection relations among these groups. A synthesizing means 3 concretely attributes included in respcetive templates corresponding to groups included in the described constitution to generate the partial programs as a part of the program and synthesizes these partial programs based on connection relations in the constitution of the plant to prepare the program. The synthesized program is executed by an execution means 4.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、各種プラントの動作を
シミュレートするプログラムを作成するプログラム作成
装置の改良に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improvement in a program creating device for creating a program for simulating the operation of various plants.

【0002】[0002]

【従来の技術】化学プラントや発電プラントなど各種の
プラントでは、液体/気体/電気/熱など媒体やエネル
ギー(本明細書において「実体」という)を扱う。これ
らのプラントを制御する制御ソフトウェアのテストや検
証、運転訓練などプラント制御に関する作業では、安全
性、費用、効率などの点からシミュレーションが用いら
れる。
2. Description of the Related Art In various plants such as a chemical plant and a power plant, a medium such as liquid / gas / electricity / heat or energy (hereinafter referred to as “entity”) is handled. In operations related to plant control such as testing and verification of control software for controlling these plants and operation training, simulation is used in terms of safety, cost and efficiency.

【0003】具体的には、プラントの動作をコンピュー
タのプログラムでシミュレートするが、この種のプログ
ラムはほとんどの場合、プラントの系統図などを基に人
間が作成することになり、その実現には多くの手間を要
する。この作業負荷を軽減することを目的とし、例えば
特開昭64−38804では、シミュレータ作成のため
のモデル化方式が提案されている。
Specifically, the operation of a plant is simulated by a computer program. In most cases, this type of program is created by humans based on a plant system diagram, etc. It takes a lot of work. For the purpose of reducing this work load, for example, Japanese Patent Laid-Open No. 64-38804 proposes a modeling method for creating a simulator.

【0004】[0004]

【発明が解決しようとする課題】しかし、このような方
式を用いても、作成作業は人間が手作業で行っており、
作業負荷の軽減に対する要求は依然多い。
However, even if such a method is used, the creation work is performed manually by a human being,
There are still many demands for reducing the work load.

【0005】これに対し、特開平4−273524(接
続関係からの部品合成方法)のような技術も提案されて
いる。この技術は、プラントを構成する部品ごとの動作
を表す部分プログラムを準備し、部品(ごとの部分プロ
グラム)を接続することによってプラントの動作を実現
する。この技術を用いる場合、予め十分な種類の部品が
用意されていればシミュレーション用プログラムを自動
的に生成し利用することができる。しかし、この方式で
は、部品作成が非常に難しく、利用者が部品作成を行な
う場合の手順が繁雑である。
On the other hand, a technique such as Japanese Unexamined Patent Publication No. 4-273524 (a method for synthesizing components from a connection relation) has been proposed. This technique realizes the operation of a plant by preparing a partial program that represents the operation of each part that constitutes the plant and connecting the parts (each partial program). When this technique is used, a simulation program can be automatically generated and used if sufficient types of parts are prepared in advance. However, with this method, it is very difficult to create a part, and the procedure when the user creates a part is complicated.

【0006】例えば、上記特開平4−273524で
は、部品/合成単位を、直接制御を行なう機器、もしく
はセンサとしての働きをする機器としている。しかし、
1つの接続点に対し3つ以上の機器が結合する場合が想
定されるような部品では(図11)、具体的な接続関係
により各部品の動作パターンを変化させなければならな
い。このため、まず、部品の構成が非常に複雑な構造と
なる。このため、予めすべての部品を用意することがで
きないのみならず、作業者による部品作成の負担が増大
するという問題があった。
For example, in the above-mentioned Japanese Patent Laid-Open No. 4-273524, the component / synthesis unit is a device that directly controls or a device that functions as a sensor. But,
In the case of parts where it is assumed that three or more devices are connected to one connection point (FIG. 11), the operation pattern of each part must be changed according to the specific connection relationship. For this reason, first, the structure of the parts becomes a very complicated structure. Therefore, there is a problem that not only all the parts cannot be prepared in advance, but also the burden of making parts by the operator increases.

【0007】本発明は、上記のような従来技術の問題点
を解決するために提案されたもので、その目的は、部品
作成を効率化するプログラム作成装置を提供することで
ある。また、本発明の他の目的は、現実の因果に沿った
合理的なシミュレーションを行うプログラム作成装置を
提供することである。また、本発明の他の目的は、シミ
ュレート時の初期設定が容易なプログラム作成装置を提
供することである。
The present invention has been proposed in order to solve the above-mentioned problems of the prior art, and an object thereof is to provide a program creating apparatus that makes parts creation efficient. Another object of the present invention is to provide a program creation device that performs a rational simulation in accordance with the actual cause and effect. Another object of the present invention is to provide a program creation device that can be easily initialized during simulation.

【0008】[0008]

【課題を解決するための手段】上記の目的を達成するた
め、請求項1の発明は、プラントの動作をシミュレート
するプログラムを作成するプログラム作成装置におい
て、前記プラントは、種類ごとの機能を果たす機能機器
とこの機能機器間で媒体及びエネルギーのうち少なくと
も一方を伝達する伝達機器とを含み、前記プログラム作
成装置は、所望の複数の前記機器のグループごとに、具
体化されるべき属性を用いて当該グループの動作を前記
プログラムの一部の原形として一般的に表したテンプレ
ートを設定するための、第1の設定手段と、シミュレー
ト対象とする前記プラントの構成を、前記グループと前
記属性、それらグループの接続関係として入力するため
の入力手段と、記述された前記構成に含まれる前記各グ
ループに対応する前記各テンプレートについて、当該テ
ンプレートに含まれる前記属性を具体的に設定して、前
記プログラムの一部である部分プログラムを生成し、こ
れら部分プログラムをプラントの前記構成における前記
接続関係に基づいて合成し前記プログラムを作成する合
成手段と、合成された前記プログラムを実行する実行手
段と、を有することを特徴とする。
In order to achieve the above object, the invention of claim 1 is a program creating apparatus for creating a program for simulating the operation of a plant, wherein the plant performs a function for each type. The program creation device includes a functional device and a transmission device that transmits at least one of a medium and energy between the functional device, and the program creation device uses an attribute to be embodied for each group of the desired plural devices. A first setting means for setting a template that generally represents the operation of the group as a prototype of a part of the program, and the configuration of the plant to be simulated, the group, the attribute, and Input means for inputting as a connection relationship of groups, and corresponding to each group included in the described configuration For each template, the attributes included in the template are specifically set to generate a partial program that is a part of the program, and the partial programs are synthesized based on the connection relationship in the configuration of the plant. It is characterized in that it has a synthesizing means for creating a program and an executing means for executing the synthesized program.

【0009】また、請求項2の発明は、請求項1記載の
プログラム作成装置において、前記グループの動作に含
まれる各処理について実行の優先順序を設定する第2の
設定手段を有し、前記実行手段は、この優先順序に基づ
いて前記プログラムを実行するように構成されたことを
特徴とする。
According to a second aspect of the present invention, in the program creating apparatus according to the first aspect, there is provided second setting means for setting a priority order of execution for each process included in the operation of the group, and the execution is performed. The means is configured to execute the program based on this priority order.

【0010】また、請求項3の発明は、請求項1記載の
プログラム作成装置において、前記属性は、シミュレー
ト時に決定すべき初期状態を表す変数を含むことを特徴
とする。
According to a third aspect of the present invention, in the program creating apparatus according to the first aspect, the attribute includes a variable indicating an initial state to be determined at the time of simulation.

【0011】また、請求項4の発明は、請求項1記載の
プログラム作成装置において、前記属性は前記伝達機器
の状態変数を含み、前記接続関係のある前記部分プログ
ラム同士がこの状態変数を共有することによって前記媒
体及びエネルギーのうち少なくとも一方の挙動が部分プ
ログラム間で授受されることを特徴とする。
[0012] According to a fourth aspect of the invention, in the program creating apparatus according to the first aspect, the attribute includes a state variable of the transmission device, and the partial programs having the connection relationship share this state variable. As a result, the behavior of at least one of the medium and energy is exchanged between partial programs.

【0012】[0012]

【作用】上記のような構成を有する本発明は、次のよう
な作用を有する。すなわち、請求項1の発明では、プラ
ントを構成する機能機器(被制御機器及びセンサ機器な
ど)と伝達機器(パイプ、電線等)から、機能機器とそ
の機器に接続された伝達機器、又は、3つ以上の伝達機
器を組み合わせるなどしてグループとする。このグルー
プがプラントを構成する部品となる。
The present invention having the above structure has the following functions. That is, in the invention of claim 1, from the functional equipment (controlled equipment, sensor equipment, etc.) and the transmission equipment (pipe, electric wire, etc.) constituting the plant, the functional equipment and the transmission equipment connected to the equipment, or 3 Create a group by combining two or more transmission devices. This group will be the components that make up the plant.

【0013】そして、各グループの動作を状態と処理な
どで表し、部分プログラムの原形であるテンプレートと
する。このテンプレートは状態変数や各種パラメータな
どプログラム合成時に具体化すべき属性によって一般的
に表されたひな型である。各グループの動作は、制御命
令による被制御機器の状態変化、制御による液体/気体
/電気/熱など媒体やエネルギー(本明細書において
「実体」という)の挙動(状態変化や伝達)、実体の挙
動によるセンサ機器の変化などであり、これらを、各機
器の状態、必要な初期状態及び属性、前記状態を変化さ
せる処理、その処理の起動条件によって記述する。
Then, the operation of each group is represented by the state and processing, and is used as a template which is the original form of the partial program. This template is a template generally represented by attributes such as state variables and various parameters that should be embodied during program synthesis. The operation of each group is a state change of a controlled device according to a control command, a behavior (state change or transmission) of a medium or energy (referred to as “entity” in this specification) such as liquid / gas / electricity / heat due to control, Changes in sensor devices due to behaviors, etc. are described by the state of each device, necessary initial state and attribute, processing for changing the state, and start condition of the processing.

【0014】シミュレートしようとするプラントの構成
は、グループと属性、その接続関係として記述し、プロ
グラム作成では、各グループに対応するテンプレートに
含まれる各種属性を具体的名称や値などに置き換えかつ
属性をセットして部分プログラムを生成し、これら部分
プログラムをプラントの構成における接続関係に基づい
て合成しシミュレータプログラムを合成する。
The structure of the plant to be simulated is described as groups and attributes and their connection relations. In program creation, various attributes included in the template corresponding to each group are replaced with concrete names and values, and the attributes are combined. Is set to generate partial programs, and these partial programs are synthesized based on the connection relationship in the plant configuration to synthesize the simulator program.

【0015】合成されたプログラムは状態と処理の集合
となり、実行手段は、初期状態の定義が必要な「状態」
がある場合にはこれを定めた後、起動条件が満たされて
いる各処理を検出し、各処理を所定の順序で実行する。
The synthesized program is a set of states and processes, and the executing means is a "state" in which an initial state needs to be defined.
If there is any, after determining this, each process satisfying the activation condition is detected, and each process is executed in a predetermined order.

【0016】このように本発明では、グループの動作を
テンプレート内部で記述しておけば、プラントの構成の
記述はグループとその接続関係、属性によって容易に行
うことができる。また、グループ間での事象の伝達は伝
達機器の状態変数という統一した型式で表現できるた
め、テンプレートの作成も容易になる。
As described above, according to the present invention, if the operation of the group is described in the template, the description of the plant configuration can be easily made by the group and its connection relation and attribute. In addition, the transmission of events between groups can be expressed by a unified model called the state variable of the transmission device, which facilitates the creation of templates.

【0017】特に、伝達機器の挙動は単純であるから、
複数の伝達機器からなるグループでは個別の機器間の伝
達を省略し、伝達の開始点と終了点の間の動作のみを表
現すれば足りる。さらに、複数の伝達機器からなるグル
ープは他のグループよりも一般に汎用的なので、手作業
による作成作業は一層軽減される。
In particular, the behavior of the transmission device is simple,
In a group of a plurality of transmission devices, it is sufficient to omit the transmission between the individual devices and express only the operation between the start point and the end point of the transmission. In addition, a group of multiple transmitters is generally more general than other groups, further reducing manual production.

【0018】また、請求項2の発明では、各処理につい
て実行の優先順序を設定できるので、実行順序が記載順
序に支配されることがなく、現実の因果に沿った合理的
なシミュレーションが行える。
According to the second aspect of the present invention, since the priority order of execution can be set for each process, the execution order is not governed by the described order, and rational simulation can be performed according to the actual cause and effect.

【0019】また、請求項3の発明では所望の初期状態
を変数の具体的内容として容易に設定できる。
According to the third aspect of the invention, the desired initial state can be easily set as the concrete content of the variable.

【0020】また、請求項4の発明では、接続関係のあ
る部分プログラム同士が伝達機器の状態変数を共有する
という単純な構成によって実体の状態が部分プログラム
間を伝達するので、部分プログラムの合成が容易であ
る。
Further, in the invention of claim 4, since the state of the entity is transmitted between the partial programs by a simple configuration in which the partial programs having the connection relationship share the state variable of the transmitting device, the partial programs can be synthesized. It's easy.

【0021】[0021]

【実施例】次に、本発明の実施例について図面に従って
具体的に説明する。なお、後述する実施例はコンピュー
タ上に実現され、実施例の各機能は所定の手順(プログ
ラム)がこのコンピュータを制御することで実現され
る。
Embodiments of the present invention will now be specifically described with reference to the drawings. The embodiments described below are realized on a computer, and the functions of the embodiments are realized by controlling the computer by a predetermined procedure (program).

【0022】本明細書における各「手段」ないし「部」
は実施例の各機能に対応する概念で、必ずしも特定のハ
ードウェアやソフトウェア・ルーチンに1対1には対応
しない。同一のハードウェア要素が場合によって異なっ
た手段を構成する。例えば、コンピュータはある命令を
実行するときにある手段となり別の命令を実行するとき
は別の手段となりうる。また、一つの手段がわずか1命
令によって実現される場合もあれば多数の命令によって
実現される場合もある。
Each “means” or “part” in this specification
Is a concept corresponding to each function of the embodiment and does not necessarily correspond to a specific hardware or software routine on a one-to-one basis. The same hardware element may in some cases constitute different means. For example, a computer may be one means for executing one instruction and another for executing another instruction. Further, one means may be realized by only one instruction or may be realized by a large number of instructions.

【0023】したがって、本明細書では、以下、実施例
の各機能を有する仮想的回路ブロック(手段)を想定し
て実施例を説明する。但し、コンピュータの使用は一例
であり、本発明の機能の全部又は一部は、可能ならば、
カスタムチップ(専用の集積回路)のような電子回路上
に実現してもよい。
Therefore, in the present specification, the embodiments will be described below assuming a virtual circuit block (means) having each function of the embodiments. However, the use of a computer is an example, and all or a part of the functions of the present invention, if possible,
It may be implemented on an electronic circuit such as a custom chip (dedicated integrated circuit).

【0024】実施例に用いられるコンピュータは、一般
には、CPU(中央演算処理装置)と、RAM(随時書
込読出型記憶素子)からなる主記憶装置とを有する。ま
た、前記コンピュータの規模は自由であり、マイクロコ
ンピュータ・パーソナルコンピュータ・スモールコンピ
ュータ・ワークステーション・メインフレームなど、い
かなる規模のものを用いてもよい。
The computer used in the embodiment generally has a CPU (central processing unit) and a main memory device comprising a RAM (random writing / reading type memory element). The size of the computer is arbitrary, and any size such as a microcomputer, a personal computer, a small computer, a workstation, and a mainframe may be used.

【0025】また、前記コンピュータのハードウェア
は、典型的には、キーボードやマウスなどの入力装置
と、ハードディスク装置などの外部記憶装置と、CRT
表示装置やプリンタ印字装置などの出力装置と、必要な
入出力制御回路を含む。
The hardware of the computer is typically an input device such as a keyboard and a mouse, an external storage device such as a hard disk device, and a CRT.
It includes an output device such as a display device and a printer printer, and necessary input / output control circuits.

【0026】但し、前記コンピュータのハードウェア構
成は自由であり、本発明が実施できる限り、上記の構成
要素の一部を追加・変更・除外してもよい。例えば、実
施例は、複数のコンピュータを接続したコンピュータネ
ットワーク上に実現してもよい。また、CPUの種類は
自由であり、CPUを複数同時に用いたり、単一のCP
Uをタイムシェアリング(時分割)で使用し、複数の処
理を同時平行的に行ってもよい。
However, the hardware configuration of the computer is arbitrary, and as long as the present invention can be implemented, some of the above components may be added, changed, or excluded. For example, the embodiments may be realized on a computer network in which a plurality of computers are connected. Also, the type of CPU is arbitrary, and multiple CPUs can be used simultaneously or a single CP can be used.
U may be used for time sharing (time division), and a plurality of processes may be simultaneously performed in parallel.

【0027】また、他の入力装置(例えば、タッチパネ
ル・ライトペン・トラックボールなどのポインティング
デバイスや、デジタイザ・イメージ読取装置やビデオカ
メラなどの画像入力装置・音声識別装置・各種センサな
ど)を用いてもよい。また、他の外部記憶装置(例え
ば、フロッピーディスク装置・RAMカード装置・磁気
テープ装置・光学ディスク装置・光磁気ディスク装置・
バブルメモリ装置・フラッシュメモリなど)を用いても
よい。また、他の出力装置(例えば、液晶表示装置・プ
ラズマディスプレイ装置・ビデオプロジェクター・LE
D表示装置・音響発生回路・音声合成回路など)を用い
てもよい。
Further, other input devices (for example, a pointing device such as a touch panel, a light pen, a trackball, an image input device such as a digitizer, an image reading device, a video camera, a voice recognition device, various sensors, etc.) are used. Good. Also, other external storage devices (for example, floppy disk device, RAM card device, magnetic tape device, optical disk device, magneto-optical disk device,
Bubble memory device, flash memory, etc.) may be used. In addition, other output devices (for example, liquid crystal display device, plasma display device, video projector, LE
D display device, sound generation circuit, voice synthesis circuit, etc.) may be used.

【0028】また、前記コンピュータにおいて実施例を
実現するためのソフトウェアの構成としては、典型的に
は、実施例の各機能を実現するためのアプリケーション
プログラムが、OS(オペレーティングシステム)上で
実行される態様が考えられる。また、実施例を実現する
ためのプログラムの態様としては、典型的には、高級言
語やアセンブラからコンパイル(翻訳)された機械語が
考えられる。但し、前記コンピュータのソフトウェア構
成も自由であり、本発明が実施できる限り、ソフトウェ
ア構成を変更してもよい。例えば、必ずしもOSを用い
る必要はなく、また、プログラムの表現形式も自由であ
り、BASICのようなインタプリタ(逐次解釈実行
型)言語を用いてもよい。
As a software configuration for implementing the embodiment in the computer, typically, an application program for implementing each function of the embodiment is executed on an OS (operating system). Embodiments are possible. In addition, as a mode of a program for realizing the embodiment, a machine language compiled (translated) from a high-level language or an assembler is typically considered. However, the software configuration of the computer is also free, and the software configuration may be changed as long as the present invention can be implemented. For example, it is not always necessary to use the OS, the expression format of the program is free, and an interpreter (sequential interpretation execution type) language such as BASIC may be used.

【0029】また、プログラムの格納態様も自由であ
り、ROM(読出し専用メモリ)に格納しておいてもよ
く、また、ハードディスク装置のような外部記憶装置に
格納しておき、コンピュータの起動時や処理の開始時に
主メモリ上にロード(読み込み)してもよい。また、プ
ログラムを複数の部分に分割して外部記憶装置に格納し
ておき、処理内容に応じて必要なモジュールのみを随時
主メモリ上にロード(読み込み)してもよい。さらに、
プログラムの部分ごとに異なった態様で格納してもよ
い。
The program can be stored in any manner, and may be stored in a ROM (read-only memory), or stored in an external storage device such as a hard disk drive at the time of starting the computer. It may be loaded into the main memory at the start of processing. Alternatively, the program may be divided into a plurality of parts and stored in an external storage device, and only the necessary modules may be loaded (read) into the main memory at any time according to the processing content. further,
The parts of the program may be stored differently.

【0030】また、本実施例における各手順の各ステッ
プは、その性質に反しない限り、実行順序を変更し、複
数同時に実行し、また、実行ごとに異なった順序で実行
してもよい。このような順序の変更は、例えば、ユーザ
が実行可能な処理を選択するなどメニュー形式のインタ
ーフェース手法によって実現することができる。
The execution order of each step of each procedure in this embodiment may be changed, a plurality of steps may be executed at the same time, or a different order may be executed for each execution, as long as the nature thereof is not violated. Such an order change can be realized by a menu-type interface method, such as a user selecting an executable process.

【0031】また、本明細書における「入力」は、本来
の情報の入力のみならず、情報の入力と密接に関連する
他の処理を含む。このような処理は、例えば、入力内容
のエコーバックや修正・編集である。また、「入力」
は、必ずしもコンピュータ外部からの入力には限定され
ず、所定のメモリ領域又はディスク装置から情報を読み
出すことによっても行われる。また、本明細書における
「出力」は、本来の情報の出力のみならず、情報の出力
と密接に関連する他の処理を含む。このような処理は、
例えば、出力すべき範囲の入力や、画面スクロールの指
示である。また、「出力」は、必ずしもコンピュータ外
部への出力には限定されず、所定のメモリ領域又はディ
スク装置に情報を書き込むことによっても行われる。な
お、対話的入出力手順によって入力と出力を一体的操作
によって実現してもよく、このような一体的操作によっ
て、選択・指定・特定などの処理を行ってもよい。
The "input" in this specification includes not only the original input of information but also other processing closely related to the input of information. Such processing is, for example, echo back or correction / editing of input contents. Also, "input"
Is not necessarily limited to input from the outside of the computer, but is also performed by reading information from a predetermined memory area or disk device. In addition, "output" in this specification includes not only the original output of information but also other processing closely related to the output of information. Such processing is
For example, it is an input of a range to be output or an instruction to scroll the screen. Further, the “output” is not necessarily limited to the output to the outside of the computer, and is also performed by writing information in a predetermined memory area or a disk device. It should be noted that input and output may be realized by an integrated operation by an interactive input / output procedure, and processing such as selection, designation, and specification may be performed by such an integrated operation.

【0032】また、本明細書におけるデータ(情報)や
データの格納手段は前記コンピュータ上においていかな
る態様で存在してもよい。例えば、データのハードウェ
ア上の所在部分は、主記憶装置・外部記憶装置・CPU
のレジスタやキャッシュメモリなどいかなる部分でもよ
い。また、データの保持態様も自由である。例えば、デ
ータは、ファイル形式で保持されるのみならず、メモリ
やディスクなどの記憶装置を物理的アドレスで直接アク
セスすることによって実現してもよい。また、データの
表現形式も自由で、例えば、文字列を表すコードの単位
は、文字単位でも単語単位でもよい。また、データは必
要とされる一定時間だけ保持されれば十分で、その後消
滅してもよく、保持時間の長短は自由である。また、辞
書データのように当面変更されない情報は、ROMに格
納してもよい。
The data (information) and the data storage means in the present specification may exist in any form on the computer. For example, the location portion of data on the hardware is the main storage device / external storage device / CPU.
It may be any part such as a register or a cache memory. Further, the data retention mode is also free. For example, the data is not only retained in the file format, but may be realized by directly accessing a storage device such as a memory or a disk by a physical address. In addition, the expression format of the data is arbitrary, and for example, the unit of the code representing the character string may be a character unit or a word unit. Further, it is sufficient that the data is retained for the required fixed time, and the data may be deleted thereafter, and the retention time is free. Information that is not changed for the time being, such as dictionary data, may be stored in the ROM.

【0033】また、本明細書において、特定の情報への
言及は確認的で、言及されない情報の存在を否定するも
のではない。すなわち、本発明の動作では、動作に必要
な一般的な情報やその格納領域、例えば、各種ポイン
タ、スタック、カウンタ、フラグ、パラメータ、ワーク
エリア、バッファなどが適宜用いられる。
Further, in the present specification, reference to specific information is a confirmation and does not deny the existence of information not referred to. That is, in the operation of the present invention, general information necessary for the operation and its storage area, for example, various pointers, stacks, counters, flags, parameters, work areas, buffers, etc. are appropriately used.

【0034】実施例の各部分が処理に要する情報は、特
に記載がない場合、当該情報を保持している他の部分か
ら獲得される。このような情報の獲得は、例えば、当該
情報を格納している変数やメモリをアクセスすることに
よって実現することができる。なお、情報の消去・抹消
は、当該情報の内容自体を必ずしも記憶領域から現実に
削除せず、消去を表すフラグを設定するなど、情報の意
味付けの変更によって行うことができる。
The information required by each part of the embodiment for processing is obtained from the other part holding the information unless otherwise specified. Such acquisition of information can be realized, for example, by accessing a variable or memory that stores the information. The information can be erased / erased by not actually deleting the content itself of the information from the storage area but by changing the meaning of the information, such as setting a flag indicating the deletion.

【0035】(1)実施例の構成 本実施例は、プラントの動作をシミュレートするプログ
ラムを作成するプログラム作成装置であり、請求項1〜
4に対応する。本実施例の目的は、部品作成を効率化す
るプログラム作成装置を提供することである。また、本
実施例の他の目的は、現実の因果に沿った合理的なシミ
ュレーションを行うプログラム作成装置を提供すること
である。また、本実施例の他の目的は、シミュレート時
の初期設定が容易なプログラム作成装置を提供すること
である。
(1) Configuration of Embodiment This embodiment is a program creating apparatus for creating a program for simulating the operation of a plant.
Corresponds to 4. An object of the present embodiment is to provide a program creation device that makes parts creation efficient. Another object of the present embodiment is to provide a program creation device that performs a rational simulation in accordance with the actual cause and effect. Further, another object of the present embodiment is to provide a program creating apparatus which can easily perform initial setting at the time of simulation.

【0036】まず、図1は本実施例のプログラム作成装
置(以下「本装置」という)の構成を示す機能ブロック
図である。本実施例のプログラム作成装置は、プラント
を、種類ごとの機能を果たす機能機器とこの機能機器間
で媒体及びエネルギーのうち少なくとも一方を伝達する
伝達機器とを含むものとして扱う。
First, FIG. 1 is a functional block diagram showing the configuration of a program creating apparatus (hereinafter referred to as "this apparatus") of this embodiment. The program creating apparatus of the present embodiment treats a plant as including a functional device that performs a function for each type and a transmission device that transmits at least one of a medium and energy between the functional devices.

【0037】そして、図1に示すように、本装置は、所
望の複数の前記機器のグループごとに、具体化されるべ
き属性を用いて当該グループの動作を前記プログラムの
一部の原形として一般的に表したテンプレートを設定す
るための、第1の設定手段1と、シミュレート対象とす
る前記プラントの構成を、前記グループと前記属性、そ
れらグループの接続関係として入力するための入力手段
2と、を有する。
As shown in FIG. 1, the present apparatus generally uses the attributes to be embodied for each desired group of a plurality of the devices as an operation of the group as a prototype of a part of the program. First setting means 1 for setting a template that is represented schematically, and input means 2 for inputting the configuration of the plant to be simulated as the group, the attribute, and the connection relationship between the groups. With.

【0038】また、本装置は、記述された前記構成に含
まれる前記各グループに対応する前記各テンプレートに
ついて、当該テンプレートに含まれる前記属性を具体的
に設定して、前記プログラムの一部である部分プログラ
ムを生成し、これら部分プログラムをプラントの前記構
成における前記接続関係に基づいて合成し前記プログラ
ムを作成する合成手段3と、合成された前記プログラム
を実行する実行手段4と、を有する。
Further, the present apparatus is a part of the program by concretely setting the attribute included in the template for each template corresponding to each group included in the described configuration. It has a synthesizing unit 3 for generating partial programs, synthesizing these partial programs based on the connection relation in the configuration of the plant to create the program, and an executing unit 4 for executing the synthesized program.

【0039】また、本装置は、グループの動作に含まれ
る各処理について実行の優先順序を設定する第2の設定
手段5を有する。
The present apparatus also has a second setting means 5 for setting the priority order of execution for each process included in the group operation.

【0040】(2)実施例の作用及び効果 図2は、本実施例でシミュレートしようとする化学プラ
ントの一例を示す。このプラントは、種類ごとの機能を
果たす機能機器とこの機能機器間で媒体及びエネルギー
のうち少なくとも一方を伝達する伝達機器とを含む。機
能機器は具体的には被制御機器及びセンサ機器などであ
る。さらに、被制御機器は直接制御を行なう機器であ
り、例えば、液体/気体ではバルブなど、電気ではリレ
ーなど、熱では電熱器などである。また、センサ機器は
センサとしての働きをする機器であり、例えば、液体/
気体では流量計など、電気では電流計など、熱では温度
計などである。また、伝達機器は、機能機器間を接続し
て実体を伝達する機器であり、液体/気体ではパイプな
ど、電気では電線など、熱では伝導管などである。パイ
プ、電線等である。ここで、使用する機器は、貯蔵缶、
パイプ、バルブ、流量計とする。
(2) Actions and effects of the embodiment FIG. 2 shows an example of a chemical plant to be simulated in this embodiment. This plant includes a functional device that performs a function for each type and a transmission device that transmits at least one of a medium and energy between the functional devices. The functional devices are specifically controlled devices and sensor devices. Further, the controlled device is a device that directly controls, for example, a valve or the like for liquid / gas, a relay or the like for electricity, and an electric heater or the like for heat. Further, the sensor device is a device that functions as a sensor, for example, a liquid /
Gas is a flow meter, electricity is an ammeter, and heat is a thermometer. The transmission device is a device that connects functional devices to transmit the substance, and is a pipe or the like for liquid / gas, an electric wire or the like for electricity, or a conduction pipe or the like for heat. Examples include pipes and electric wires. The equipment used here is a storage can,
Use pipes, valves and flow meters.

【0041】[グループの選択]本実施例において、上
記のような要素からなるプラントについてシミュレート
用プログラムを作成する手順を図3に示す。図3は、テ
ンプレートの設定からプログラムの合成及び実行までを
連続して行う場合の手順を示したものである。グループ
ごとのテンプレートを一旦設定した後は、設定済みグル
ープから構成された他のプラントについてプログラムを
合成する場合、ステップ34からの手順のみを繰り返せ
ば足りる。
[Selection of Group] FIG. 3 shows a procedure for creating a simulation program for a plant including the above elements in this embodiment. FIG. 3 shows a procedure in the case where the setting of the template, the composition of the program, and the execution of the program are continuously performed. After once setting the template for each group, it is sufficient to repeat only the procedure from step 34 when synthesizing the programs for the other plants configured from the set group.

【0042】この手順では、まず、所望の複数のこれら
機器のグループを定める(ステップ31)。ここで、図
4、図5はプログラム合成の基礎となる部品の類型を例
示するものである。すなわち、グループとしては、図4
上方に例示するように、「被制御機器もしくはセンサ機
器と、伝達機器との組」、又は、図5上方に例示するよ
うに「伝達機器の3つ以上の組」を定める。
In this procedure, first, a desired group of a plurality of these devices is determined (step 31). Here, FIG. 4 and FIG. 5 exemplify the types of parts that are the basis of program composition. That is, as a group, FIG.
As illustrated above, "a set of controlled devices or sensor devices and transmission devices" or "a set of three or more transmission devices" as illustrated in the upper part of FIG. 5 is defined.

【0043】このグループの決定は、例えば、被制御機
器とセンサ機器それぞれに対して、その機器のうち伝達
機器が接続される端を列挙し、各端に対し、具体的にど
のような伝達機器が接続されるかを入力することによっ
て行うことができる。この場合、機能機器とこの機能機
器に接続された伝達機器の組がグループとなる。例え
ば、バルブを中心としたグループの単位は、(パイプ−
バルブ−パイプ)である。
For the determination of this group, for example, for each of the controlled device and the sensor device, the end of the device to which the transmitting device is connected is enumerated, and the specific transmitting device is specified for each end. Can be done by typing what is connected. In this case, the set of the functional device and the transmission device connected to this functional device is a group. For example, the unit of the group centering on the valve is (pipe-
Valve-pipe).

【0044】また、伝達機器の中に、分岐があり得るも
のがあるとき、あり得る分岐数をn1 、n2 、n3 、…
…、nm とすると、
Further, when there is a possibility of branching among the transmission devices, the number of possible branches is n 1 , n 2 , n 3 , ...
..., and the n m,

【数1】 に対し、この伝達機器がn個結合されたグループを作成
する。例えば、パイプでは(パイプ−パイプ−パイプ)
に対応するグループを用意する。
[Equation 1] On the other hand, a group in which n transmission devices are connected is created. For example, for pipes (pipe-pipe-pipe)
Prepare a group corresponding to.

【0045】続いて、決定された各グループについてユ
ーザが第1の設定手段1から、グループごとにテンプレ
ートを設定する(ステップ32,33)。ここでテンプ
レートは、具体化されるべき属性を用いて当該グループ
の組としての動作・物理現象を前記プログラムの一部の
原形として一般的に表したものである。なお、ここで
「一般的に」とは、そのテンプレートの記述に現れる
「機器の状態」などの各種属性を、合成の際、具体的名
前や値など具体的情報に置き換えられるように実現する
ことを意味する。例えば、その状態名に変数を含ませ、
合成の際にその変数を決定することによってこのような
置き換えは実現することができる。
Subsequently, the user sets the template for each group from the first setting means 1 for each determined group (steps 32 and 33). Here, the template generally represents an operation / physical phenomenon as a set of the group using an attribute to be embodied as a prototype of a part of the program. Here, "generally" means that various attributes such as "device status" appearing in the description of the template can be replaced with specific information such as a specific name or a value during synthesis. Means For example, include a variable in the state name,
Such a permutation can be achieved by determining that variable during composition.

【0046】テンプレートでは、グループの動作とし
て、制御命令によっておこる被制御機器の状態変化、
実体に関する状態変化や伝達、実体に関する状態変
化や伝達によっておこるセンサ機器の変化を記述する。
In the template, as the operation of the group, the state change of the controlled device caused by the control command,
Describe the state change and communication about the substance, and the change of the sensor device caused by the state change and communication about the substance.

【0047】制御命令によっておこる被制御機器の状
態変化、は、直接制御を行なう機器固有のもので、例え
ばバルブの開命令に対する開動作がこれに該当する。
実体に関する状態変化や伝達、は、制御命令によって
おこる被制御機器の状態変化、によって引き起こされる
実体に関する状態変化や、機器の接続されるある端の実
体の状態変化が他の端に伝達する動作を示す。
The change in the state of the controlled device caused by the control command is specific to the device that directly controls, and corresponds to, for example, the opening operation in response to the opening command of the valve.
The state change or transmission related to the entity is the state change related to the entity caused by the state change of the controlled device caused by the control command, or the operation in which the state change of the entity at one end connected to the device is transmitted to the other end. Show.

【0048】例えば、(パイプ1−バルブ−パイプ2)
のテンプレートでパイプ1に対する圧力が変化した時、
その圧力変化をパイプ2に伝える動作がこれに該当す
る。なお、最終的に合成されたプログラムでは、接続さ
れる部品がこのような「実体を伝達する機器」の実体に
関する状態に対応する変数を共有し、この実体に関す
る状態変化や伝達、の動作により、実体の状態が部品間
を伝達していくことになる。
For example, (pipe 1-valve-pipe 2)
When the pressure on pipe 1 changes with the template of
The operation of transmitting the pressure change to the pipe 2 corresponds to this. In the finally synthesized program, the connected parts share a variable corresponding to the state related to the entity of such "equipment transmitting an entity", and the state change or transmission related to this entity causes The state of the entity will be transmitted between the parts.

【0049】また、実体に関する状態変化や伝達によ
っておこるセンサ機器の変化、は、実体に関する状態変
化に対し、これを監視するセンサが存在するとき、その
センサの動作を実現するもので、例えば、(パイプ1−
流量計−パイプ2)のテンプレートで、この部品の流量
が変化した時流量計のセンサ出力値を変えるなどの動作
である。
Further, the change of the sensor device caused by the change of the state of the substance or the transmission thereof realizes the operation of the sensor when there is a sensor for monitoring the change of the state of the substance. Pipe 1-
This is an operation such as changing the sensor output value of the flow meter when the flow rate of this part changes with the template of the flow meter-pipe 2).

【0050】これらの動作を、テンプレートを構成する
各機器の「状態」と、各機器の状態を変化させる「処
理」、その処理の「起動条件」(どういう状態のときそ
の処理が起動するか)により記述する。また、第2の設
定手段5によって、各「処理」の実行順序を決定する。
また、初期状態も記述し、シミュレート時に初期状態を
決定する場合には、これを変数にしておく。
These operations are performed by the "state" of each device constituting the template, the "process" for changing the state of each device, and the "start condition" of the process (what kind of state the process starts). Described by Further, the second setting means 5 determines the execution order of each “processing”.
Also, describe the initial state, and use this as a variable when determining the initial state during simulation.

【0051】なお、次に、以下の制約を満たすプラント
のテンプレートの例を示す。 ・パイプ−バルブ−パイプなどの結合では両極のパイプ
径は等しい。 ・1つの系統に対し双方向から液体が流れることはない
とする。 ・実体のうち、液体のみを扱うものとする。 グループである(パイプ−貯蔵缶−パイプ)、(パイプ
−バルブ−パイプ)、(パイプ−流量計−パイプ)に係
るテンプレートの例をそれぞれ図6、図7、図8に示
す。
Next, an example of a plant template that satisfies the following constraints will be shown. -In a pipe-valve-pipe connection, the pipe diameters of both poles are the same. -It is assumed that liquid does not flow in both directions to one system.・ Of the entities, only liquids should be handled. Examples of templates for the groups (pipe-storage can-pipe), (pipe-valve-pipe), and (pipe-flowmeter-pipe) are shown in FIGS. 6, 7, and 8, respectively.

【0052】この例では、classの後の部品名を、
その後の(…)に具体名に置き換える変数を、para
meterの後にはその部品に与えるパラメータを(こ
の記述がないものもある)、slotの後には状態名と
初期値を、methodの後には処理を記述することに
している。処理は、「if(起動条件)then処理本
体priority優先順位」の形式で記述することに
している。パイプ−貯蔵缶−パイプのテンプレート(p
−can−p)を例に詳細な説明を行なう。
In this example, the part name after the class is
After that, change the variable to be replaced with the concrete name to (...)
Parameters to be given to the part are included after "meter" (there is no description), state name and initial value are described after "slot", and processing is described after "method". The processing is described in the form of "if (starting condition) then processing body priority priority". Pipe-storage can-pipe template (p
-Can-p) will be described in detail as an example.

【0053】すなわち、パイプには2つの端がある。$
Pipe1Tan1はこのうち、貯蔵缶に継っていない
方の端を示す変数である。また、$Pipeはパイプ名
を、$Pipe1Tan2は貯蔵缶に継っている方の端
を、$Canは貯蔵缶名を、$Pipe2Tan1はも
う1方のパイプの貯蔵缶に継っている方の端を、$Pi
pe2はそのパイプ名を、$Pipe2Tan2はその
パイプの貯蔵缶に継っていない方の端をそれぞれ表す変
数である。
That is, the pipe has two ends. $
Pipe1Tan1 is a variable indicating the end that is not connected to the storage can. Also, $ Pipe is the name of the pipe, $ Pipe1Tan2 is the end of the one connected to the storage can, $ Can is the name of the storage can, and $ Pipe2Tan1 is the one of the pipe connected to the storage can of the other pipe. The end is $ Pi
pe2 is a variable that represents the pipe name, and $ Pipe2Tan2 is a variable that represents the end of the pipe that is not connected to the storage can.

【0054】“パイプ名.パイプ端.press”は
“パイプ名”の“パイプ端”からの圧力を、“パイプ
名.パイプ端.flow”は“パイプ名”の“パイプ
端”からの液体の流れを$Can.water−qua
ntityは貯蔵缶に入っている液体の量を、$Ca
n.capacityは貯蔵缶の容量を、“パイプ
名”.capacityは“パイプ名”の径の太さを示
す。また、f()は、圧力とパイプ径から流量を計算す
る関数、g()は、貯蔵缶に入っている液体の量から下
部のパイプにかかる圧力を計算する関数とする。ここで
は、優先順位は、単に固定値として記述しているがこれ
を関数にすることでよりきめ細かなシュミレーションが
できる。
“Pipe name.Pipe end.press” is the pressure from the “Pipe end” of the “Pipe name”, and “Pipe name.Pipe end.flow” is the liquid from the “Pipe end” of the “Pipe name”. The flow is $ Can. water-qua
The amount of liquid contained in the storage can is calculated as $ Ca
n. capacity is the capacity of the storage can, "pipe name". capacity indicates the diameter thickness of the "pipe name". Further, f () is a function for calculating the flow rate from the pressure and the pipe diameter, and g () is a function for calculating the pressure applied to the lower pipe from the amount of liquid contained in the storage can. Here, the priority order is described as a fixed value, but a more detailed simulation can be performed by using this as a function.

【0055】[システムの入力とプログラムの合成]次
に、シミュレート対象とするプラントの構成を、グルー
プと属性、その接続関係として記述する(ステップ3
4)。すると、記述された前記構成に含まれる各グルー
プに対応する各テンプレートが用いられ(ステップ3
5,36)、テンプレートに含まれる属性(状態名な
ど)に具体的名称ないし値を設定することによって(ス
テップ37)、前記プログラムの一部である部分プログ
ラムが生成される(ステップ38)。この場合、伝達機
器は、それが系統の端でないかぎり、2つのグループに
共有されることになる。
[System Input and Program Synthesis] Next, the configuration of the plant to be simulated is described as groups, attributes, and their connection relationships (step 3).
4). Then, each template corresponding to each group included in the described configuration is used (step 3
5, 36), by setting a concrete name or value to the attribute (state name etc.) included in the template (step 37), a partial program which is a part of the program is generated (step 38). In this case, the transmission device will be shared by the two groups unless it is at the end of the grid.

【0056】このような具体化は、例えば、プラント系
統図でV1と名付けられているバルブと、pipeAと
名付けられているパイプ、pipeBと名付けられてい
るパイプの組に対応するテンプレート(パイプ1−バル
ブ−パイプ2)では、「<バルブ>開状態」は「V1開
状態」に、「<パイプ1>の流量」は「pipeAの流
量」にするなどを意味する。
Such an embodiment can be realized by, for example, a template (pipe 1-pipe 1), a pipe (pipe 1), and a pipe B (pipe 1), which corresponds to a set of pipes named pipe 1 and pipe B. In the valve-pipe 2), "<valve> open state" means "V1 open state", "<pipe 1> flow rate" means "pipe A flow rate", and so on.

【0057】例えば、図6、図7、図8に示したテンプ
レートが設定されている場合、プラントの構成から、次
のグループ: パイプA−バルブA−パイプB パイプB−缶A−パイプC パイプC−バルブB−パイプD パイプD−流量計A−パイプE パイプE−バルブC−パイプF パイプF−缶B−パイプG パイプG−バルブD−パイプH が用いられる。
For example, when the templates shown in FIGS. 6, 7 and 8 are set, the following groups can be selected from the plant configuration: pipe A-valve A-pipe B pipe B-can A-pipe C pipe. C-valve B-pipe D pipe D-flow meter A-pipe E pipe E-valve C-pipe F pipe F-can B-pipe G pipe G-valve D-pipe H are used.

【0058】そして、属性(パラメータ)としては、パ
イプの口径はすべて20cm、貯蔵缶の容量は500k
lとする。これにより、テンプレートから具体的な部分
プログラムが生成される(ステップ38)。
As attributes (parameters), the pipe diameters are all 20 cm, and the storage can capacity is 500 k.
Let l. As a result, a specific partial program is generated from the template (step 38).

【0059】例えば、パイプB−缶A−パイプC、パイ
プC−バルブB−パイプDを例に説明する。パイプ端は
それぞれx,yとしてパイプBはy端で缶Aに結合、パ
イプCはx端で缶Aに結合しているとする。ここで、グ
ループを選択するが、まず、パイプB−缶A−パイプC
のテンプレートは、パイプBはパイプ、缶Aは貯蔵缶、
パイプCはパイプであるのでp−can−pである。
For example, pipe B-can A-pipe C, pipe C-valve B-pipe D will be described as an example. It is assumed that the pipe ends are x and y, respectively, and that the pipe B is connected to the can A at the y end and the pipe C is connected to the can A at the x end. Here, the group is selected, but first, the pipe B-the can A-the pipe C
The template of pipe is pipe B, can A is a storage can,
Since pipe C is a pipe, it is p-can-p.

【0060】次に、 $Pipe1Tan1=x $Pipe1=パイプB $Pipe1Tan2=y $Can=缶A $Pipe2Tan1=x $Pipe2=パイプC $Pipe2Tan2=y のように変数を具体的名称を表す文字例を置き換え、パ
ラメータの代入: 缶A.capacity=500 パイプB.capacity=20 パイプC.capacity=20 を同様にそれぞれの文字例の置き換えにより行う。この
結果生成された部分プログラムを図9に示す。
Next, a character example representing a concrete name of a variable such as $ Pipe1Tan1 = x $ Pipe1 = pipe B $ Pipe1Tan2 = y $ Can = can A $ Pipe2Tan1 = x $ Pipe2 = pipe C $ Pipe2Tan2 = y Replacement, Substitution of Parameters: Can A. capacity = 500 Pipe B. capacity = 20 pipe C.I. Similarly, capacity = 20 is performed by replacing each character example. The partial program generated as a result is shown in FIG.

【0061】同様に、テンプレートp−y−pより、パ
イプC−バルブB−パイプDの部分プログラムを作成す
る。この結果が図10である。この結果で、slot以
下が状態を示す変数とその初期値、method以下が
処理を示す。同様に、他の単位についても部分プログラ
ムを作成し、これら部分プログラムについては、プラン
ト構成における接続関係に基づいて変数と初期値、処理
が1つにまとめられて合成されシミュレーション用プロ
グラムとなる(ステップ39)。
Similarly, a partial program for pipe C-valve B-pipe D is created from the template p-y-p. The result is shown in FIG. In this result, the variable below slot indicates the state and its initial value, and the method below method indicates the process. Similarly, partial programs are created for other units as well, and for these partial programs, variables, initial values, and processing are combined into one based on the connection relationship in the plant configuration and combined to form a simulation program (step 39).

【0062】[プログラムの実行]合成されたプログラ
ムは状態と処理の集合となる。実行手段4がこれを実行
するには、初期状態の定義が必要な「状態」がある場合
にはこれを定めた後、起動条件が満たされている各処理
を検出し、各処理を前記優先順位の高い順ないし所定の
順序で実行する(ステップ40)。なお、もっとも優先
順位の高いものが複数ある場合には、例えば、「プログ
ラムのもっとも上に位置する[処理]を選ぶ」などの選
択ルールにより実行するものを選択する。
[Program Execution] The combined program is a set of states and processes. In order for the execution means 4 to execute this, if there is a “state” that requires the definition of an initial state, after defining this, each process that satisfies the start condition is detected, and each process is given priority as described above. The processes are executed in the order from the highest rank or a predetermined order (step 40). When there are a plurality of items having the highest priority, the one to be executed is selected by a selection rule such as “select [process] located at the top of the program”.

【0063】このとき、上記各部分プログラム単位でみ
れば、パイプC.x.press、パイプC.y.pr
ess=1、パイプC.x.flow、パイプC.y.
flowを共有しており、このような共有変数を介して
各部分プログラム間で流れや圧力が伝達される。また、
例えば、バルブBを開くには“バルブA.open−c
ommand”を“yes”に、流量計を作動させるに
は“流量計A.set”を“yes”にすることで行な
うことになる。
At this time, the pipe C. x. press, pipe C.I. y. pr
ess = 1, pipe C.I. x. flow, pipe C.I. y.
The flow is shared, and the flow and pressure are transmitted between each partial program via such a shared variable. Also,
For example, to open valve B, use "valve A.open-c
“Mand” to “yes” and to activate the flowmeter, use “Flowmeter A. This is done by setting "set" to "yes".

【0064】以上のように本実施例では、グループの動
作をテンプレート内部で記述しておけば、システムの記
述はグループとその接続関係、属性によって容易に行う
ことができる。また、グループ間での事象の伝達は伝達
機器の状態変数という統一した型式で表現できるため、
テンプレートの作成も容易になる。
As described above, in this embodiment, if the operation of the group is described in the template, the system can be easily described by the group, its connection relationship, and attributes. In addition, the transmission of events between groups can be expressed by a unified model called the state variable of the transmission device.
It also makes it easier to create templates.

【0065】特に、伝達機器の挙動は単純であるから、
複数の伝達機器からなるグループでは個別の機器間の伝
達を省略し、伝達の開始点と終了点の間の動作のみを表
現すれば足りる。さらに、複数の伝達機器からなるグル
ープは他のグループよりも一般に汎用的なので、手作業
による作成作業は一層軽減される。
In particular, the behavior of the transmission device is simple,
In a group of a plurality of transmission devices, it is sufficient to omit the transmission between the individual devices and express only the operation between the start point and the end point of the transmission. In addition, a group of multiple transmitters is generally more general than other groups, further reducing manual production.

【0066】また、本実施例では、各処理について実行
の優先順序を設定できるので、実行順序が記載順序に支
配されることがなく、現実の因果に沿った合理的なシミ
ュレーションが行える。
Further, in this embodiment, since the priority order of execution can be set for each process, the execution order is not governed by the described order, and a rational simulation can be performed according to the actual cause and effect.

【0067】また、本実施例では、シミュレート時に決
定すべき初期状態を変数の具体的内容として所望の初期
状態を変数の具体的内容として容易に設定できる。
Further, in this embodiment, the initial state to be determined at the time of simulation can be easily set as the concrete content of the variable and the desired initial state can be easily set as the concrete content of the variable.

【0068】また、本実施例では、接続関係のある部分
プログラム同士が伝達機器の状態変数を共有するという
単純な構成によって実体の状態が部分プログラム間を伝
達するので、部分プログラムの合成が容易である。
Further, in this embodiment, since the state of the entity is transmitted between the partial programs by a simple structure in which the partial programs having the connection relationship share the state variable of the transmission device, the partial programs can be easily synthesized. is there.

【0069】(3)他の実施例 なお、本発明は上記実施例に限定されるものではなく、
次に例示するような他の実施例をも包含するものであ
る。例えば、本発明は化学プラントのみならずいかなる
種類のプラントにも適用可能である。また、機能機器や
伝達機器の種類、グループあたりの機器の数、属性の内
容などは自由に定め得る。
(3) Other Embodiments The present invention is not limited to the above embodiments,
It also includes other embodiments as illustrated below. For example, the invention is applicable to any type of plant, not just chemical plants. Further, the types of functional devices and transmission devices, the number of devices per group, the content of attributes, etc. can be freely determined.

【0070】[0070]

【発明の効果】以上説明したように本発明によれば、部
品作成を効率化できるので、プラントのシミュレーショ
ンが容易になる。
As described above, according to the present invention, since the parts can be efficiently manufactured, the plant simulation becomes easy.

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

【図1】本発明の実施例のプログラム作成装置の構成を
示す機能ブロック図
FIG. 1 is a functional block diagram showing the configuration of a program creating device according to an embodiment of the present invention.

【図2】本発明の実施例においてシミュレートする化学
プラントの例
FIG. 2 is an example of a chemical plant simulated in an embodiment of the present invention.

【図3】本発明の実施例の動作手順を示すフローチャー
FIG. 3 is a flowchart showing an operation procedure of the embodiment of the present invention.

【図4】本発明の実施例におけるグループの例FIG. 4 is an example of groups in an embodiment of the present invention.

【図5】本発明の実施例におけるグループの例FIG. 5 is an example of groups in an embodiment of the present invention.

【図6】本発明の実施例におけるテンプレートの例(パ
イプ−貯蔵缶−パイプ)
FIG. 6 is an example of a template in the embodiment of the present invention (pipe-storage can-pipe).

【図7】本発明の実施例におけるテンプレートの例(パ
イプ−バルブ−パイプ)
FIG. 7 is an example of a template in an embodiment of the present invention (pipe-valve-pipe).

【図8】本発明の実施例におけるテンプレートの例(パ
イプ−流量計−パイプ)
FIG. 8 is an example of a template in an embodiment of the present invention (pipe-flowmeter-pipe).

【図9】本発明の実施例における部分プログラムの例
(パイプB−缶A−パイプC)
FIG. 9 is an example of a partial program in the embodiment of the present invention (pipe B-can A-pipe C).

【図10】本発明の実施例における部分プログラムの例
(パイプC−バルブB−パイプD)
FIG. 10 shows an example of a partial program in the embodiment of the present invention (pipe C-valve B-pipe D).

【図11】従来のプログラムシミュレーションにおける
部品の例
FIG. 11: Example of parts in conventional program simulation

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

1…第1の設定手段 2…入力手段 3…合成手段 4…実行手段 5…第2の設定手段 DESCRIPTION OF SYMBOLS 1 ... 1st setting means 2 ... input means 3 ... combining means 4 ... execution means 5 ... 2nd setting means

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G05B 19/05 G06F 17/00 Continuation of the front page (51) Int.Cl. 6 Identification number Office reference number FI technical display location G05B 19/05 G06F 17/00

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プラントの動作をシミュレートするプロ
グラムを作成するプログラム作成装置において、 前記プラントは、種類ごとの機能を果たす機能機器とこ
の機能機器間で媒体及びエネルギーのうち少なくとも一
方を伝達する伝達機器とを含み、 前記プログラム作成装置は、 所望の複数の前記機器のグループごとに、具体化される
べき属性を用いて当該グループの動作を前記プログラム
の一部の原形として一般的に表したテンプレートを設定
するための、第1の設定手段と、 シミュレート対象とする前記プラントの構成を、前記グ
ループと前記属性、それらグループの接続関係として入
力するための入力手段と、 記述された前記構成に含まれる前記各グループに対応す
る前記各テンプレートについて、当該テンプレートに含
まれる前記属性を具体的に設定して、前記プログラムの
一部である部分プログラムを生成し、これら部分プログ
ラムをプラントの前記構成における前記接続関係に基づ
いて合成し前記プログラムを作成する合成手段と、 合成された前記プログラムを実行する実行手段と、 を有することを特徴とするプログラム作成装置。
1. A program creating apparatus for creating a program for simulating the operation of a plant, wherein the plant is a functional device that performs a function for each type, and a transmission that transmits at least one of a medium and energy between the functional device. And a device, the program creation device is a template that generally represents the operation of the group as a prototype of a part of the program by using an attribute to be embodied for each group of the desired plurality of the devices. First setting means for setting, and input means for inputting the configuration of the plant to be simulated as the group, the attribute, and the connection relationship of the groups, and the configuration described above. For each template corresponding to each of the groups included, the template included in the template Specificity, a partial program that is a part of the program is generated, and the partial program is combined based on the connection relationship in the configuration of the plant to create the program, and And a program executing device that executes the program.
【請求項2】 前記グループの動作に含まれる各処理に
ついて実行の優先順序を設定する第2の設定手段を有
し、 前記実行手段は、この優先順序に基づいて前記プログラ
ムを実行するように構成されたことを特徴とする請求項
1記載のプログラム作成装置。
2. A second setting unit that sets a priority order of execution for each process included in the operation of the group, and the execution unit is configured to execute the program based on the priority order. The program creating device according to claim 1, wherein the program creating device is executed.
【請求項3】 前記属性は、シミュレート時に決定すべ
き初期状態を表す変数を含むことを特徴とする請求項1
記載のプログラム作成装置。
3. The attribute includes a variable representing an initial state to be determined at the time of simulation.
The program creation device described.
【請求項4】 前記属性は前記伝達機器の状態変数を含
み、 前記接続関係のある前記部分プログラム同士がこの状態
変数を共有することによって前記媒体及びエネルギーの
うち少なくとも一方の挙動が部分プログラム間で授受さ
れることを特徴とする請求項1記載のプログラム作成装
置。
4. The attribute includes a state variable of the transmission device, and the partial programs having the connection relationship share the state variable so that the behavior of at least one of the medium and energy is different between the partial programs. The program creation device according to claim 1, wherein the program creation device is transmitted and received.
JP28814994A 1994-11-22 1994-11-22 Program generatior Pending JPH08147150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28814994A JPH08147150A (en) 1994-11-22 1994-11-22 Program generatior

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28814994A JPH08147150A (en) 1994-11-22 1994-11-22 Program generatior

Publications (1)

Publication Number Publication Date
JPH08147150A true JPH08147150A (en) 1996-06-07

Family

ID=17726446

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28814994A Pending JPH08147150A (en) 1994-11-22 1994-11-22 Program generatior

Country Status (1)

Country Link
JP (1) JPH08147150A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002229787A (en) * 2001-02-01 2002-08-16 Nri & Ncc Co Ltd Program generating device
JP2012203558A (en) * 2011-03-24 2012-10-22 Railway Technical Research Institute Program and sensor node program generation device
JPWO2013145951A1 (en) * 2012-03-30 2015-12-10 株式会社東芝 Social infrastructure control system, server, control device, control method and program
JP2016177480A (en) * 2015-03-19 2016-10-06 横河電機株式会社 Program designing device, batch plant control system, and program designing support method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002229787A (en) * 2001-02-01 2002-08-16 Nri & Ncc Co Ltd Program generating device
JP2012203558A (en) * 2011-03-24 2012-10-22 Railway Technical Research Institute Program and sensor node program generation device
JPWO2013145951A1 (en) * 2012-03-30 2015-12-10 株式会社東芝 Social infrastructure control system, server, control device, control method and program
JP2016177480A (en) * 2015-03-19 2016-10-06 横河電機株式会社 Program designing device, batch plant control system, and program designing support method

Similar Documents

Publication Publication Date Title
JP4982020B2 (en) Graphical programming system with distributed block diagram execution and user interface display
Wasserman et al. The future of programming
US7139686B1 (en) Report generator for a mathematical computing environment
US7480906B2 (en) Programmatically analyzing and modifying a remote graphical program via a network
JP3027009B2 (en) Design capture system
US20050155015A1 (en) Static binding of nodes to virtual instruments in a graphical program
US20080147371A1 (en) User Defined Virtual Instruments in a Simulation Environment
Feldbrugge et al. Petri net tool overview 1986
JPH09259153A (en) Device and method for generating batch execution control program
US9626233B2 (en) Graphical programming system for data sharing between programs via a memory buffer
JPH02232152A (en) Production system simulator forming device
JPH08147150A (en) Program generatior
CN117215556A (en) Modularized page rapid construction method, system, equipment and medium
US9189209B2 (en) Graphical programming system with native access to external memory buffers
CN107797462A (en) Emulator linkage, control method, message handling program and recording medium
Chen QT and Simulink Mixed Call Implementation
CN103793269B (en) Method and system for calling numerical value solver
JP7447574B2 (en) Support equipment, support programs and support methods
CN103530122B (en) Programmable instrument standard command generation method based on graphical interface
JPH08278808A (en) Simulation device
Hagar Lessons learned from incorporation of commercial computer aided software engineering tools in a flight critical software test environment
JPH0668046A (en) Program cooperation mechanism for computer system
Gray et al. Graphical Data Interpreter for Control System Computer Aided Design Environment
Garcia et al. Specification, design and modula-2 implementation of a low cost industrial control system
Reed et al. A java simulator for teaching gas turbine operation

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041228

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20050322

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050519

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050705