JPH07191840A - Automatic program generator - Google Patents

Automatic program generator

Info

Publication number
JPH07191840A
JPH07191840A JP33294693A JP33294693A JPH07191840A JP H07191840 A JPH07191840 A JP H07191840A JP 33294693 A JP33294693 A JP 33294693A JP 33294693 A JP33294693 A JP 33294693A JP H07191840 A JPH07191840 A JP H07191840A
Authority
JP
Japan
Prior art keywords
program
data
data flow
graphic
type
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
JP33294693A
Other languages
Japanese (ja)
Inventor
Tomohiro Kobayashi
知宏 小林
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP33294693A priority Critical patent/JPH07191840A/en
Publication of JPH07191840A publication Critical patent/JPH07191840A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To design a control program, which uses the patterns of variables corresponding to controlled contents, on a graphic picture by generating the pattern of data corresponding to respective data flow connecting terminals at the control program as the patterns of the variables of the program. CONSTITUTION:A symbol inputted from a graphic symbol file 4 is retrieved by a graphic symbol retrieving means 10 and displayed on a screen. Next, the pattern of data provided for any relevant program module is retrieved from a program module 5 by a data pattern retrieving means 20, and that pattern information is displayed on the graphic picture by a data pattern display means 21. A remaining picture is retrieved from a graphic drawing 6 by a graphic picture retrieving means 13, the program module corresponding to that picture is selected from a program module file 5 and further the selected program modules are linked through the variables by a variable generating means 15 so that the source code of the control program can be generated.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、コンピュータ制御さ
れるシステムの制御プログラム作成の際に、グラフィッ
クシンボルの組み合わせによって制御プログラムを自動
生成するプログラム自動生成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic program generation device for automatically generating a control program by combining graphic symbols when creating a control program for a computer-controlled system.

【0002】[0002]

【従来の技術】従来、コンピュータ制御システムの制御
プログラムを作成する場合、システムエンジニアが担当
するシステム設計から、それに基づいてプログラムエン
ジニアが担当する制御プログラム作成までを自動的に行
うために、汎用性のある制御プログラムモジュールを予
め登録しておき、これらのプログラムモジュールをグラ
フィックシンボルで表示し、組み合わせることによって
制御プログラムを設計し、自動的に生成するプログラム
生成装置が提案されている。制御プログラムモジュール
をグラフィックシンボルとして表示し、それらを組み合
わせることによって制御プログラムを自動生成する方法
及び装置については、例えば、特開平2ー277126
号公報に記載されている。
2. Description of the Related Art Conventionally, when a control program for a computer control system is created, a system engineer is in charge of system design, and a program engineer is in charge of creating a control program based on it. There has been proposed a program generation device which registers a certain control program module in advance, displays these program modules with graphic symbols, and designs a control program by combining them to automatically generate them. For a method and an apparatus for automatically generating a control program by displaying control program modules as graphic symbols and combining them, see, for example, Japanese Patent Laid-Open No. 2-277126.
It is described in Japanese Patent Publication No.

【0003】図13は従来のプログラム自動生成装置の
全体構成を示す図であり、図において、1はコンピュー
タ要部で制御プログラム自動生成装置本体である。2は
表示手段、3は入力手段である。4は制御アルゴリズム
を示すグラフィックシンボルをストアしているグラフイ
ックシンボルファイル、5は制御アルゴリズムを示す高
級言語であるモジュールをストアしているプログラムモ
ジュールファイル、6はグラフィックシンボルをデータ
フローを示す線(以降データフロー線という)でつなぎ
合わせて編集されたグラフィック画面をストアするグラ
フィック図面ファイル、7は編集されたグラフィック図
面の情報とプログラムモジュールとから生成された制御
プログラムをストアする生成プログラムファイルであ
る。
FIG. 13 is a diagram showing the overall structure of a conventional program automatic generation device. In the figure, reference numeral 1 denotes a computer main part, which is a control program automatic generation device main body. Reference numeral 2 is a display means and 3 is an input means. 4 is a graphic symbol file that stores a graphic symbol indicating a control algorithm, 5 is a program module file that stores a module that is a high-level language that indicates a control algorithm, and 6 is a line that indicates a data flow of a graphic symbol (hereinafter, data). A graphic drawing file for storing a graphic screen edited by connecting with a flow line), and a generation program file 7 for storing a control program generated from information of the edited graphic drawing and a program module.

【0004】また、制御プログラム自動生成装置1は、
制御アルゴリズムを示すグラフィックシンボルをデータ
フロー線で接続し制御プログラムをグラフィック図面上
で設計するグラフィック図面編集手段8と、編集された
グラフィック図面の情報から制御プログラムのソースコ
ードを生成する制御プログラム生成手段9とから構成さ
れる。
Further, the control program automatic generation apparatus 1 is
Graphic drawing editing means 8 for designing a control program on a graphic drawing by connecting graphic symbols indicating a control algorithm with a data flow line, and control program generating means 9 for generating a source code of the control program from the information of the edited graphic drawing. Composed of and.

