JPS5878231A - Program automatic generating method - Google Patents

Program automatic generating method

Info

Publication number
JPS5878231A
JPS5878231A JP17662081A JP17662081A JPS5878231A JP S5878231 A JPS5878231 A JP S5878231A JP 17662081 A JP17662081 A JP 17662081A JP 17662081 A JP17662081 A JP 17662081A JP S5878231 A JPS5878231 A JP S5878231A
Authority
JP
Japan
Prior art keywords
program
plant
programs
stored
simulating
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
JP17662081A
Other languages
Japanese (ja)
Inventor
Shigeo Kondo
近藤 茂夫
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
Tokyo Shibaura Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Tokyo Shibaura Electric Co Ltd filed Critical Toshiba Corp
Priority to JP17662081A priority Critical patent/JPS5878231A/en
Publication of JPS5878231A publication Critical patent/JPS5878231A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Programmable Controllers (AREA)

Abstract

PURPOSE:To reduce the man-hour for generation of a program, by storing prelimiarily a basic program package in a storage device, and designating the required number of these packages to generate the program. CONSTITUTION:A device stand-alone program package group 9 where device stand-alone programs are stored is preliminarily set to a storage device MEM. A plant simulating program generator 11 stores programs in a simulating program work area 12 in order on a basis of the group 9. Programs stored in the area 12 are inputted to a plant simulating program generator 13, and this generator 13 converts numbers of respective attributes of operand code parts of these programs to overall sequential numbers without disordering relative numbers of respective device stand-alone programs. A plant simulating program 14 obtained by this processing is stored in the device MEM. This program 14 is outputted to the external by a simulating program output device 15 of a CPU.

Description

【発明の詳細な説明】 本発明はプログラム自動生成方法に係り、特にプラント
制御装置の試験を行t「う計算擾(プラントシミュレー
タ)等のプログラム生成を行うに好適なプログラム自動
生成方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an automatic program generation method, and more particularly, to an automatic program generation method suitable for generating programs for testing plant control devices and the like.

かかるプラントシミュレータ的な作用を有する計算機は
広く用いられており、実際にプランLや制御対象を接続
する事無く制御装置自体のチェックや轡能試験を行なう
ことができるため、安全な試験方゛法とされている。
Computers that function as plant simulators are widely used, and can be used to check and perform performance tests on the control device itself without actually connecting Plan L or the controlled object, making it a safe testing method. It is said that

本発明のプログラム自動生成方法を説明するに当って、
以下プラント制御装置の試験装置としての11yt%(
プラントシミュレータ)を例にとってそのプログラム生
成について説明する。
In explaining the automatic program generation method of the present invention,
The following is 11yt% (
The program generation will be explained using a plant simulator as an example.

第1図は用知のプラント制御装置のブロック図であり、
同図中/は制御装置、μはポンプP、バルブV等から成
る制御対象プラントをそれぞれ示すものであるが、かか
る構成に於いて、制御装置/は制御対象プラント参から
のアンサバック信号である状態信号Jを受け、制御信号
−により制御対置プラン)4を制御する。このような制
御装置lのプラントシミュレータを用いた梼能試験は、
第2図のブロック図に示すように、制御対置プラントゲ
の機能をプラントシミュレータよのプログラムで模擬す
ることにより実施することが出来るものである。ここで
、制御対象プラン)4(はプラントの個々の機器(ポン
プP、パルプV等)の組み合わせで構成されているため
、プラントシミュレータjのプログラムもこれらの機器
に対応した機能を持つ単位プログラム要素の組み合わせ
で構成されることとなる。
FIG. 1 is a block diagram of a known plant control device.
In the figure, / indicates a control device, and μ indicates a controlled plant consisting of a pump P, a valve V, etc. In this configuration, the control device / indicates an answerback signal from the controlled plant. Upon receiving the status signal J, the control plan 4 is controlled by the control signal -. A performance test using a plant simulator for such a control device is as follows:
As shown in the block diagram of FIG. 2, the function of the control plant can be implemented by simulating it with a program such as a plant simulator. Here, since the control target plan) 4 is composed of a combination of individual plant equipment (pump P, pulp V, etc.), the program of plant simulator j is also a unit program element with functions corresponding to these equipment. It will be composed of a combination of.

