JPH01282605A - Program automatic preparing device - Google Patents

Program automatic preparing device

Info

Publication number
JPH01282605A
JPH01282605A JP11339588A JP11339588A JPH01282605A JP H01282605 A JPH01282605 A JP H01282605A JP 11339588 A JP11339588 A JP 11339588A JP 11339588 A JP11339588 A JP 11339588A JP H01282605 A JPH01282605 A JP H01282605A
Authority
JP
Japan
Prior art keywords
program
pattern
output
output request
individual
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
JP11339588A
Other languages
Japanese (ja)
Inventor
Akira Nojima
章 野島
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 JP11339588A priority Critical patent/JPH01282605A/en
Publication of JPH01282605A publication Critical patent/JPH01282605A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decrease the burden of a designer and to shorten a processing time by respectively separating a program according to the fact whether or not the output request is executed, based on the inputted system specifications, synthesizing in accordance with the pattern of the fundamental system of the program and optimizing the synthesized result. CONSTITUTION:The title device provides an individual program preparing part 12, an individual program synthesizing pattern preparing part 13 and a synthesizing pattern developing part 14, and based on the inputted system specifications, the program with an output request and the program without the output request are respectively separated and prepared. Further, these programs are synthesized in accordance with the pattern of the fundamental system of the program to be prepared and the synthesized result is optimized. Thus, a designer separately prepares a request function, does not need to have software parts, and therefore, the burden of the designer can be decreased and the processing time can be drastically shortened.

Description

【発明の詳細な説明】 〔発明の目的〕 (産業上の利用分野) この発明は、プラントシステム等を制御するに好適なプ
ログラマブルコントローラのシーケンスプログラムを0
動的に生成するプログラム自動生成装置に関するもので
ある。
Detailed Description of the Invention [Objective of the Invention] (Industrial Application Field) The present invention provides a sequence program for a programmable controller suitable for controlling a plant system, etc.
This invention relates to an automatic program generation device that dynamically generates a program.

(従来の技術) 近年、ソフトウェア設計の生産性向上を図るために、知
識工学を応用したプログラム自動生成システムの研究、
開発がさかんに行われている。その中でも主流を占める
ものとして、既存のプログラムをソフトウェア部品と見
なし、要求する機能に該当するソフトウェア部品をルー
ルにより自動検索するという方法を用いた、いわゆる、
ソフトウェア部品検索方法がある。
(Conventional technology) In recent years, in order to improve the productivity of software design, research has been carried out on automatic program generation systems that apply knowledge engineering.
Development is ongoing. Among them, the most popular method is to treat existing programs as software components and automatically search for software components that correspond to the required functionality using rules.
There is a software component search method.

第5図はこの種の従来のプログラム自動生成装置の構成
を示すブロック図である。同図において、要求機能1は
、検索したいソフトウェア部品の機能を定義したもので
、キーボードや文字読取り装置等によりプログラム自動
生成装置10に入力される。この要求機能は、要求機能
解読・変換処理系2にてソフトウェア部品検索で使用す
る内部データに変換され、要求機能内部データ記憶部3
に格納される。このようにして格納されたデータに基づ
いて、ソフトウェア部品検索推論処理系4内のインタプ
リタ41は、ソフトウェア部品検索ルール記憶部5に格
納されたルールに適合するソフトウェア部品をソフトウ
ェア部品記憶部6内のプログラム記憶部61より検索す
る。そして検索されたプログラムは内部部品プログラム
記憶部8に記憶され、さらに、プログラム変換・出力処
理系9にてユーザまたは設計者に理解しやすい言語に変
換して出力される。
FIG. 5 is a block diagram showing the configuration of a conventional automatic program generation device of this type. In the figure, a requested function 1 defines the function of a software component to be searched for, and is input into the automatic program generation device 10 using a keyboard, a character reading device, or the like. This requested function is converted into internal data used in software component search by the requested function decoding/conversion processing system 2, and is converted into internal data used in the request function internal data storage section 3.
is stored in Based on the data stored in this way, the interpreter 41 in the software component search inference processing system 4 selects software components that match the rules stored in the software component search rule storage section 5 into the software component storage section 6. Search from the program storage unit 61. The searched program is then stored in the internal component program storage section 8, and further converted into a language that is easy for the user or designer to understand by the program conversion/output processing system 9 and output.

なお、作業記憶部7は、内部にソフトウェア部品検索特
使用データ記憶部71を持ち、ルールインタプリタ41
によりソフトウェア部品検索ルールが解釈・実行される
時に、−時的に内部データの書込み、読出しを行うもの
である。
Note that the working memory unit 7 has a software component search special use data storage unit 71 therein, and a rule interpreter 41.
When the software component search rule is interpreted and executed, internal data is occasionally written and read.