【0005】さらに、グラフィック図面編集手段8は、
グラフィックシンボルファイル4からグラフィックシン
ボルを検索しグラフィック図面に生成するグラフィック
シンボル検索手段10、グラフィック図面上でデータフ
ロー接続端子をデータフロー線で接続するデータフロー
接続手段11、および接続されたグラフィック図面をグ
ラフィック図面ファイル6にストアするグラフィック図
面保存手段12から成る。また、制御プログラム生成手
段9は、プログラム生成するグラフィック図面の情報を
グラフィック図面ファイル6から検索するグラフィック
図面情報検索手段13、グラフィックシンボルの制御ア
ルゴリズム実体をプログラムモジュールファイル5から
検索するプログラムモジュール検索手段14、および検
索されたプログラムモジュールをグラフィック図面のデ
ータフロー線の接続情報をもとに変数でつないで制御プ
ログラムを生成する変数生成手段15から成る。
Further, the graphic drawing editing means 8 is
A graphic symbol searching means 10 for searching a graphic symbol from the graphic symbol file 4 and generating it in a graphic drawing, a data flow connecting means 11 for connecting a data flow connecting terminal with a data flow line on the graphic drawing, and a connected graphic drawing It comprises graphic drawing storage means 12 for storing in the drawing file 6. Further, the control program generating means 9 is a graphic drawing information searching means 13 for searching the graphic drawing file 6 for the information of the graphic drawing to be generated by the program, and a program module searching means 14 for searching the program module file 5 for the control algorithm entity of the graphic symbol. , And variable generation means 15 for generating a control program by connecting the retrieved program modules with variables based on the connection information of the data flow lines of the graphic drawing.

【0006】次に、動作について図14のフローチャー
トを用いて説明する。まず、設計者は生成しようとする
制御アルゴリズムのシンボルを入力手段3により選択す
る(S1)。これにより、グラフィックシンボル検索手
段10によってグラフィックシンボルファイル4からそ
のシンボルが検索され画面に表示される。続いて、グラ
フィックシンボルのデータフロー線がデータフロー接続
手段11によって接続され画面に表示される(S2)。
グラフィック画面上でのプログラム設計が完了するまで
(S3でNOのとき)上記の処理を繰り返す。図15は
設計されたグラフィック画面例で、制御アルゴリズムを
示すシンボル16および17がそれぞれのデータフロー
接続端子18をつなぐデータフロー線19で接続されて
いる。
Next, the operation will be described with reference to the flowchart of FIG. First, the designer selects the symbol of the control algorithm to be generated by the input means 3 (S1). As a result, the graphic symbol search means 10 searches for the symbol from the graphic symbol file 4 and displays it on the screen. Then, the data flow line of the graphic symbol is connected by the data flow connecting means 11 and displayed on the screen (S2).
The above process is repeated until the program design on the graphic screen is completed (NO in S3). FIG. 15 shows an example of a designed graphic screen, in which symbols 16 and 17 showing a control algorithm are connected by a data flow line 19 connecting respective data flow connection terminals 18.

【0007】設計が完了すると(S3でYESのと
き)、図面上で設計された図面グラフィック図面保存手
段12によってグラフィック図面ファイル6に保存され
る(S4)。その後、グラフィック図面情報検索手段1
3が、保存された図面をグラフィック図面ファイル6か
ら検索し、その図面に対応するプログラムモジュールを
プログラムモジュール検索手段14がプログラムモジュ
ールファイル5から選択し、さらに、変数生成手段15
が選択されたプログラムモジュールを変数でつなぐこと
により、制御プログラムのソースコードが生成される
(S5)。
When the design is completed (YES in S3), it is stored in the graphic drawing file 6 by the drawing graphic drawing storing means 12 designed on the drawing (S4). After that, the graphic drawing information retrieval means 1
3 searches the saved drawing from the graphic drawing file 6, the program module searching means 14 selects the program module corresponding to the drawing from the program module file 5, and further the variable generating means 15
The source code of the control program is generated by connecting the selected program modules with a variable (S5).

【0008】[0008]

【発明が解決しようとする課題】上記のような従来のプ
ログラム自動生成装置では、グラフィック図面上でデー
タフロー接続端子18に型の区別がないので、登録され
たプログラムモジュール内のデータの実体である変数
は、すべてのデータの型を包含できる1種類の型にする
必要があり、複数種類の変数の型を使用した制御プログ
ラムを生成することができなかった。そのため、演算精
度や演算速度等の制御内容に応じたデータ、I/O形式
に応じたデータなど、データの特性が異なる場合も型を
一律にするのでプログラム生成の能率が悪く、生成され
たプログラムの精度が悪いといった問題点があった。
In the conventional program automatic generation device as described above, since the data flow connection terminal 18 has no type distinction on the graphic drawing, it is the substance of the data in the registered program module. The variable needs to be one type that can include all data types, and it has been impossible to generate a control program using multiple types of variables. Therefore, even if the characteristics of data such as data according to control contents such as calculation accuracy and calculation speed, data according to I / O format, etc. are different, the type is uniform, so that the efficiency of program generation is poor and the generated program There was a problem that the accuracy of was poor.

【0009】この発明は、上述のような課題を解決する
ためになされたもので、第1の目的は、制御内容に応じ
た変数の型を使用した制御プログラムをグラフィック画
面上で設計できるプログラム自動生成装置を得るもので
ある。また、第2の目的は、複数種類のデータ型のデー
タフロー接続端子を接続する場合に、接続誤りがない制
御プログラムを生成できるプログラム自動生成装置を得
るものである。さらに、第3の目的は、プログラム設計
者がデータの型を意識することなく、複数種類のデータ
型を使用した制御プログラムを生成できるプログラム自
動生成装置を得るものである。
The present invention has been made to solve the above problems, and a first object of the present invention is to provide a program automatic program capable of designing a control program using a variable type according to control contents on a graphic screen. To obtain a generator. A second object is to obtain an automatic program generation device that can generate a control program without connection error when connecting data flow connection terminals of a plurality of types of data. Furthermore, a third object is to obtain an automatic program generation device that allows a program designer to generate a control program using a plurality of types of data without being aware of the type of data.