とこ°ろが、プラントシミニレ−I!を構成する計算機
のプログラムは、通常第3図σ観明図(示スヨうに、操
作の内容を表わすオペレーションコード部tと、その−
作の対象を表わすオペランドコード部7により、構成さ
れるひとつの命令lが集合したものである。これに対し
て、従来はプラントの全機能のプログラムをその都廖コ
ーディング等を通じて作成していたため、その作成工数
が甚大であり、効率的な運用の妨げ虻なっていた。
However, Plant Siminire-I! The computer program constituting the software normally consists of an operation code part t representing the content of the operation, and its -
This is a collection of one instruction l composed of an operand code section 7 representing the object of the operation. In contrast, in the past, programs for all functions of a plant were created through field coding, etc., which required a tremendous amount of man-hours and hindered efficient operation.

従って、本発明の目的は1虻従来技術に僑みて、プラン
トシミュレータ等のプログラムに用いられる目的プログ
ラムの機能がある単位機能の集合で表項される時、その
単位機能を持つプログラムの必要な種類と個数を指定す
ることにより、目的とする機能を持つプログラムを自動
的に生成することを可能ならしめたプロゲラ為自動生成
方法を提供するKある・ 更に訃細には、本発明は例えばプラントの機能を模擬す
る様なプログラムを生成するに当シ、全プaグラムをそ
の都度生成する変わりに、全プラントが小さなプラント
要素の集合であること圧着目し、それぞれの各プラント
要素ごとの機能をプログラム化したパッケージをあらか
じめ用意しておき、プラント全体を模擬するプログラム
はそれらのプログラムパッケージを必要な種類、必要な
個数だけ集合して作成すること罠より、プラント全体を
Iallするプログラムの生成工数を大幅に削減するこ
とを可能ならしめたプログラム自動生成方法を提供する
ものである。
Therefore, an object of the present invention is to (1) take advantage of the prior art, and when the function of a target program used in a program such as a plant simulator is expressed as a set of unit functions, the required type of program having the unit function is The present invention provides an automatic generation method for progera that makes it possible to automatically generate a program having a desired function by specifying the number and number of programs. In order to generate a program that simulates a function, instead of generating the entire program each time, we focus on the fact that the entire plant is a collection of small plant elements, and calculate the function of each plant element. Prepare programmed packages in advance, and create a program that simulates the entire plant by collecting the necessary types and number of program packages.Instead of trapping, the man-hours required to generate a program that simulates the entire plant can be reduced. The present invention provides an automatic program generation method that makes it possible to significantly reduce costs.

以下、図面に従って本発明を更に詳細KIR明する。Hereinafter, the present invention will be explained in more detail with reference to the drawings.

#!り図は本発明の一実施例に係るプログラム自動生成
方法を適用されるプラントシミュレータのブロック構成
図を示すもので、同図中MFiMは機器単体プログラム
パッケージ群り、プラント模擬プログラムワークエリア
12、プラント模擬プログラム化弘から成る記憶装置、
OPUは第7のプラント模擬プログラム生成装置lへ第
−のプラント模擬プログラム生成装置13、プラント模
擬プログラム出力装置15等を含むデータ処理装置、O
MTは外部へのプログラム出力媒体の1例であるカセッ
トマグネティックテープ、LPは同じくラインプリンタ
である。
#! The figure shows a block configuration diagram of a plant simulator to which the automatic program generation method according to an embodiment of the present invention is applied. A storage device consisting of a simulated programming system,
The OPU is connected to a seventh plant simulation program generation device l, a data processing device including a second plant simulation program generation device 13, a plant simulation program output device 15, etc.;
MT is a cassette magnetic tape which is an example of a program output medium to the outside, and LP is also a line printer.

かかる構成に於いて、記憶装置11Mm+iMには予め
機器単体プログラムを配憶しである機器単体プログラム
パッケージ群りがセットされているが、これは第3図の
訝明図に示すようなオペランドコード部17がその属性
別に順番に番号0から劉付けられている機器単体プログ
ラムの集合である。第3図における各オペレーション;
−ド16の意味は第1表に示す通りであり、 各オペランドコードl)の各属性の意味は第1表に示す
通りである。
In this configuration, the storage device 11Mm+iM is preset with a group of device program packages in which device program packages are stored, but this includes an operand code section as shown in the schematic diagram of FIG. 17 is a set of device unit programs numbered sequentially from 0 according to their attributes. Each operation in Figure 3;
The meaning of - code 16 is as shown in Table 1, and the meaning of each attribute of each operand code l) is as shown in Table 1.