かくして、要求機能に応じて検索され、実際の対象言語
に変換されたプログラム8がプログラム自動生成装置1
0の出力として、例えば、CRTやファイルなど何等か
の出力手段により出力される。
In this way, the program 8 searched according to the requested function and converted into the actual target language is sent to the program automatic generation device 1.
The zero output is output by some output means such as a CRT or a file.

なお、システムによっては、要求機能内部データと要求
機能が同一形式をとるため、要求機能解読・変換処理系
2を持たないものや、内部プログラムとプログラム8が
同一形式をとるためプログラム変換・出力処理系9を持
たないものもある。
Note that, depending on the system, the requested function internal data and the requested function take the same format, so some systems do not have the requested function decoding/conversion processing system 2, and some systems do not have the requested function decoding/conversion processing system 2, and the internal program and the program 8 take the same format, so the program conversion/output processing Some do not have Corollary 9.

(発明が解決しようとする課題) 上述した従来の自動プログラム生成装置は、プログラム
に対する機能、および、ソフトウェア部品間の結合を定
義した要求機能を人力してシーケンス用のプログラムを
生成していた。しかし、−般のプラントにおいては、設
備機械をどのように運転するか、また、その駆動装置の
種類、検出器の種類および使用目的等を記述した対象シ
ステムのシステム仕様書が呈示される。
(Problems to be Solved by the Invention) The conventional automatic program generation device described above generates a sequence program by manually defining functions for the program and required functions that define connections between software components. However, in a typical plant, system specifications of the target system are presented that describe how the equipment and machinery are to be operated, the type of drive device, the type of detector, and the purpose of use.

従って、上記システム仕様を満たすプラントシステムの
プログラムを生成するためには、システム仕様に基づい
て、設計者がプログラムの全体構成を考慮して上記要求
機能を別途用意しなければならず、設計者の負担が大き
すぎるという問題点があった。
Therefore, in order to generate a plant system program that satisfies the above system specifications, the designer must separately prepare the above required functions based on the system specifications and considering the overall program configuration. The problem was that the burden was too heavy.

また、上記ソフトウェア部品は、部品を構成する信号、
データの意味および組合わせが、使用目的ごとに具体的
に決められているため、上記要求機能とソフトウェア部
品とを極カ一致させるために、ソフトウェア部品の数が
膨大となり、その処理に多くの時間を要するという問題
点もあった。
In addition, the above software components include signals that constitute the components,
Since the meaning and combination of data are specifically determined for each purpose of use, the number of software components required to closely match the required functions and software components becomes enormous, and it takes a lot of time to process them. There was also the problem that it required

この発明は、上記の問題点を解決するためになされたも
ので、設計者の負担を軽減すると共に、ソフトウェア部
品を不要化して処理時間を大幅に短縮することのできる
プログラム自動生成装置を得ることを目的とする。
This invention was made to solve the above problems, and provides an automatic program generation device that can reduce the burden on designers, eliminate the need for software components, and significantly shorten processing time. With the goal.

〔発明の構成〕[Structure of the invention]

(課題を解決するための手段) 本発明は、要求機能を所定の形式に変換した内部データ
に基づき、出力要求のHるプログラムと出力要求の無い
プログラムとをそれぞれ分離して作成する個別プログラ
ム作成部と、前記出力要求の有無により、作成すべきプ
ログラムの基本系のパターンを発生する個別プログラム
合成パターン発生部と、前記個別プログラム作成部で作
成された個別プログラムを前記合成パターン発生部の基
本系のパターンに従って合成すると共に、合成結果を最
適化する合成パターン展開部とを備え、最適化されたプ
ログラムをユーザ等が理解しやすい言語に変換して出力
することを特徴とするものである。
(Means for Solving the Problems) The present invention provides individual program creation in which a program with an output request and a program with no output request are created separately based on internal data obtained by converting the required function into a predetermined format. an individual program synthesis pattern generation section that generates a pattern of the basic system of the program to be created depending on the presence or absence of the output request; The present invention is characterized in that it is equipped with a synthesis pattern expansion unit that synthesizes according to the pattern and optimizes the synthesis result, and converts the optimized program into a language that is easy for users to understand and outputs it.