【0010】[0010]

【課題を解決するための手段】この発明に係るプログラ
ム自動生成装置においては、各プログラムモジュールの
グラフィックシンボルに該プログラムの入出力データの
数のデータフロー接続端子を設け、このデータフロー接
続端子のそれぞれとデータの型情報とを対応づけるデー
タ型検索手段、上記グラフィックシンボルのデータフロ
ー接続端子の持つデータ型情報をグラフィック図面上に
表示するデータ型表示手段、および上記各データフロー
接続端子に対応づけられたデータの型をプログラムの変
数の型として制御プログラムに生成する変数生成手段を
備えている。
In the automatic program generation device according to the present invention, the graphic symbols of each program module are provided with data flow connection terminals for the number of input / output data of the program, and each of the data flow connection terminals is provided. And data type information are associated with each other, data type display means for displaying the data type information of the data flow connection terminal of the graphic symbol on the graphic drawing, and data type connection means associated with each data flow connection terminal. The control program is provided with variable generation means for generating the data type as a variable type of the program.

【0011】また、データフロー線によってつながった
2つのデータフロー接続端子の持つデータ型情報が同一
か否かを判定し、判定結果を表示するデータ型判定手段
を備えたものである。
Further, the data type determination means for determining whether or not the data type information held by the two data flow connection terminals connected by the data flow line is the same and displaying the determination result is provided.

【0012】また、異なるデータ型を持つデータフロー
接続端子をデータフロー線で接続する場合に型合わせの
処理を生成するキャスト処理生成手段を備えたものであ
る。
Further, there is provided a cast process generating means for generating a type matching process when connecting the data flow connecting terminals having different data types by the data flow line.

【0013】[0013]

【作用】この発明においては、プログラムの入出力デー
タの数だけそのグラフィックシンボルに接続端子が設け
られ、データ型検索手段によりそれぞれの接続端子とデ
ータの型情報とが対応づけられて、変数生成手段により
その型情報をプログラムの変数の型として制御プログラ
ムが生成される。
In the present invention, the graphic symbols are provided with the connecting terminals as many as the input / output data of the program, and the data type searching means associates the respective connecting terminals with the data type information to make the variable generating means. The control program is generated by using the type information as the variable type of the program.

【0014】また、データ型判定手段によりデータフロ
ー線が接続された2つの接続端子が同一か否かが判定さ
れ、その判定結果が表示される。
Further, the data type determination means determines whether or not the two connection terminals to which the data flow line is connected are the same, and the determination result is displayed.

【0015】また、キャスト処理生成手段により、デー
タフロー線がデータ型が異なる2つの接続端子に接続さ
れた場合に、双方の型を包含するような型に型合わせす
る処理が生成される。
Further, when the data flow line is connected to two connection terminals having different data types, the cast process generating means generates a process for matching the types to include both types.

【0016】[0016]

【実施例】【Example】

実施例1.以下、この発明の一実施例を図について説明
する。図1において、1〜15は従来のものと同一また
は相当部分である。20はプログラムモジュールファイ
ル5からそのプログラムが持つデータの型を検索し、グ
ラフィックシンボルのデータフロー接続端子に対応づけ
るデータ型検索手段、21はデータフロー接続端子のデ
ータ型をグラフィック図面に表示するデータ型表示手段
である。
Example 1. An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, 1 to 15 are the same as or equivalent to the conventional one. Reference numeral 20 is a data type retrieval means for retrieving the data type of the program from the program module file 5 and associating it with the data flow connection terminal of the graphic symbol, and 21 is a data type for displaying the data type of the data flow connection terminal on the graphic drawing. It is a display means.

【0017】次に、動作について図2のフローチャート
を参照しながら説明する。まず、従来と同様に、設計者
は生成しようとする制御アルゴリズムのシンボルを入力
手段3により選択する(S1)。これにより、グラフィ
ックシンボル検索手段10によってグラフィックシンボ
ルファイル4からそのシンボルが検索され画面に表示さ
れる。続いて、データ型検索手段20により、該当する
プログラムモジュールが持つデータの型がプログラムモ
ジュールファイル5から検索されて、その型情報がデー
タ型表示手段21により、グラフィック図面上に表示さ
れる(T1)。例えば、演算精度が必要なデータには倍
精度実数型変数を使用したり、フラグやI/Oには単精
度整数型変数を使用するなど、制御内容に適したデータ
の型を使用する。図3はデータ型表示の一例であり、プ
ログラムモジュール16の接続端子の型は18a
(|),18b(△)の2種類であることを、その形状
で示している。設計者は、この接続端子の形状からデー
タの型(例えば単精度整数型)を理解できる。そして、
同じ型のデータフロー接続端子をつなぐデータフロー線
19がデータフロー接続手段11によって接続され画面
に表示される(T2)。以上の処理が、プログラムの持
つデータの型の数にかかわらず、グラフィック画面上で
のプログラム設計が完了するまで(S3でNOのとき)
繰り返される。
Next, the operation will be described with reference to the flowchart of FIG. First, as in the conventional case, the designer selects the symbol of the control algorithm to be generated by the input means 3 (S1). As a result, the graphic symbol search means 10 searches for the symbol from the graphic symbol file 4 and displays it on the screen. Then, the data type search means 20 searches the program module file 5 for the type of data of the corresponding program module, and the type information is displayed on the graphic drawing by the data type display means 21 (T1). . For example, a data type suitable for the control content is used, such as using a double-precision real number type variable for data that requires arithmetic precision, or using a single precision integer type variable for a flag or I / O. FIG. 3 is an example of the data type display, and the type of the connection terminal of the program module 16 is 18a.
Two types of (|) and 18b (Δ) are shown by their shapes. The designer can understand the type of data (for example, single precision integer type) from the shape of the connection terminal. And
The data flow line 19 connecting the data flow connection terminals of the same type is connected by the data flow connection means 11 and displayed on the screen (T2). The above processing is completed until the program design on the graphic screen is completed regardless of the number of data types of the program (NO in S3)
Repeated.