このプログラムは各オペランドの番号がバイアスされて
も、同じ属性のオペランドの相対的な順番が同じであれ
ばプログラムの機能は同じである。
In this program, even if the numbers of each operand are biased, the function of the program is the same as long as the relative order of operands with the same attribute is the same.

一方、第1のプラント模擬プログラム生成装置//は外
部からの操作信号l0VCより指定される機器単体プロ
グラムパッケージの種類と個数に従って、機器量体プロ
グラムパッケージ群によ抄プログラムを順番にプラント
模擬プログラムワークエリア/コに貯える。この時点で
はプラント模棲プログラムのオペランドコード部は前出
の第3図のままであり、オペランドの属性ごとの番号は
重複している。
On the other hand, the first plant simulation program generation device// generates a plant simulation program in order from a group of equipment program packages according to the type and number of equipment program packages specified by an external operation signal l0VC. Store in area/co. At this point, the operand code portion of the plant simulation program remains as shown in FIG. 3, and the numbers for each operand attribute are duplicated.

次に、第一のプラント模擬プログラム作成工数13が、
前記プランNu擬プログラムワークエリア/JK貯えら
れているプログラムを入力としてそれないように全体を
通した番号に変換する。このような処理を施して得られ
るのがプラン)II伊プログラムlダである。
Next, the number of man-hours for creating the first plant simulation program is 13.
The program stored in the Plan Nu pseudo program work area/JK is converted into a number that runs through the entire program as input so as not to deviate. What is obtained by performing such processing is the Plan II program.

ここで、具体的な処理の一例を第1図の説明図に示す、
第を図からも明らかな如く、第1のプラント模−プログ
ラム生成装Mうl忙よシ、先ず機器単体プログラムパッ
ケージ群デよりプログラム/1及びlりが順番にプラン
ト模擬プログラムワークエリアlコに貯えられる。この
時点ではプログラムのオペランドコード部のオペランド
属性毎の番号は整理されておらず1機器単体プログラム
パッケージ群デから読み出されたままである。プラント
模擬プログラムワークエリア/Jのプログラムは、第一
のプラント模擬プログラム生成装置13によりオペラン
ドコード部のオペランド属性毎の番号を全体の通し番号
に変換され、オペランド属性毎の番号に重複がない様に
整理された上でプラント模擬プログラムlqとして記憶
装置M1nM格納されるものである。
Here, an example of a specific process is shown in the explanatory diagram of FIG.
As is clear from Figure 1, when the first plant model program generation system is busy, programs 1 and 1 are sequentially transferred to the plant simulation program work area from the device program package group. Can be stored. At this point, the numbers for each operand attribute in the operand code portion of the program are not sorted and are still read from the single device program package group D. In the program of the plant simulation program work area/J, the number for each operand attribute in the operand code section is converted into an overall serial number by the first plant simulation program generation device 13, and the numbers for each operand attribute are organized so that there is no duplication. The program is then stored in the storage device M1nM as a plant simulation program lq.

以上述べた如くして生成されたプログラムltは、デー
タ処理装置OPUのプラント模擬プログラム出力装置/
jkより外部へ出力されるが、これは媒体であるカセッ
トマグネティックテープOMTにプログラムコードとし
て出力されたり、ラインプリンタLPにプログラムリス
トとして出力されたりする。
The program lt generated as described above is transmitted to the plant simulation program output device/
jk to the outside, but this is output as a program code to a cassette magnetic tape OMT that is a medium, or as a program list to a line printer LP.