(作 用) この発明においては、入力されたシステム仕様に基づき
、出力要求の有るプログラムと出力要求の無いプログラ
ムとをそれぞれ分離して作成し、さらに、これらのプロ
グラムを作成すべきプログラムの基本系のパターンに従
って合成すると共に、合成結果を最適化するようにした
ので、従来装置のように設計者が要求機能を別途用意し
たり、ソフトウェア部品を持つ必要がなくなるので、設
計者の負担を軽減すると共に、処理時間を大幅に短縮す
ることが出来る。
(Function) In this invention, a program with an output request and a program without an output request are created separately based on the input system specifications, and furthermore, the basic system of the program to create these programs is created. In addition to optimizing the synthesis results according to the pattern, the designer no longer needs to prepare required functions separately or have software components, which is the case with conventional equipment, reducing the designer's burden. At the same time, processing time can be significantly shortened.

(実施例) 第1図はこの発明の一実施例の構成を示すブロック図で
あり、図中、第5図と同一の符号を付したものはそれぞ
れ同一の要素を示す。そして、第5図に示したソフトウ
ェア部品検索推論処理系4、ソフトウェア部品検索ルー
ル記憶部5、ソフトウェア部品記憶部6、作業記憶部7
および内部部品プログラム記憶部8を除去し、その代わ
りに、内部データに基づき、要求仕様にて作成されるプ
ログラムに対して、それぞれ出力要求の有る仕様(以下
ラダー図と対応させるべく出力をオンする仕様という)
と、出力要求の無い仕様(以下ラダー図と対応させるべ
く出力をオフする仕様という)とにそれぞれ対応するプ
ログラムを作成する個別プログラム作成部12と、プロ
グラムの出力のオン、オフする仕様により、作成すべき
プログラムの基本系のパターンを発生する個別プログラ
ム合成パターン発生部13と、個別プログラム作成部1
2からの出力をオン、オフすべき仕様と合成パターン発
生部13の基本系のパターンとにより作、成すべきプロ
グラムとして合成し、この合成された結果を最適化する
合成パターン展開部14とを設けたものである。
(Embodiment) FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, and in the figure, the same reference numerals as in FIG. 5 indicate the same elements. The software component search inference processing system 4, the software component search rule storage section 5, the software component storage section 6, and the working storage section 7 shown in FIG.
and the internal component program storage unit 8, and instead, for programs created according to the required specifications based on internal data, the output is turned on in order to correspond to the specifications with output requirements (hereinafter referred to as the ladder diagram). (referred to as specifications)
and specifications that do not require output (hereinafter referred to as specifications for turning off output to correspond to the ladder diagram). an individual program synthesis pattern generation section 13 that generates a basic system pattern of a program to be executed; and an individual program creation section 1
A synthetic pattern development section 14 is provided which synthesizes the outputs from 2 as a program to be created and executed based on the specifications to turn on and off and the basic pattern of the synthetic pattern generation section 13, and optimizes the synthesized result. It is something that

上記のように構成された本実施例の動作を、第3図乃至
第4図のラダー図をも参照して以下に説明する。
The operation of this embodiment configured as described above will be explained below with reference to the ladder diagrams of FIGS. 3 and 4.

プログラムの機能を定義した要求機能1により作成すべ
きシーケンスのプログラムを決定し、そのプログラム出
力に対する仕様をプログラム自動生成装置10aの要求
機能解読・変換処理系2に渡す。この要求機能・変換処
理系2は前記プログラム出力に対する仕様を解読し、プ
ログラム自動生成装置内部で使用する知識、言語に変換
する。
A sequence program to be created is determined by the request function 1 that defines the program function, and specifications for the program output are passed to the request function decoding/conversion processing system 2 of the automatic program generation device 10a. This required function/conversion processing system 2 decodes the specifications for the program output and converts them into knowledge and language used within the automatic program generation device.

そして、その結果を要求機能内部データ記憶部31こ;
己憶させる。
The result is then sent to the request function internal data storage unit 31;
Make yourself remember.

次に、記憶された結果に基づいて、個別プログラム作成
部12は、作成すべきシーケンスのプログラム出力に対
する仕様から当該プログラムの出力をオンするプログラ
ムと、当該プログラムの出力をオフするプログラムとを
それぞれ個別に作成する。この具体的なプログラム例を
第2図に示すが、出力コイルXは該当プログラム出力を
オンにする補助出力、出力コイルYは該当プログラムを
オフにする補助出力である。また、a 、  b 、c
 t *c2.dは該当プログラム出力をオンまたはオ