【0018】設計が完了すると(S3でYESのと
き)、従来と同様に、図面上で設計された図面グラフィ
ック図面保存手段12によってグラフィック図面ファイ
ル6に保存される(S4)。その後、グラフィック図面
情報検索手段13が、保存された図面をグラフィック図
面ファイル6から検索し、その図面に対応するプログラ
ムモジュールをプログラムモジュール検索手段14がプ
ログラムモジュールファイル5から選択し、さらに、変
数生成手段15が選択されたプログラムモジュールを変
数でつなぐことにより制御プログラムのソースコードが
生成される(S5)。以上により、制御内容や入出力形
式に応じた複数の変数の型を使用した制御プログラムを
グラフィック画面上で設計できる。
When the design is completed (YES in S3), the graphic drawing file saving means 12 designed on the drawing saves it in the graphic drawing file 6 as in the conventional case (S4). Thereafter, the graphic drawing information searching means 13 searches the saved drawing from the graphic drawing file 6, the program module searching means 14 selects the program module corresponding to the drawing from the program module file 5, and further the variable generating means. The source code of the control program is generated by connecting the selected program module 15 with a variable (S5). As described above, a control program using a plurality of variable types according to control contents and input / output formats can be designed on a graphic screen.

【0019】実施例2.なお、上記実施例1ではデータ
の型の区別をデータフロー接続端子の形状によって表示
したが、データフロー接続端子の表示色によって区別し
てもよい。
Example 2. In the first embodiment, the type of data is indicated by the shape of the data flow connection terminal, but it may be indicated by the display color of the data flow connection terminal.

【0020】実施例3.また、上記実施例1および2で
はデータフロー接続端子で型の区別をしたが、データフ
ロー接続端子のデータフロー線に続く部分(データフロ
ー線接続部)によって区別してもよい。図4は本例によ
るデータ型表示の一例であり、データフロー線19a
(=)とデータフロー線19b(−−)とは異なるデー
タの型である。同様の考え方で、データフロー線接続部
の表示色によって区別してもよい。
Example 3. Further, in the above-described first and second embodiments, the types are distinguished by the data flow connection terminal, but they may be distinguished by the portion (data flow line connection portion) following the data flow line of the data flow connection terminal. FIG. 4 shows an example of the data type display according to this example.
(=) And the data flow line 19b (---) are different data types. The same idea may be used to distinguish the display color of the data flow line connection portion.

【0021】実施例4.さらに、上記実施例1〜3では
データ型の区別をデータフロー接続端子またはデータフ
ロー線の形状や表示色によって行ったが、データの型情
報を表形式でグラフィック図面上に表示してもよい。図
5は本例によるデータ型表示例であり、プログラムモジ
ュールAおよびプログラムモジュールBのそれぞれ5つ
ずつのデータフロー接続端子の型が表で示されている。
設計者はこの表をもとに、同じ型のデータフロー接続端
子をそれぞれのモジュールから1つずつ入力手段3によ
って選択することにより、選択された2つのデータフロ
ー接続端子がデータフロー線19で接続される。
Example 4. Further, although the data types are distinguished by the shapes and display colors of the data flow connection terminals or the data flow lines in the above-described first to third embodiments, the data type information may be displayed in a tabular format on the graphic drawing. FIG. 5 is an example of data type display according to this example, in which the types of data flow connection terminals for each of the program module A and the program module B are shown in a table.
Based on this table, the designer selects one data flow connection terminal of the same type from each module by the input means 3, and the two selected data flow connection terminals are connected by the data flow line 19. To be done.

【0022】実施例5.図6は、この発明の実施例5に
よるプログラム自動生成装置を示す構成図であり、図に
おいて実施例1と同一または相当部分には同一の符号を
付している。22は接続する2つのデータフロー接続端
子の型を判定して、異なる場合はグラフィック図面上で
接続しないようにするデータ型判定手段である。
Embodiment 5. FIG. 6 is a block diagram showing an automatic program generation device according to a fifth embodiment of the present invention. In the figure, the same or corresponding parts as in the first embodiment are designated by the same reference numerals. Reference numeral 22 is a data type determination means for determining the types of two data flow connection terminals to be connected, and if they are different, they are not connected on the graphic drawing.