上述した如く、本発明を実施することにより、従来その
都度全プログラムをコーディング等を介して生成してい
たものが、基本的なプログラム・パッケージをあらかじ
め記憶装置に記憶させておいて必要に応じてそれらを必
要な個数指定することにより全プログラムを自動生成す
ることが可能となり、従ってプログラム作成工数の削減
効果は甚大である。
As described above, by implementing the present invention, the basic program package can be stored in a storage device in advance and generated as needed, instead of the conventional method of generating the entire program each time through coding etc. By specifying the necessary number of them, it becomes possible to automatically generate all programs, and therefore the effect of reducing the number of program creation steps is enormous.

なお、上記実施例はプラント制御装置の試験のためのプ
ラントシミュレーIのプログラム生成を例にとって述べ
たが1本発明の実施はこれに限定されるものではなく、
これ以外の一般的なプログラム生成に関しても同様の効
果が得られることは云うまでもない、また、上記実施例
の構成において、プログラムの出力媒体をカセット・マ
グネティックテープOM?あるいはラインプリ/りLP
としたが、それ以外の媒体、例えばOR’r等であって
も本発明による効果には変わりがない。
Although the above embodiment has been described by taking as an example the generation of a program for plant simulation I for testing a plant control device, the implementation of the present invention is not limited to this.
It goes without saying that similar effects can be obtained with other general program generation.Furthermore, in the configuration of the above embodiment, the output medium of the program is a cassette or magnetic tape OM? Or line pre/ri LP
However, even if other media such as OR'r are used, the effects of the present invention will not change.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は周知のプラント制御装置と制御対9プラントと
の関係を示すブロック図、 第2図はプラント制御装置とプラント・シミュレータと
の関係を示すブロック図、 第3図はプログラムの構成を示す説明図。 第グ図は本発明の一実施例に係るプログラム自動生成方
法を適用されるプラントシミュレータのブロック構成図
。 第5図は機器単体プログラムノ(ツケージの一例を示す
説明図、 第1図はプラント模擬プログラムの自動生成の一例を示
す説明図である。 l・・・プラント制御装置、グ・・・制御対象プラント
、j・・・プラントシミュレータ、6・・・オペレーシ
ョンコー、ド部、7・・・オペランドコード部、り・・
・機器単体プログラム群、//・・・第1のプラン)I
NI!プログラム生成at、/ユ・・・プラン)I擬プ
ログラムワークエリア、/3・・・第一のプラント模擬
プログラム生成装置、/ダ・・・プラント模擬プログラ
ム・出願人代理人   猪  股     清第1図 
    第2図 第3図 第4図 PU 第5図 第6図
Figure 1 is a block diagram showing the relationship between a well-known plant control device and a control pair for nine plants, Figure 2 is a block diagram showing the relationship between a plant control device and a plant simulator, and Figure 3 is a program configuration. Explanatory diagram. FIG. 3 is a block configuration diagram of a plant simulator to which an automatic program generation method according to an embodiment of the present invention is applied. FIG. 5 is an explanatory diagram showing an example of a device unit program (taskage). FIG. 1 is an explanatory diagram showing an example of automatic generation of a plant simulation program. l... Plant control device, G... Controlled object Plant, j...Plant simulator, 6...Operation code, code part, 7... Operand code part, ri...
・Equipment unit program group, //...first plan) I
NI! Program generation at, /U...Plan) I simulated program work area, /3...First plant simulation program generation device, /Da...Plant simulation program/Applicant Kiyoshi Inomata Figure 1
Figure 2 Figure 3 Figure 4 PU Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] オペレーションコードとオペランドの相対的な位置を予
め記述してなるn11類のコード群の中から、目的プロ
グラムに合せて必要なコード群を必要個数だけ順番に発
生させ、次にオペランドの相対的な位置が各コード群間
で重複しない様にオペランドを変換することKより目的
とするプログラムコードな生成することを特徴とするプ
ログラム自動生成方法。
From among the n11 class code groups in which the relative positions of operation codes and operands are described in advance, the necessary number of code groups are generated in order according to the target program, and then the relative positions of the operands are generated. An automatic program generation method characterized in that a target program code is generated by converting operands so that K does not overlap between code groups.
JP17662081A 1981-11-04 1981-11-04 Program automatic generating method Pending JPS5878231A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17662081A JPS5878231A (en) 1981-11-04 1981-11-04 Program automatic generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17662081A JPS5878231A (en) 1981-11-04 1981-11-04 Program automatic generating method