フにする仕様である。
Next, based on the stored results, the individual program creation unit 12 individually creates a program to turn on the output of the program and a program to turn off the output of the program based on the specifications for the program output of the sequence to be created. Create to. A specific example of this program is shown in FIG. 2, where the output coil X is an auxiliary output that turns on the output of the corresponding program, and the output coil Y is an auxiliary output that turns off the corresponding program. Also, a, b, c
t*c2. d is a specification for turning on or off the corresponding program output.

個別プログラム合成パターン発生部13は、該当プログ
ラム出力コイルZに対して、出力コイルZをオンにする
仕様の補助出力Xとオフにする補助出力Yとから構成さ
れた第3図に示すコイルによりホールドされた基本パタ
ーンを有する。このホールドすると言う意味は、プログ
ラマブルコントローラのプログラムのように、一定時間
毎に繰返し実行されるプログラムの場合は、「出力をオ
ンする信号X」がオフとなっていても「出力をオフする
信号Y」がオフとなるまで、コイルZをオフしてはいけ
ないためである。
The individual program synthesis pattern generation section 13 holds the corresponding program output coil Z by a coil shown in FIG. It has a basic pattern. This holding means that in the case of a program that is executed repeatedly at regular intervals, such as a programmable controller program, even if "signal X that turns on the output" is off, "signal Y that turns off the output This is because coil Z must not be turned off until `` is turned off.

つぎに合成パターン展開部14により、個別プログラム
合成パターンのパラメータx、 y、  zを、プール
代数を用いて置換することにより、個別プログラム作成
部12で個別に作成されたプログラムを一つのプログラ
ムに合成する。この具体例を示すと次のようになる。
Next, the synthesis pattern expansion unit 14 synthesizes the programs individually created by the individual program creation unit 12 into one program by replacing the parameters x, y, and z of the individual program synthesis pattern using pool algebra. do. A concrete example of this is as follows.

X−1Ia11b争c1 ・・・(1)y−b争C・・
・(2) Z−(X+Z) ・Y・・・(3) 上記(1)〜(3)式は第2図および第3図の内容をプ
ール代数で表したものである。
X-1Ia11b dispute c1 ... (1) y-b dispute C...
・(2) Z−(X+Z) ・Y...(3) The above equations (1) to (3) represent the contents of FIGS. 2 and 3 using pool algebra.

このうち、(1) 、 (2)式を(3)式に代入し、
整理すると下記(4)式が得られる。
Of these, substituting equations (1) and (2) into equation (3),
When rearranged, the following equation (4) can be obtained.

この(4)式をラダー表現すると第4図となり、これが
仕様から求められたプログラムの結果である。
Expression (4) can be expressed as a ladder in Figure 4, which is the result of the program determined from the specifications.

上記のようにして合成、最適化されたブログラム装置内
部の知識、言語で記述されているため、プログラム変換
・出力処理系9によりこれを実際に使用するプログラマ
ブルコントローラ、または、設:1゛者およびユーザに
理解し易い言語に変換し、プログラム出力11を得る。
Since it is written in the language and knowledge inside the program device synthesized and optimized as described above, the programmable controller or the designer who actually uses it by the program conversion/output processing system 9 Then, the program output 11 is obtained by converting it into a language that is easy for the user to understand.

〔発明の効果〕〔Effect of the invention〕

以上の説明によって明らかなように、この発明によれば
、入力されたシステム仕様に基づき、出力要求の有るプ
ログラムと出力要求の無いプログラムとをそれぞれ分離
して作成し、さらに、これらのプログラムを作成すべき
プログラムの基本系のパターンに従って合成すると共に
、合成結果を最適化するようにしたので、従来装置のよ
うに設計者が要求機能を別途用意したり、ソフトウェア
部品を持つ必要がなくなるので、設計者の負担を軽減す
ると共に、処理時間を大幅に短縮できるという効果があ
る。
As is clear from the above description, according to the present invention, a program with an output request and a program without an output request are created separately based on input system specifications, and furthermore, these programs are created. Since the synthesis is performed according to the basic pattern of the program to be executed, and the synthesis results are optimized, the designer does not need to separately prepare required functions or have software components, unlike in conventional equipment. This has the effect of reducing the burden on the person and significantly shortening the processing time.

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