【0023】次に、動作について図7のフローチャート
を参照しながら説明する。まず、実施例1と同様に、設
計者は生成しようとする制御アルゴリズムのシンボルを
入力手段3により選択する(S1)。これにより、グラ
フィックシンボル検索手段10によってグラフィックシ
ンボルファイル4からそのシンボルが検索され画面に表
示される。続いて、データ型検索手段20により、該当
するプログラムモジュールが持つデータの型がプログラ
ムモジュールファイル5から検索される(U1)。続い
て、設計者がデータフロー接続手段11によってデータ
フロー接続端子をデータフロー線で接続すると(U
2)、データ型判定手段22によって接続された2つの
接続端子の型が同一か否かを判定する(U3)。判定結
果が同一の場合は(U3でOKのとき)、実施例1と同
様、S3〜S5の処理を行う。判定結果が異なった場合
(U3でNGのとき)、グラフィック図面上での接続が
できない旨のメッセージ表示を行い(U4)、データフ
ロー接続の修正を促すべくU2にもどる。図8に、入力
手段3(グラフィック図面上では矢印で示される)によ
って、型の異なったデータフロー接続端子を接続した場
合の表示画面例を示す。以上により、複数のデータの型
を使用した制御プログラムを作成する場合にも、型の異
なったデータフロー接続端子を誤って接続することがな
くなる。
Next, the operation will be described with reference to the flowchart of FIG. First, as in the first embodiment, the designer selects the symbol of the control algorithm to be generated by the input means 3 (S1). As a result, the graphic symbol search means 10 searches for the symbol from the graphic symbol file 4 and displays it on the screen. Then, the data type searching means 20 searches the program module file 5 for the data type of the corresponding program module (U1). Subsequently, when the designer connects the dataflow connection terminal with the dataflow line by the dataflow connection means 11, (U
2) The data type determination unit 22 determines whether the two connection terminals connected to each other have the same type (U3). When the determination results are the same (when U3 is OK), the processes of S3 to S5 are performed as in the first embodiment. When the determination result is different (when U3 is NG), a message indicating that the connection cannot be made on the graphic drawing is displayed (U4), and the process returns to U2 to prompt the correction of the data flow connection. FIG. 8 shows an example of a display screen when the data flow connection terminals of different types are connected by the input means 3 (indicated by an arrow on the graphic drawing). As described above, even when a control program using a plurality of data types is created, the data flow connection terminals of different types will not be erroneously connected.

【0024】実施例6.図9は、この発明の実施例6に
よるプログラム自動生成装置を示す構成図であり、図に
おいて実施例1と同一または相当部分には同一の符号を
付している。23はグラフィック図面情報から、異なっ
たデータ型がデータフローで接続されている場合に、変
数の型変換処理を生成するキャスト処理生成手段であ
る。
Example 6. FIG. 9 is a configuration diagram showing an automatic program generation device according to a sixth embodiment of the present invention. In the figure, the same or corresponding parts as in the first embodiment are designated by the same reference numerals. Reference numeral 23 is a cast processing generation means for generating variable type conversion processing when different data types are connected by a data flow from the graphic drawing information.

【0025】次に、動作について図10のフローチャー
トを参照しながら説明する。まず、実施例1と同様に、
設計者は生成しようとする制御アルゴリズムのシンボル
を入力手段3により選択する(S1)。これにより、グ
ラフィックシンボル検索手段10によってグラフィック
シンボルファイル4からそのシンボルが検索され画面に
表示される。続いて、データ型検索手段20により、該
当するプログラムモジュールが持つデータの型がプログ
ラムモジュールファイル5から検索される(U1)。続
いて、設計者がデータフロー接続手段11によってデー
タフロー接続端子をデータフロー線で接続し(U2)、
設計が完了するまで(S3でNOのとき)、S1〜U2
の処理を行う。設計が完了したならば(S3でYESの
とき)、U1で検索されたデータ型の情報とともにグラ
フィック図面の情報が保存される(S4)。
Next, the operation will be described with reference to the flowchart of FIG. First, as in Example 1,
The designer selects the symbol of the control algorithm to be generated by the input means 3 (S1). As a result, the graphic symbol search means 10 searches for the symbol from the graphic symbol file 4 and displays it on the screen. Then, the data type searching means 20 searches the program module file 5 for the data type of the corresponding program module (U1). Subsequently, the designer connects the dataflow connection terminals with the dataflow line by the dataflow connection means 11 (U2),
Until the design is completed (NO in S3), S1 to U2
Process. When the design is completed (YES in S3), the information of the graphic drawing is stored together with the information of the data type retrieved in U1 (S4).

【0026】ここで、キャスト処理生成手段23は検索
されたデータ型の情報から、異なる型のデータフロー接
続端子が接続されているものを取り出してデータ型変換
処理を行う(V1)。この結果が、プログラムモジュー
ル検索手段14によってプログラムモジュールファイル
5から検索されたプログラムモジュールに付加される。
そして、変換処理を施されたプログラムモジュールをも
とに制御プログラムが生成される(S5)。図11はグ
ラフィック画面上で設計されたプログラムであり、プロ
グラムモジュール16の接続端子18cとプログラムモ
ジュール17の接続端子18dの型が異なっているとす
る。また、図12は図11の図面から生成された制御プ
ログラムのソースコードの内容をC言語で示したもので
あり、データaおよびbは単精度整数型、データcは倍
精度実数型と定義している。プログラムモジュール16
ではデータaを入力して5倍したものをbとして出力
し、プログラムモジュール17ではデータbを入力して
10倍したものをデータcとして出力する。このとき、
データbとデータcの型が異なるので、プログラムモジ
ュール16で出力されたデータbの型が単精度整数型か
ら倍精度実数型に変換される。以上により、異なる型の
データフロー接続端子を接続した場合には双方の型を包
含する型に変換され、プログラム製作者がデータの型を
意識する必要がなくなる。
Here, the cast processing generation means 23 extracts the data type connection information of the different type from the retrieved information of the data type and performs the data type conversion processing (V1). The result is added to the program module retrieved from the program module file 5 by the program module retrieval means 14.
Then, a control program is generated based on the program module that has undergone the conversion process (S5). FIG. 11 shows a program designed on a graphic screen, and it is assumed that the connection terminal 18c of the program module 16 and the connection terminal 18d of the program module 17 have different types. FIG. 12 shows the contents of the source code of the control program generated from the drawing of FIG. 11 in C language. Data a and b are defined as single precision integer type, and data c are defined as double precision real number type. ing. Program module 16
Then, the data a is input and multiplied by 5 is output as b, and the program module 17 inputs the data b and multiplied by 10 is output as data c. At this time,
Since the types of the data b and the data c are different, the type of the data b output by the program module 16 is converted from the single precision integer type to the double precision real number type. As described above, when different types of data flow connection terminals are connected, the data is converted into a type that includes both types, and the program maker does not need to be aware of the type of data.