Publications (1)

Publication Number Publication Date
JPS5878231A true JPS5878231A (en) 1983-05-11

Family

ID=16016754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17662081A Pending JPS5878231A (en) 1981-11-04 1981-11-04 Program automatic generating method

Country Status (1)

Country Link
JP (1) JPS5878231A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59229645A (en) * 1983-06-10 1984-12-24 Hitachi Ltd Calculating method of block in digital arithmetic device
JPS6137504U (en) * 1984-08-03 1986-03-08 トヨタ自動車株式会社 Sequence circuit design device
JPS6198403A (en) * 1984-10-19 1986-05-16 Toyota Motor Corp Automatic allotment/application device for program controller address
JPS61155901U (en) * 1985-03-15 1986-09-27
US4637648A (en) * 1984-08-07 1987-01-20 Mazda Motor Corporation Rear seat back locking arrangement for a motor vehicle and the like
JPS6243708A (en) * 1985-08-22 1987-02-25 Mitsubishi Electric Corp Numerical controller
JPS6327902U (en) * 1986-08-07 1988-02-24

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59229645A (en) * 1983-06-10 1984-12-24 Hitachi Ltd Calculating method of block in digital arithmetic device
JPS6137504U (en) * 1984-08-03 1986-03-08 トヨタ自動車株式会社 Sequence circuit design device
JPH0426883Y2 (en) * 1984-08-03 1992-06-29
US4637648A (en) * 1984-08-07 1987-01-20 Mazda Motor Corporation Rear seat back locking arrangement for a motor vehicle and the like
JPS6198403A (en) * 1984-10-19 1986-05-16 Toyota Motor Corp Automatic allotment/application device for program controller address
JPH0434767B2 (en) * 1984-10-19 1992-06-09 Toyota Motor Co Ltd
JPS61155901U (en) * 1985-03-15 1986-09-27
JPS6243708A (en) * 1985-08-22 1987-02-25 Mitsubishi Electric Corp Numerical controller
JPS6327902U (en) * 1986-08-07 1988-02-24

Similar Documents

Publication Publication Date Title
Cook et al. Time-bounded random access machines
JP2699377B2 (en) Hardware logic simulator
CA2266719A1 (en) System and method for simulating signal flow through a logic block pattern of a real time process control system
JPS5878231A (en) Program automatic generating method
US20080300846A1 (en) Methods and apparatus for hardware simulation and design verification
CN104765616B (en) A kind of method and system for automatically generating I/O model
JP2585460B2 (en) Test data creation method
Voss et al. The analysis of modeling styles for system level VHDL simulations
JPH05216706A (en) On-line simulation system
Shapiro Arbitrary 3n-j symbols for SU (2)
KR20230003784A (en) Simulation apparatus using actual power plant operating variable values as initial conditions
Weinert A Simscript-Fortran Case Study
JPH03130839A (en) On-line simulation system
JPH03250225A (en) Logical simulation environment setting system
JPH0245781A (en) Test data generating device for printed board
Prescotta et al. Automated Fire PRA Scenario Modeling in SAPHIRE Using FRI3D
Pedersen Software Development Using VDM
JP2576379B2 (en) Logic simulation equipment
JPS60114909A (en) Logical operating device
Zhang et al. Generating Petri net driven graphical simulation tool for automated systems
Bright Early FORTRAN User Experience
JPH0895817A (en) Method for testing information processor
JPS62235652A (en) Debugging method for program
Tomovic Application of simulation software in teaching system dynamics related courses
JP2013077104A (en) Logic conversion device, logic conversion method and program