第1図はこの発明の一実施例の構成を示すブロック図、
第2図乃至第4図は同実施例の動作を説明だめのラダー
図、第5図は従来のプログラム自動生成装置の構成を示
すブロック図である。 1・・・要求機能解読・変換処理系、3・・・要求機能
内部データ記憶部、9・・・プログラム変換・出力処理
系、10a・・・プログラム自動生成装置、12・・・
個別プログラム作成部、13・・・個別プログラム合成
パターン発生部、14・・・合成パターン展開部。 出願人代理人  佐  藤  −雄 第1図
FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
2 to 4 are ladder diagrams for explaining the operation of the same embodiment, and FIG. 5 is a block diagram showing the configuration of a conventional automatic program generation device. DESCRIPTION OF SYMBOLS 1... Requested function decoding/conversion processing system, 3... Requested function internal data storage section, 9... Program conversion/output processing system, 10a... Program automatic generation device, 12...
Individual program creation section, 13...Individual program composite pattern generation section, 14... Composite pattern development section. Applicant's agent Mr. Sato Figure 1

Claims (1)

【特許請求の範囲】[Claims] プログラムの機能を定義した要求機能を、所定の形式の
内部データに変換し、この内部データを用いてシーケン
ス用のプログラムを生成すると共に、このプログラムを
ユーザ等が理解しやすい言語に変換して出力するものに
おいて、前記内部データに基づき、出力要求の有るプロ
グラムと出力要求の無いプログラムとをそれぞれ分離し
て作成する個別プログラム作成部と、前記出力要求の有
無により、作成すべきプログラムの基本系のパターンを
発生する個別プログラム合成パターン発生部と、前記個
別プログラム作成部で作成された個別プログラムを前記
合成パターン発生部の基本系のパターンに従って合成す
ると共に、合成結果を最適化する合成パターン展開部と
を備え、最適化されたプログラムをユーザ等が理解しや
すい言語に変換して出力することを特徴とするプログラ
ム自動生成装置。
Converts the required function that defines the program function into internal data in a predetermined format, uses this internal data to generate a sequence program, and converts this program into a language that is easy for users to understand and outputs it. an individual program creation unit that separately creates a program with an output request and a program without an output request based on the internal data, and a separate program creation unit that creates a basic system of the program to be created depending on the presence or absence of the output request. an individual program synthesis pattern generation section that generates a pattern; a synthesis pattern expansion section that synthesizes the individual programs created by the individual program generation section according to a basic system pattern of the synthesis pattern generation section and optimizes the synthesis result; What is claimed is: 1. An automatic program generation device that converts an optimized program into a language that is easy for users to understand and outputs it.
JP11339588A 1988-05-10 1988-05-10 Program automatic preparing device Pending JPH01282605A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11339588A JPH01282605A (en) 1988-05-10 1988-05-10 Program automatic preparing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11339588A JPH01282605A (en) 1988-05-10 1988-05-10 Program automatic preparing device

Publications (1)

Publication Number Publication Date
JPH01282605A true JPH01282605A (en) 1989-11-14

Family

ID=14611219

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11339588A Pending JPH01282605A (en) 1988-05-10 1988-05-10 Program automatic preparing device

Country Status (1)

Country Link
JP (1) JPH01282605A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59180701A (en) * 1983-03-31 1984-10-13 Matsushita Electric Works Ltd Device for outputting graphic of sequence program for sequencer
JPS61143809A (en) * 1984-12-17 1986-07-01 Fuji Electric Co Ltd Programmable controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59180701A (en) * 1983-03-31 1984-10-13 Matsushita Electric Works Ltd Device for outputting graphic of sequence program for sequencer
JPS61143809A (en) * 1984-12-17 1986-07-01 Fuji Electric Co Ltd Programmable controller

Similar Documents

Publication Publication Date Title
JPH02255914A (en) Automatic program producing device
JPH01282605A (en) Program automatic preparing device
JPH01169605A (en) Program generating device
JPH0667871A (en) Automatic program updating system
JPH0210429A (en) Program structure processing system
JP2009157534A (en) Programming support system, its programmable controller support device, and programmable indicator support device
JP3019874B2 (en) Program generation / synthesis apparatus and method
JPH0588898A (en) Option value setting method, ai tool system and language processing tool system
JPS6361329A (en) Programming device
JPH02230330A (en) Inference device
JPS62235643A (en) Program language translator
JPH05233241A (en) Program forming device
JPH04340628A (en) Fuzzy inference process compile system
JPH0784796A (en) Instruction code selector
JPS62166432A (en) Control system for program translation
JPH02253443A (en) Program generating method
JPH05307473A (en) Automatic program generating device
JPH04322327A (en) Subroutine sharing method
JPH01144127A (en) Interpreter system
JPH04318623A (en) Controller
JPH0498533A (en) Automatic program generating device with macroblock diagram processing function
JPH01271837A (en) Software developing device
JPH0895763A (en) Method for fetching component program in original program
JPS61216085A (en) Vector processing program producing system
JPS6057437A (en) Compiler device