【0027】[0027]

【発明の効果】この発明は、以上説明したように構成さ
れているので、以下に示すような効果を奏する。
Since the present invention is constructed as described above, it has the following effects.

【0028】プログラムモジュールの入出力データの数
だけのデータフロー接続端子のそれぞれとデータの型と
を対応づけ、データの型を区別して表示するようにした
ので、複数の型を使用した制御プログラムをグラフィッ
ク図面上で作成することができる。
Since each data flow connection terminal corresponding to the number of input / output data of the program module and the data type are associated with each other and the data types are distinguished and displayed, a control program using a plurality of types can be used. It can be created on a graphic drawing.

【0029】また、データフロー接続端子の型をチェッ
クし、異なるデータ型のデータフロー接続端子を接続し
た場合には接続できない旨のメッセージを出力するよう
にしたので、異なる型のデータフロー接続端子を誤って
接続することがなくなる。
Further, since the types of the data flow connection terminals are checked and a message indicating that the data flow connection terminals of different data types cannot be connected is output, the data flow connection terminals of different types are selected. You will not accidentally connect.

【0030】さらに、異なる型のデータフロー接続端子
を接続した場合には、プログラム生成時に変数の型を変
換するようにしたので、設計者がデータの型を意識する
ことなくグラフィック図面上で制御プログラムが生成で
きる。
Further, when the data flow connection terminals of different types are connected, the variable types are converted at the time of program generation, so that the designer does not need to be aware of the data types and the control program is displayed on the graphic drawing. Can be generated.

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

【図1】この発明の一実施例を示す全体構成図である。FIG. 1 is an overall configuration diagram showing an embodiment of the present invention.

【図2】図1のプログラム自動生成装置による処理の流
れを示すフローチャートである。
FIG. 2 is a flowchart showing a flow of processing by the automatic program generation device of FIG.

【図3】この発明の実施例1によるグラフィック図面の
表示例を示す図である。
FIG. 3 is a diagram showing a display example of a graphic drawing according to the first embodiment of the present invention.

【図4】この発明の実施例3によるグラフィック図面の
表示例を示す図である。
FIG. 4 is a diagram showing a display example of a graphic drawing according to a third embodiment of the present invention.

【図5】この発明の実施例4によるグラフィック図面の
表示例を示す図である。
FIG. 5 is a diagram showing a display example of a graphic drawing according to a fourth embodiment of the present invention.

【図6】この発明の実施例5を示す全体構成図である。FIG. 6 is an overall configuration diagram showing a fifth embodiment of the present invention.

【図7】図6のプログラム自動生成装置による処理の流
れを示すフローチャートである。
7 is a flowchart showing the flow of processing by the automatic program generation device of FIG.

【図8】この発明の実施例5によるグラフィック図面の
表示例を示す図である。
FIG. 8 is a diagram showing a display example of a graphic drawing according to a fifth embodiment of the present invention.

【図9】この発明の実施例6を示す全体構成図である。FIG. 9 is an overall configuration diagram showing a sixth embodiment of the present invention.

【図10】図9のプログラム自動生成装置による処理の
流れを示すフローチャートである。
10 is a flowchart showing the flow of processing by the automatic program generation device of FIG.

【図11】この発明の実施例6によるグラフィック図面
の表示例を示す図である。
FIG. 11 is a diagram showing a display example of a graphic drawing according to a sixth embodiment of the present invention.

【図12】図11をもとに生成されたプログラムを示す
図である。
12 is a diagram showing a program generated based on FIG. 11. FIG.

【図13】従来のプログラム自動生成装置を示す全体構
成図である。
FIG. 13 is an overall configuration diagram showing a conventional program automatic generation device.

【図14】従来のプログラム自動生成装置による処理の
流れを示すフローチャートである。
FIG. 14 is a flowchart showing a flow of processing by a conventional program automatic generation device.

【図15】従来のプログラム自動生成装置によるグラフ
ィック図面の表示例を示す図である。
FIG. 15 is a diagram showing a display example of a graphic drawing by a conventional program automatic generation device.

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

1 プログラム自動生成装置 2 表示手段 3 入力手段 4 グラフィックシンボルファイル 5 プログラムモジュールファイル 6 グラフィック図面ファイル 7 生成プログラムファイル 8 グラフィック図面編集手段 9 制御プログラム生成手段 10 グラフィックシンボル検索手段 11 データフロー接続手段 12 グラフィック図面保存手段 13 グラフィック図面情報検索手段 14 プログラムモジュール検索手段 15 変数生成手段 20 データ型検索手段 21 データ型表示手段 22 データ型判定手段 23 キャスト処理生成手段 1 Program Automatic Generation Device 2 Display Means 3 Input Means 4 Graphic Symbol File 5 Program Module File 6 Graphic Drawing File 7 Generation Program File 8 Graphic Drawing Editing Means 9 Control Program Generating Means 10 Graphic Symbol Search Means 11 Data Flow Connecting Means 12 Graphic Drawings Storage unit 13 Graphic drawing information search unit 14 Program module search unit 15 Variable generation unit 20 Data type search unit 21 Data type display unit 22 Data type determination unit 23 Cast processing generation unit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 コンピュータにより制御されるシステム
の制御用プログラムの汎用性のある制御アルゴリズムを
示す高級言語であるモジュールを登録し、それをグラフ
ィックシンボルとして生成し、それらをデータフローを
示す線でグラフィック図面上でつなぎ合わせて制御ソフ
トウエアシステムを設計し、制御用プログラムのソース
コード自動生成を行うプログラム自動生成装置におい
て、各プログラムモジュールのグラフィックシンボルに
該プログラムの入出力データの数のデータフロー接続端
子を設け、このデータフロー接続端子のそれぞれとデー
タの型情報とを対応づけるデータ型検索手段、上記グラ
フィックシンボルのデータフロー接続端子の持つデータ
型情報をグラフィック図面上に表示するデータ型表示手
段、および上記各データフロー接続端子に対応づけられ
たデータの型をプログラムの変数の型として制御プログ
ラムに生成する変数生成手段を備えたことを特徴とする
プログラム自動生成装置。
1. A module, which is a high-level language showing a versatile control algorithm of a control program for a system controlled by a computer, is registered, and it is generated as a graphic symbol, and those are drawn by a line showing a data flow. In a program automatic generation device for designing a control software system by connecting on a drawing and automatically generating a source code of a control program, a data flow connection terminal of the number of input / output data of the program in a graphic symbol of each program module Data type search means for associating each of the data flow connection terminals with data type information, data type display means for displaying the data type information of the data flow connection terminal of the graphic symbol on a graphic drawing, and Each day above An automatic program generation device comprising variable generation means for generating a data type associated with a tafflow connection terminal as a variable type of a program in a control program.
【請求項2】 コンピュータにより制御されるシステム
の制御用プログラムの汎用性のある制御アルゴリズムを
示す高級言語であるモジュールを登録し、それをグラフ
ィックシンボルとして生成し、それらをデータフローを
示す線でグラフィック図面上でつなぎ合わせて制御ソフ
トウエアシステムを設計し、制御用プログラムのソース
コード自動生成を行うプログラム自動生成装置におい
て、各プログラムモジュールのグラフィックシンボルに
該プログラムの入出力データの数のデータフロー接続端
子を設け、このデータフロー接続端子のそれぞれとデー
タの型情報とを対応づけるデータ型検索手段、データフ
ローを示す線によってつながった2つのデータフロー接
続端子の持つデータ型情報が同一か否かを判定し判定結
果を表示するデータ型判定手段、および上記各データフ
ロー接続端子に対応づけられたデータの型をプログラム
の変数の型として制御プログラムに生成する変数生成手
段を備えたことを特徴とするプログラム自動生成装置。
2. A module, which is a high-level language indicating a general-purpose control algorithm of a control program for a system controlled by a computer, is registered, it is generated as a graphic symbol, and those are drawn by a line indicating a data flow. In a program automatic generation device for designing a control software system by connecting on a drawing and automatically generating a source code of a control program, a data flow connection terminal of the number of input / output data of the program in a graphic symbol of each program module And a data type searching means for associating each of the data flow connection terminals with data type information, and determining whether or not the data type information held by two data flow connection terminals connected by a line showing the data flow is the same. Data type that displays the judgment result An automatic program generation device comprising: a determination means; and a variable generation means for generating a data type associated with each of the data flow connection terminals as a variable type of a program in a control program.
【請求項3】 コンピュータにより制御されるシステム
の制御用プログラムの汎用性のある制御アルゴリズムを
示す高級言語であるモジュールを登録し、それをグラフ
ィックシンボルとして生成し、それらをデータフローを
示す線でグラフィック図面上でつなぎ合わせて制御ソフ
トウエアシステムを設計し、制御用プログラムのソース
コード自動生成を行うプログラム自動生成装置におい
て、各プログラムモジュールのグラフィックシンボルに
該プログラムの入出力データの数のデータフロー接続端
子を設け、このデータフロー接続端子のそれぞれとデー
タの型情報とを対応づけるデータ型検索手段、異なるデ
ータ型を持つデータフロー接続端子をデータフローを示
す線で接続する場合に型合わせの処理を生成するキャス
ト処理生成手段、および、上記型合わせされた結果に基
づいたデータの型をプログラムの変数の型として制御プ
ログラムに生成する変数生成手段を備えたことを特徴と
するプログラム自動生成装置。
3. A module, which is a high-level language indicating a versatile control algorithm of a control program for a system controlled by a computer, is registered, it is generated as a graphic symbol, and they are drawn by a line showing a data flow. In a program automatic generation device for designing a control software system by connecting on a drawing and automatically generating a source code of a control program, a data flow connection terminal of the number of input / output data of the program in a graphic symbol of each program module And a data type search means for associating each of the data flow connection terminals with data type information, and a type matching process is generated when data flow connection terminals having different data types are connected by a line showing a data flow. Cast processing generation means to And an automatic program generation device comprising variable generation means for generating a data type based on a result of the above type matching as a variable type of a program in a control program.
JP33294693A 1993-12-27 1993-12-27 Automatic program generator Pending JPH07191840A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33294693A JPH07191840A (en) 1993-12-27 1993-12-27 Automatic program generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33294693A JPH07191840A (en) 1993-12-27 1993-12-27 Automatic program generator

Publications (1)

Publication Number Publication Date
JPH07191840A true JPH07191840A (en) 1995-07-28

Family

ID=18260582

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33294693A Pending JPH07191840A (en) 1993-12-27 1993-12-27 Automatic program generator

Country Status (1)

Country Link
JP (1) JPH07191840A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1124904A (en) * 1997-07-01 1999-01-29 Mitsubishi Electric Corp Program generation device and storage medium storing program generation program
JPH1139145A (en) * 1997-07-24 1999-02-12 Casio Comput Co Ltd Device to support programming and storage medium
US5892948A (en) * 1996-02-19 1999-04-06 Fuji Xerox Co., Ltd. Programming support apparatus and method
JP2001014155A (en) * 1999-07-01 2001-01-19 Japan Radio Co Ltd Controller for executing software parts
JP2008003817A (en) * 2006-06-22 2008-01-10 Fuji Electric Holdings Co Ltd Apparatus, method and program for supporting program development
JP2008084261A (en) * 2006-09-29 2008-04-10 Fuji Electric Holdings Co Ltd Program automatic generation device, program automatic generation method, and program automatic generation program
US7382479B2 (en) 2002-10-29 2008-06-03 Fuji Xerox, Ltd. Linking information making apparatus and recording medium
JP2008146379A (en) * 2006-12-11 2008-06-26 Hitachi Ltd Program creation support device and program creation support method
JP2009193181A (en) * 2008-02-13 2009-08-27 Meidensha Corp Software development support system and method, and program for the method
JP2013182473A (en) * 2012-03-02 2013-09-12 Sumitomo Heavy Ind Ltd Edition device and edition method
US9256459B2 (en) 2012-06-05 2016-02-09 Ricoh Company, Limited Information processing apparatus, workflow generating system, and workflow generating method
JP2016511894A (en) * 2013-02-12 2016-04-21 アビニシオ テクノロジー エルエルシー Building an application to configure a process
JP2016153997A (en) * 2015-02-17 2016-08-25 侑弥 岡田 Software development system
JP2016532968A (en) * 2013-08-23 2016-10-20 アビニシオ テクノロジー エルエルシー Graphical user interface with enhanced tools for connecting components
CN106662855A (en) * 2014-07-04 2017-05-10 三菱电机株式会社 Method for setting synchronous control of positioning control device, program, and control setting device for positioning control device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5892948A (en) * 1996-02-19 1999-04-06 Fuji Xerox Co., Ltd. Programming support apparatus and method
JPH1124904A (en) * 1997-07-01 1999-01-29 Mitsubishi Electric Corp Program generation device and storage medium storing program generation program
JPH1139145A (en) * 1997-07-24 1999-02-12 Casio Comput Co Ltd Device to support programming and storage medium
JP2001014155A (en) * 1999-07-01 2001-01-19 Japan Radio Co Ltd Controller for executing software parts
US7382479B2 (en) 2002-10-29 2008-06-03 Fuji Xerox, Ltd. Linking information making apparatus and recording medium
JP2008003817A (en) * 2006-06-22 2008-01-10 Fuji Electric Holdings Co Ltd Apparatus, method and program for supporting program development
JP2008084261A (en) * 2006-09-29 2008-04-10 Fuji Electric Holdings Co Ltd Program automatic generation device, program automatic generation method, and program automatic generation program
JP2008146379A (en) * 2006-12-11 2008-06-26 Hitachi Ltd Program creation support device and program creation support method
JP2009193181A (en) * 2008-02-13 2009-08-27 Meidensha Corp Software development support system and method, and program for the method
JP2013182473A (en) * 2012-03-02 2013-09-12 Sumitomo Heavy Ind Ltd Edition device and edition method
US9256459B2 (en) 2012-06-05 2016-02-09 Ricoh Company, Limited Information processing apparatus, workflow generating system, and workflow generating method
JP2016511894A (en) * 2013-02-12 2016-04-21 アビニシオ テクノロジー エルエルシー Building an application to configure a process
JP2016532968A (en) * 2013-08-23 2016-10-20 アビニシオ テクノロジー エルエルシー Graphical user interface with enhanced tools for connecting components
CN106662855A (en) * 2014-07-04 2017-05-10 三菱电机株式会社 Method for setting synchronous control of positioning control device, program, and control setting device for positioning control device
JP2016153997A (en) * 2015-02-17 2016-08-25 侑弥 岡田 Software development system

Similar Documents

Publication Publication Date Title
JPH07191840A (en) Automatic program generator
JPH06131011A (en) Ladder program generation supporting device
JPH0444176A (en) Software development backup tool
JPH04172529A (en) Automatic program generating system by data oriented software parts
JP2726743B2 (en) CAD drawing management system
JPH08166973A (en) Image data managing system
JPH10207923A (en) Document preparation supporting device in design work
JPH11120029A (en) Software test data generation support method
JPH09245064A (en) Component registration system
JPH09330215A (en) Program editing method
JP3224386B2 (en) Program creation device
JPH0778195A (en) Data updating system in circuit design cad
JPH1196040A (en) Process execution system and recording medium
JPH064276A (en) Program synthesizing system
JPH0879989A (en) Data base preparing device and method therefor
JPH08212061A (en) Scenario display device and method and scenario class editing device
JPH0448386A (en) Circuit element retrieval system
JPH0512394A (en) Image editing system
JPH0676011A (en) Leader line generating and updating system
JPH1124908A (en) Automatic software generating device
JPH07296046A (en) Drawing editing support system
JPH0251777A (en) Producing device for evolution connecting diagram with contact instruction table
JPH05250410A (en) Hierarchical symbol correcting system
JPH05235167A (en) Automatic wiring system
JPH04125776A (en) Function element retrieving system