JP2000242477A - Preparation supporting tool and specification verifying tool for software - Google Patents

Preparation supporting tool and specification verifying tool for software

Info

Publication number
JP2000242477A
JP2000242477A JP11179454A JP17945499A JP2000242477A JP 2000242477 A JP2000242477 A JP 2000242477A JP 11179454 A JP11179454 A JP 11179454A JP 17945499 A JP17945499 A JP 17945499A JP 2000242477 A JP2000242477 A JP 2000242477A
Authority
JP
Japan
Prior art keywords
state transition
software
function
database
state
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.)
Withdrawn
Application number
JP11179454A
Other languages
Japanese (ja)
Inventor
Toshiyuki Sasaki
俊之 佐々木
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP11179454A priority Critical patent/JP2000242477A/en
Publication of JP2000242477A publication Critical patent/JP2000242477A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To facilitate change and customizing due to the user of a sequence software. SOLUTION: This device is provided with a data base 3 for storing software components, a library 2 for managing of storing/extracting and aligning/ classifying software components to this data base 3 and a CAD device 4 for generating a data flow chart, a variable work sheet and component information on the basis of software components extracted from the data base 3. Thus, the user can easily perform the change or addition of a function block through the CAD device 4 and cost-reduction is attained.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、シーケンス・ソ
フトウエア等で使用されるファンクションブロック(F
B)の変更,カスタマイズをユーザ側から容易にするた
めのソフトウエア作成支援ツールに関する。
[0001] The present invention relates to a function block (F) used in sequence software or the like.
The present invention relates to a software creation support tool for facilitating change and customization of B) from the user side.

【0002】[0002]

【従来の技術】従来、この種のツールとしては、現在開
発中のPLCローダがある。これは、IEC(国際電気
標準会議)1131に準拠する高級言語(ST:ストラ
クチャート−テキスト,IL:インストラクション−ラ
ンゲージ)や,ラダーチャート(LD),シーケンシャ
ル・ファンクション・チャート(SFC)に対応してお
り、各用途に適応した拡張FBを提供することができ
る。この拡張FBにはシーケンス部と処理部があり、こ
れらはSTまたはILのようなプログラミング言語で記
述されている。
2. Description of the Related Art Conventionally, as a tool of this kind, there is a PLC loader currently under development. This corresponds to a high-level language (ST: structured-text, IL: instruction-language) conforming to IEC (International Electrotechnical Commission) 1131, ladder chart (LD), and sequential function chart (SFC). Thus, it is possible to provide an extended FB adapted to each application. The extended FB includes a sequence section and a processing section, which are described in a programming language such as ST or IL.

【0003】[0003]

【発明が解決しようとする課題】上記のように、拡張F
BはSTまたはILのようなプログラミング言語で記述
されていて直観的に分かり難いため、ユーザ側からは簡
単にシーケンス・ソフトウエアの変更や、カスタマイズ
が事実上できないのが一般的である。また、メーカ側が
ユーザ側の要求に応じて拡張FBの個別対応をしていた
のでは、開発期間と開発コストが大きくなるという問題
がある。したがって、この発明の課題は、ユーザ側から
拡張FBの変更やカスタマイズを簡単かつ低コストにで
きるようにすることにある。
As described above, the extension F
Since B is described in a programming language such as ST or IL and is intuitive, it is generally impossible for the user to easily change or customize the sequence software. In addition, if the manufacturer has individually dealt with the extended FB according to the request of the user, there is a problem that the development period and the development cost are increased. Therefore, an object of the present invention is to enable the user to change and customize the extended FB easily and at low cost.

【0004】[0004]

【課題を解決するための手段】このような課題を解決す
べく、請求項1の発明では、ソフトウエア部品を格納す
るデータベースと、このデータベースに対しソフトウエ
ア部品の格納・取り出しおよび整理・分類を行なうライ
ブラリと、前記データベースから取り出されるソフトウ
エア部品にもとづきデータフロー図,変数ワークシート
および構成部品情報を生成するCAD装置とを備えたこ
とを特徴としている。
In order to solve such a problem, according to the first aspect of the present invention, a database for storing software components and storing / retrieving, organizing, and classifying the software components in the database are provided. And a CAD device for generating a data flow diagram, a variable worksheet and component information based on software components extracted from the database.

【0005】上記請求項1の発明においては、前記ライ
ブラリは、ソフトウエア部品が所定数登録されると自動
的に上位の階層を構築し、これに所定のアドレスコード
を付して前記データベースに登録するとともに、そのア
ドレスコードをソフトウエア部品の登録者に対して通知
可能にすることができ(請求項2の発明)、または、前
記ライブラリは、前記CAD装置に対しソフトウエア部
品の外形情報を与えることができ(請求項3の発明)、
もしくは、前記ライブラリに対し、状態遷移図から状態
遷移表を作成して入力する入力部を設けることができる
(請求項4の発明)。
[0005] In the first aspect of the present invention, when a predetermined number of software components are registered, the library automatically builds an upper layer, attaches a predetermined address code thereto, and registers the layer in the database. In addition, the address code can be notified to a registrant of the software component (the invention of claim 2), or the library gives the CAD device external shape information of the software component. (The invention of claim 3),
Alternatively, an input unit for creating and inputting a state transition table from a state transition diagram can be provided for the library (the invention of claim 4).

【0006】上記請求項4の発明においては、前記状態
遷移図から状態遷移表を作成する入力部では、状態遷移
図からアイテム情報を抽出し、このアイテム情報から状
態遷移表を作成することができる(請求項5の発明)。
また、請求項4または5の発明においては、前記状態遷
移表から所定の情報を抽出し、抽出した情報をプログラ
ム言語のテンプレートに順次当てはめることにより、機
械が実行可能なソースファイルに変換することができる
(請求項6の発明)。さらに、請求項6の発明において
は、前記状態遷移表から抽出される情報は、状態遷移
先,状態時処理,状態遷移時処理およびイベントを含む
情報とすることができる(請求項7の発明)。
According to the fourth aspect of the present invention, the input unit for creating a state transition table from the state transition diagram can extract item information from the state transition diagram and create a state transition table from the item information. (Invention of claim 5).
In the invention according to claim 4 or 5, the predetermined information is extracted from the state transition table, and the extracted information is sequentially applied to a template of a program language, thereby converting the extracted information into a machine-executable source file. (Invention of claim 6). Further, according to the invention of claim 6, the information extracted from the state transition table can be information including a state transition destination, a state processing, a state transition processing, and an event (the invention of claim 7). .

【0007】上記請求項1の発明においては、前記ライ
ブラリに対し、機能展開図から機能展開表を作成して入
力する入力部を設けることができ(請求項8の発明)、
この請求項8の発明においては、前記機能展開図から機
能展開表を作成する入力部では、機能展開図から各機能
を抽出し、その機能番号順に親機能とその親機能に接続
される子機能を順次抽出して機能展開表を作成すること
ができ(請求項9の発明)、この請求項9の発明におい
ては、前記機能展開表から最下層の子機能名称を抽出
し、この子機能名称を検索キーとしてソフトウエア部品
を呼び出してプログラム言語に変換することができる
(請求項10の発明)。
[0007] In the first aspect of the present invention, the library can be provided with an input section for creating and inputting a function expansion table from a function expansion diagram (the invention of claim 8).
In the invention according to claim 8, in the input unit for creating a function expansion table from the function expansion diagram, each function is extracted from the function expansion diagram, and a parent function and a child function connected to the parent function in the order of their function numbers. Can be sequentially extracted to create a function expansion table (the invention of claim 9). In the invention of claim 9, the child function name of the lowest layer is extracted from the function expansion table, and the child function name is extracted. Can be used as a search key to call a software component and convert it into a program language (the invention of claim 10).

【0008】請求項11の発明では、ソフトウエア部品
を格納するデータベースと、このデータベースに対しソ
フトウエア部品の格納・取り出しおよび整理・分類を行
なうライブラリと、前記データベースから取り出される
ソフトウエア部品にもとづきデータフロー図,変数ワー
クシートおよび構成部品情報を生成するCAD装置と、
前記ライブラリに対し、状態遷移図から状態遷移表を作
成して入力する入力部と、この状態遷移表をもとにその
ソフトウエア仕様の妥当性をシミュレーションにより検
証する仕様検証部とを備えてなることを特徴とする。
[0010] According to the eleventh aspect of the present invention, a database for storing software components, a library for storing, retrieving, organizing, and classifying software components from the database, and data based on the software components retrieved from the database. A CAD apparatus for generating flow diagrams, variable worksheets, and component information;
The library comprises an input unit for creating and inputting a state transition table from a state transition diagram, and a specification verifying unit for verifying the validity of the software specification by simulation based on the state transition table. It is characterized by the following.

【0009】上記請求項11の発明においては、前記仕
様検証部は、外部信号からイベントを出力するイベント
演算部と、前記状態遷移表をもとに状態の更新処理を行
なう状態遷移処理部と、状態の遷移を記録するトレース
部と、状態の遷移を表示する表示部と、状態遷移表と状
態時処理,状態遷移時処理を定義したソフトウエア部品
を入力し、外部装置の動作を模擬するファンクションブ
ロックに演算結果を出力し、ファンクションブロックの
出力を入力しながらシミュレーションを実行し、その結
果を前記トレース部と表示部に出力するシミュレーショ
ン部とからなることができる(請求項12の発明)。
In the above invention, the specification verification unit may include an event operation unit that outputs an event from an external signal, a state transition processing unit that performs a state update process based on the state transition table, A function to simulate the operation of an external device by inputting a trace unit that records state transitions, a display unit that displays state transitions, and a software component that defines a state transition table, state processing, and state transition processing. The present invention can include a simulation unit that outputs a calculation result to a block, executes a simulation while inputting an output of a function block, and outputs the result to the trace unit and a display unit.

【0010】[0010]

【発明の実施の形態】図1はこの発明の実施の形態を示
す構成図である。同図において、1は、STまたはIL
などのプログラミング言語で記述され、個々の機能を実
現する最小単位のサブルーチンや関数であるソフトウエ
ア部品をツールに入力,登録するためのソフトウエア部
品入力部、2はこのソフトウエア部品入力部1からの指
示を受けてソフトウエア部品をデータベース3に登録し
たり、データベース3内のソフトウエア部品の整理,分
類をしたり、またはデータベース3からソフトウエア部
品を読み出すライブラリ、3はソフトウエア部品を格納
するデータベース、4はライブラリ2から取り出される
ソフトウエア部品にもとづきデータフロー図,変数ワー
クシートおよび構成部品情報を生成する、CAD(コン
ピュータ・エイデッド・デザイン)装置等の作図装置で
ある。
FIG. 1 is a block diagram showing an embodiment of the present invention. In the figure, 1 is ST or IL
A software component input unit for inputting and registering software components as subroutines and functions of the smallest unit for realizing individual functions into a tool, which is described in a programming language such as In response to the instruction, the software component is registered in the database 3, the software components in the database 3 are organized and classified, or the software component is read out from the database 3, and the library 3 stores the software component. The database 4 is a drawing device such as a CAD (Computer Aided Design) device that generates a data flow diagram, a variable worksheet, and component information based on software components extracted from the library 2.

【0011】ライブラリ2は例えば、ソフトウエア部品
入力部1から登録されたソフトウエア部品の数が所定数
以上になったときは、階層化して管理を容易にするため
にそのソフトウエア部品群に新たな部品名称を付すとと
もに、それを格納するデータベース上のアドレス・コー
ドをソフトウエア部品入力部1を介してメーカ側に通知
する機能を有している。また、ライブラリ2はCAD装
置4上でソフトウエア部品が選択されたときは、その部
品の外形情報(大きさ,幅など)をCAD装置4に与え
る機能も有している。
For example, when the number of software components registered from the software component input unit 1 becomes a predetermined number or more, the library 2 adds a new component to the software component group in order to hierarchically manage the components. And a function of notifying the maker via the software component input unit 1 of an address code on a database storing the component name. The library 2 also has a function of, when a software component is selected on the CAD device 4, providing the CAD device 4 with external shape information (size, width, etc.) of the component.

【0012】図2にデータベースの例を示す。これは、
ソフトウエア部品名が0〜6および10の8個のソフト
ウエア部品を登録した例を示し、各ソフトウエア部品は
ここでは全てがイベント検出のための部品であり、その
属性としてはアドレスコード,入力信号名,出力信号
名,ソフトウエア部品本体などがあることを示してい
る。
FIG. 2 shows an example of a database. this is,
An example is shown in which eight software components having software component names 0 to 6 and 10 are registered. Each of the software components is a component for event detection, and its attributes are an address code and an input. Indicates that there is a signal name, output signal name, software component body, etc.

【0013】従って、いま或るユーザが或る拡張FBを
変更したいときは、ユーザはCAD装置4,ライブラリ
2を介してデータベース3から対応する拡張FBを取り
出してCAD装置4上に表示し、その画面上でソフトウ
エア部品とその属性の変更等を行なうことで、データフ
ロー図,入出力変数ワークシートおよび構成部品情報を
作成することができる。なお、この構成部品情報から図
示されない言語変換ツールを介して言語ソースファイル
が作成され、これと入出力変数ワークシートとを前記開
発中のPLCローダに入力することにより、実行形式の
ソフトウエアを作成することができる。
Therefore, when a certain user wants to change a certain extended FB, the user takes out the corresponding extended FB from the database 3 via the CAD device 4 and the library 2 and displays it on the CAD device 4. By changing the software components and their attributes on the screen, a data flow diagram, an input / output variable worksheet, and component information can be created. A language source file is created from this component information via a language conversion tool (not shown), and this and an input / output variable worksheet are input to the PLC loader under development, thereby creating executable software. can do.

【0014】ところで、上記拡張FBの変更やカスタマ
イズに当たり、ユーザに馴染みの深い状態遷移図や機能
展開図に着目することが考えられる。つまり、状態遷移
図から状態遷移表、または機能展開図から機能展開表を
作成できれば、これらをST言語やIL言語に変換する
のは容易である。そこで、図1に示すソフトウエア部品
入力部に状態遷移図,機能展開図を入力してこれから状
態遷移表,機能展開表を作成する機能を持たせることに
より、拡張FBの変更やカスタマイズが容易となる。
When changing or customizing the extended FB, attention may be paid to a state transition diagram or a function development diagram that is familiar to the user. That is, if a state transition table can be created from a state transition diagram or a function development table can be created from a function development diagram, it is easy to convert them to ST language or IL language. Therefore, by inputting a state transition diagram and a function development diagram to the software component input unit shown in FIG. 1 and having a function of creating a state transition table and a function development table from this, it is easy to change and customize the extended FB. Become.

【0015】まず、状態遷移図から状態遷移表の作成方
法について、図3,図4を参照して説明する。要素を状
態、要素間をつなぐ接続線(以下、アークという)を状
態遷移条件(イベント)として定義し、各要素には状態
番号を付し、その要素の各属性情報として、その状態に
ある時に常に実行する処理番号SA を登録する。アー
クには始点状態と終点状態の情報があり、各状態には状
態番号が登録される。アークの属性情報としては、状態
遷移条件(イベント)番号E と、状態遷移時に実行す
る処理番号TA が定義される。図3(a)は要素およ
びアークとその関係を示す状態遷移図であり、この図3
(a)の状態遷移図からアイテム情報を抽出した結果
を、図3(b)に示す。
First, a method of creating a state transition table from a state transition diagram will be described with reference to FIGS. An element is defined as a state, and a connecting line (hereinafter called an arc) connecting the elements is defined as a state transition condition (event). A state number is assigned to each element. Process number SA to be always executed Register The arc has information on a start point state and an end point state, and a state number is registered for each state. As the attribute information of the arc, the state transition condition (event) number E And the processing number TA to be executed at the time of state transition Is defined. FIG. 3A is a state transition diagram showing elements and arcs and their relationships.
FIG. 3B shows the result of extracting the item information from the state transition diagram of FIG.

【0016】次に、各要素を洗い出し、要素の状態番号
を横軸に並べ、縦軸にはイベント番号順に並べる。そし
て、状態番号順に始点アイテム番号と状態番号が一致す
る各アークの情報から終点アイテム番号を抽出し、各状
態と各イベントの交差する箇所(以下、マトリックスと
もいう)に、遷移先状態番号(アーク終点状態番号)と
状態遷移時に実行する処理番号を出力して、図4のよう
な状態遷移表を作成する。マトリックス内に「−」が記
されている箇所は、遷移しないことを示している。
Next, each element is identified, the state numbers of the elements are arranged on the horizontal axis, and the vertical axes are arranged in the order of event numbers. Then, the end item number is extracted from the information of each arc whose start item number and state number match in order of the state number, and the transition destination state number (arc) is set at the intersection (hereinafter also referred to as a matrix) of each state and each event. An end state number) and a process number to be executed at the time of state transition are output, and a state transition table as shown in FIG. 4 is created. A portion where "-" is written in the matrix indicates that no transition occurs.

【0017】上記のように得られた状態遷移表から、プ
ログラム言語に変換する方法について説明する。図4の
ような状態遷移表は、縦軸に状態遷移条件(イベン
ト)、横軸に状態が並べられ、マトリックス内には1)
状態遷移先、2)状態にある時に実行する処理(状態時
処理:SAX)(Xは各状態の状態番号)、3)状態遷
移時に実行する処理(状態遷移時処理:TAX)(Xは
各状態の状態番号)が記載されている。図示されない状
態遷移処理部は、この状態遷移表から状態変数Sを用い
て所定のプログラミング言語に変換する。
A method of converting the state transition table obtained as described above into a program language will be described. In the state transition table as shown in FIG. 4, a state transition condition (event) is arranged on the vertical axis, and a state is arranged on the horizontal axis.
State transition destination 2) Processing executed when in state (processing at state: SAX) (X is the state number of each state) 3) Processing executed at state transition (processing at state transition: TAX) (X is each State number of the state). A state transition processing unit (not shown) converts the state transition table into a predetermined programming language using the state variable S.

【0018】図5にST言語に変換した場合の例を示
す。これは、前記状態遷移表から所定の情報を抽出し、
抽出した情報をプログラム言語で表現するためのひな型
(テンプレートともいう)に順次当てはめて行くことに
より、機械が実行可能なソースファイルに変換するもの
である。なお、イベントの等号(=)の右側の記号は信
号名称を、また、SA0〜SA2,TA0〜TA2はソ
フトウエア部品名称をそれぞれ示している。
FIG. 5 shows an example in the case of conversion into ST language. This extracts predetermined information from the state transition table,
The extracted information is sequentially applied to a model (also referred to as a template) for expressing in a programming language, thereby converting the extracted information into a machine-executable source file. The symbol on the right side of the equal sign (=) of the event indicates a signal name, and SA0 to SA2 and TA0 to TA2 indicate software component names, respectively.

【0019】次に、機能展開図から機能展開表を作成す
る方法について説明する。機能展開図は図6(a)に示
すように、機能を階層構造により詳細化して木構造で示
したもので、各機能には機能番号が自動的に登録され
る。各詳細機能の属性情報として、その機能の親の番号
が登録され、親の機能と子の機能はアークで接続され
る。このアークの属性情報としては、1)親機能番号,
子機能番号が付加される。
Next, a method of creating a function expansion table from a function expansion diagram will be described. As shown in FIG. 6A, the function development diagram shows the functions in detail in a hierarchical structure and is shown in a tree structure, and a function number is automatically registered for each function. As the attribute information of each detailed function, the parent number of the function is registered, and the parent function and the child function are connected by an arc. The attribute information of this arc includes: 1) parent function number,
A child function number is added.

【0020】このような機能展開図から機能展開表に変
換するには、 1)例えば図6(a)に示す機能展開図から図6(b)
のようにアイテム情報を抽出して各機能を洗い出し、そ
の機能番号順に各機能を縦軸に並べ、横軸には親機能,
子機能1,子機能2,…の順に並べる。 2)機能番号順に親機能とその子機能にアークで接続さ
れた子機能を抽出してその子機能1にアーク接続された
子機能2を抽出し、…以下同様に抽出して図7に示すよ
うな機能展開表を作成する。
To convert such a function development diagram into a function development table: 1) For example, from the function development diagram shown in FIG.
The item information is extracted and each function is identified as shown below. Each function is arranged on the vertical axis in the order of its function number, and the horizontal axis shows the parent function,
.. Are arranged in the order of child function 1, child function 2,. 2) Extract the child function connected by an arc to the parent function and its child function in the order of the function number, extract the child function 2 that is arc-connected to the child function 1, and so on. Create a function spreadsheet.

【0021】機能展開表からプログラム言語に変換する
には、最下層の子機能を検索キーにしてソフトウエア部
品を呼び出すことにより行なう。そのため、図8のよう
に最下層の子機能名称(ここでは、最終子機能名称とし
て記されている)に対応して、ソフトウエア部品(ここ
ではST言語で記述された例を示す)を予めデータベー
スに登録しておくものとする。そして、図9(a)のよ
うな機能展開表から最終子機能名称を洗い出し、その名
称を検索キーにして図8のようなソフトウエア部品をデ
ータベースから呼び出し、例えば図9(b)のようなS
T言語に変換する。
The conversion from the function development table to the program language is performed by calling a software component using the lowermost child function as a search key. Therefore, as shown in FIG. 8, software components (here, an example described in ST language is shown) corresponding to the child function name at the bottom layer (here, described as the last child function name) in advance. It shall be registered in the database. Then, the last child function name is identified from the function expansion table as shown in FIG. 9A, and the software component as shown in FIG. 8 is called from the database by using the name as a search key. For example, as shown in FIG. S
Convert to T language.

【0022】ところで、プログラムの開発,設計におい
ては通常、仕様検討,システム設計,プログラム設計,
コーディングおよびデバッグの順番に作業が進められる
が、バグは工程の上流で混入する場合が多い。このた
め,最後のデバッグ工程で多大の時間と開発コストを要
するという問題がある。また、デバッグ工程は製品出荷
の最終工程であり、遅れた分を吸収することができない
ので、製品出荷時期に遅れが生じるという問題も生じ
る。そこで、この発明では、以下のようにする。
By the way, in the development and design of a program, usually, specification examination, system design, program design,
Work proceeds in the order of coding and debugging, but bugs are often introduced upstream in the process. For this reason, there is a problem that a large amount of time and development costs are required in the last debugging process. In addition, since the debugging process is the final process of product shipment and cannot absorb the delay, there is also a problem that the product shipment time is delayed. Therefore, in the present invention, the following is performed.

【0023】図10はバグに対処可能な構成を示すブロ
ック図で、図1に示すものに対し仕様検証部を付加して
構成される。図11は仕様検証処理の概要説明図であ
る。ここでは、入力される状態遷移図を状態遷移表に変
換し、この状態遷移表をもとに仕様検証部5でソフトウ
エア仕様の検証が行なわれることを示している。なお、
この仕様検証部5で問題の発生が検知されたら、状態遷
移図の修正を行なうこととする。これは、ペトリネット
の理論を応用すれば、状態遷移表から仕様の妥当性が数
学的に容易に検証できることに着目したもので、これに
よって仕様の妥当性が設計段階で検証できるようにな
る。
FIG. 10 is a block diagram showing a configuration capable of dealing with a bug. The configuration shown in FIG. 1 is additionally provided with a specification verification unit. FIG. 11 is a schematic explanatory diagram of the specification verification process. Here, it is shown that the input state transition diagram is converted into a state transition table, and the specification verification unit 5 verifies the software specifications based on the state transition table. In addition,
When the occurrence of a problem is detected by the specification verification unit 5, the state transition diagram is corrected. This focuses on the fact that if the Petri net theory is applied, the validity of the specification can be mathematically easily verified from the state transition table. This enables the validity of the specification to be verified at the design stage.

【0024】図11に仕様検証部の詳細例を示す。すな
わち、仕様検証部5はイベント演算部51B,状態遷移
処理部52B,トレース部53B,表示部54Bおよび
シミュレーション部51A等から構成される。52Aは
外部動作を模擬するファンクションブロックである。イ
ベント演算部51Bは外部信号を入力されてイベントを
出力し、状態遷移処理部52Bはこのイベントと状態遷
移表とから状態の更新処理を行ない、トレース部53B
および表示部54Bは状態番号やシミュレーション結果
をトレースし、表示する。シミュレーション部51Aは
状態遷移表に記述された状態時処理と状態遷移時処理を
シミュレーションし、その結果を、外部装置の動作を模
擬するファンクションブロック52Aに入力し、ファン
クションブロック52Aの出力を入力しながらシミュレ
ーションを実行し、その結果をトレース部53B,表示
部54Bに出力する。
FIG. 11 shows a detailed example of the specification verification unit. That is, the specification verification unit 5 includes an event calculation unit 51B, a state transition processing unit 52B, a trace unit 53B, a display unit 54B, a simulation unit 51A, and the like. 52A is a function block that simulates an external operation. The event operation unit 51B receives an external signal and outputs an event. The state transition processing unit 52B updates the state from the event and the state transition table.
The display unit 54B traces and displays the state number and the simulation result. The simulation unit 51A simulates the state process and the state transition process described in the state transition table, inputs the result to a function block 52A that simulates the operation of an external device, and inputs the output of the function block 52A. The simulation is performed, and the result is output to the trace unit 53B and the display unit 54B.

【0025】なお、状態遷移図からアイテム情報を抽出
し、このアイテム情報から状態遷移表を作成したり、機
能展開図からアイテム情報を抽出し、このアイテム情報
から機能展開表を作成するにあたっては、例えばアイデ
アプロセッサと呼ばれるツールを使用することができ
る。
When extracting item information from the state transition diagram and creating a state transition table from the item information or extracting item information from the function development diagram and creating a function development table from the item information, For example, a tool called an idea processor can be used.

【0026】[0026]

【発明の効果】この発明によれば、STまたはILなど
のプログラミング言語で記述されたサブルーチンや関数
をソフトウエア部品の形態にしデータベースに登録して
提供することで、ユーザは、このデータベースから所望
の機能を実現するソフトウエア部品を選択し、CAD装
置で各々のソフトウエア部品を接続することによりカス
タマイズや変更が容易になる。また、ユーザの要求によ
って拡張FBに個別に対応する場合でも、開発時間と開
発コストを低減することができる。ユーザは簡単にソフ
トウエアが作成でき、その妥当性が検証可能となるの
で、メーカによる個別対応の負担が大幅に軽減される。
また、簡単な構成によりデバッグが可能となるので、プ
ログラム開発の設計段階で仕様の精度を向上させること
ができ、手戻りも防止できて開発効率が向上する。
According to the present invention, a subroutine or a function described in a programming language such as ST or IL is registered in a database in the form of a software component and provided. By selecting software components for realizing functions and connecting each software component with a CAD device, customization and change become easy. Further, even when the extended FBs are individually handled according to the user's request, the development time and the development cost can be reduced. Since the user can easily create the software and verify the validity of the software, the burden on the manufacturer for individual handling is greatly reduced.
In addition, since debugging can be performed with a simple configuration, the accuracy of specifications can be improved at the design stage of program development, rework can be prevented, and development efficiency can be improved.

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

【図1】この発明の実施の形態を示す構成図である。FIG. 1 is a configuration diagram showing an embodiment of the present invention.

【図2】データベースの構成例を示す説明図である。FIG. 2 is an explanatory diagram illustrating a configuration example of a database.

【図3】状態遷移図からアイテム情報への変換例説明図
である。
FIG. 3 is an explanatory diagram of an example of conversion from a state transition diagram to item information.

【図4】アイテム情報から状態遷移表への変換例説明図
である。
FIG. 4 is an explanatory diagram of an example of conversion from item information to a state transition table.

【図5】状態遷移表からST言語への変換例説明図であ
る。
FIG. 5 is an explanatory diagram of an example of conversion from a state transition table to an ST language.

【図6】状態展開図からアイテム情報への変換例説明図
である。
FIG. 6 is an explanatory diagram of an example of conversion from a state development diagram to item information.

【図7】アイテム情報から状態展開表への変換例説明図
である。
FIG. 7 is an explanatory diagram of an example of conversion from item information to a state development table.

【図8】ソフトウエア部品データベースの例を示す説明
図である。
FIG. 8 is an explanatory diagram illustrating an example of a software component database.

【図9】状態展開表からST言語への変換例説明図であ
る。
FIG. 9 is an explanatory diagram of an example of conversion from a state expansion table to an ST language.

【図10】バグに対処可能な構成を示すブロック図であ
る。
FIG. 10 is a block diagram showing a configuration capable of dealing with a bug.

【図11】仕様検証処理の概要説明図である。FIG. 11 is a schematic explanatory diagram of a specification verification process.

【図12】図10の仕様検証部の詳細例を示すブロック
図である。
FIG. 12 is a block diagram illustrating a detailed example of a specification verification unit in FIG. 10;

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

1…ソフトウエア部品登録部、2…ライブラリ、3…ソ
フトウエア部品データベース、4…作図装置(CAD装
置)、11…状態遷移図入力部、12…ドキュメント変
換部、5…仕様検証部、51B…イベント演算部、52
B…状態遷移処理部、53B…トレース部、54B…表
示部、51A…シミュレーション部、52A…ファンク
ションブロック。
DESCRIPTION OF SYMBOLS 1 ... Software component registration part, 2 ... Library, 3 ... Software component database, 4 ... Drawing device (CAD device), 11 ... State transition diagram input part, 12 ... Document conversion part, 5 ... Specification verification part, 51B ... Event operation unit, 52
B: state transition processing unit, 53B: trace unit, 54B: display unit, 51A: simulation unit, 52A: function block.

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 ソフトウエア部品を格納するデータベー
スと、このデータベースに対しソフトウエア部品の格納
・取り出しおよび整理・分類を行なうライブラリと、前
記データベースから取り出されるソフトウエア部品にも
とづきデータフロー図,変数ワークシートおよび構成部
品情報を生成するCAD装置とを備えたことを特徴とす
るソフトウエア作成支援ツール。
1. A database for storing software components, a library for storing, retrieving, organizing, and classifying software components from the database, a data flow diagram and a variable work based on the software components retrieved from the database. A software creation support tool, comprising: a CAD device for generating sheet and component information.
【請求項2】 前記ライブラリは、ソフトウエア部品が
所定数登録されると自動的に上位の階層を構築し、これ
に所定のアドレスコードを付して前記データベースに登
録するとともに、そのアドレスコードをソフトウエア部
品の登録者に対して通知可能にしたことを特徴とする請
求項1に記載のソフトウエア作成支援ツール。
2. The library automatically builds an upper layer when a predetermined number of software components are registered, registers the upper layer with a predetermined address code, registers the layer in the database, and stores the address code in the database. 2. The software creation support tool according to claim 1, wherein notification can be made to a registrant of the software component.
【請求項3】 前記ライブラリは、前記CAD装置に対
しソフトウエア部品の外形情報を与えることを特徴とす
る請求項1に記載のソフトウエア作成支援ツール。
3. The software creation support tool according to claim 1, wherein the library provides the CAD device with outer shape information of a software component.
【請求項4】 前記ライブラリに対し、状態遷移図から
状態遷移表を作成して入力する入力部を設けることを特
徴とする請求項1に記載のソフトウエア作成支援ツー
ル。
4. The software creation support tool according to claim 1, wherein an input unit for creating and inputting a state transition table from a state transition diagram is provided for the library.
【請求項5】 前記状態遷移図から状態遷移表を作成す
る入力部では、状態遷移図からアイテム情報を抽出し、
このアイテム情報から状態遷移表を作成することを特徴
とする請求項4に記載のソフトウエア作成支援ツール。
5. An input unit for creating a state transition table from the state transition diagram, extracting item information from the state transition diagram,
The software creation support tool according to claim 4, wherein a state transition table is created from the item information.
【請求項6】 前記状態遷移表から所定の情報を抽出
し、抽出した情報をプログラム言語のテンプレートに順
次当てはめることにより、機械が実行可能なソースファ
イルに変換することを特徴とする請求項4または5のい
ずれかに記載のソフトウエア作成支援ツール。
6. A machine-executable source file by extracting predetermined information from the state transition table and sequentially applying the extracted information to a program language template. 5. The software creation support tool according to any one of 5.
【請求項7】 前記状態遷移表から抽出される情報は、
状態遷移先,状態時処理,状態遷移時処理およびイベン
トを含む情報であることを特徴とする請求項6に記載の
ソフトウエア作成支援ツール。
7. The information extracted from the state transition table,
7. The software creation support tool according to claim 6, wherein the information includes a state transition destination, a state transition process, a state transition transition process, and an event.
【請求項8】 前記ライブラリに対し、機能展開図から
機能展開表を作成して入力する入力部を設けることを特
徴とする請求項1に記載のソフトウエア作成支援ツー
ル。
8. The software creation support tool according to claim 1, wherein an input unit is provided for creating and inputting a function expansion table from a function expansion diagram to the library.
【請求項9】 前記機能展開図から機能展開表を作成す
る入力部では、機能展開図から各機能を抽出し、その機
能番号順に親機能とその親機能に接続される子機能を順
次抽出して機能展開表を作成することを特徴とする請求
項8に記載のソフトウエア作成支援ツール。
9. An input unit for creating a function expansion table from the function expansion diagram extracts each function from the function expansion diagram, and sequentially extracts a parent function and child functions connected to the parent function in order of their function numbers. 9. The software creation support tool according to claim 8, wherein the function development table is created by using the software.
【請求項10】 前記機能展開表から最下層の子機能名
称を抽出し、この子機能名称を検索キーとしてソフトウ
エア部品を呼び出してプログラム言語に変換することを
特徴とする請求項9に記載のソフトウエア作成支援ツー
ル。
10. The method according to claim 9, wherein a child function name at the lowest layer is extracted from the function expansion table, and the software component is called up using the child function name as a search key and converted into a program language. Software creation support tool.
【請求項11】 ソフトウエア部品を格納するデータベ
ースと、このデータベースに対しソフトウエア部品の格
納・取り出しおよび整理・分類を行なうライブラリと、
前記データベースから取り出されるソフトウエア部品に
もとづきデータフロー図,変数ワークシートおよび構成
部品情報を生成するCAD装置と、前記ライブラリに対
し、状態遷移図から状態遷移表を作成して入力する入力
部と、この状態遷移表をもとにそのソフトウエア仕様の
妥当性をシミュレーションにより検証する仕様検証部と
を備えてなることを特徴とするソフトウエア仕様検証ツ
ール。
11. A database for storing software components, a library for storing, retrieving, organizing, and classifying software components in the database;
A CAD device that generates a data flow diagram, a variable worksheet, and component information based on software components extracted from the database; an input unit that creates and inputs a state transition table from a state transition diagram to the library; A software specification verification tool, comprising: a specification verification unit that verifies the validity of the software specification based on the state transition table by simulation.
【請求項12】 前記仕様検証部は、外部信号からイベ
ントを出力するイベント演算部と、前記状態遷移表をも
とに状態の更新処理を行なう状態遷移処理部と、状態の
遷移を記録するトレース部と、状態の遷移を表示する表
示部と、状態遷移表と状態時処理,状態遷移時処理を定
義したソフトウエア部品を入力し、外部装置の動作を模
擬するファンクションブロックに演算結果を出力し、フ
ァンクションブロックの出力を入力しながらシミュレー
ションを実行し、その結果を前記トレース部と表示部に
出力するシミュレーション部とからなることを特徴とす
る請求項11に記載のソフトウエア仕様検証ツール。
12. The specification verifying unit includes: an event computing unit that outputs an event from an external signal; a state transition processing unit that performs a state update process based on the state transition table; and a trace that records a state transition. And a display part for displaying state transitions, a state transition table and software components that define state-time processing and state-time processing, and output calculation results to a function block that simulates the operation of an external device. 12. The software specification verification tool according to claim 11, further comprising: a simulation unit that executes a simulation while receiving an output of a function block, and outputs a result of the simulation to the trace unit and a display unit.
JP11179454A 1998-12-24 1999-06-25 Preparation supporting tool and specification verifying tool for software Withdrawn JP2000242477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11179454A JP2000242477A (en) 1998-12-24 1999-06-25 Preparation supporting tool and specification verifying tool for software

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP10-367819 1998-12-24
JP36781998 1998-12-24
JP11179454A JP2000242477A (en) 1998-12-24 1999-06-25 Preparation supporting tool and specification verifying tool for software

Publications (1)

Publication Number Publication Date
JP2000242477A true JP2000242477A (en) 2000-09-08

Family

ID=26499304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11179454A Withdrawn JP2000242477A (en) 1998-12-24 1999-06-25 Preparation supporting tool and specification verifying tool for software

Country Status (1)

Country Link
JP (1) JP2000242477A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011605A (en) * 2005-06-29 2007-01-18 Kansai Electric Power Co Inc:The Model inspection support device for software operation specification, model inspection system provided with the same, and model inspection support program
JP2007280377A (en) * 2006-03-15 2007-10-25 Omron Corp Plc system
JP2009230713A (en) * 2008-03-25 2009-10-08 Nec Corp Message processing method, message processor, and program
JP2011008326A (en) * 2009-06-23 2011-01-13 Fuji Electric Systems Co Ltd Software development support device and method
WO2016068482A1 (en) * 2014-10-29 2016-05-06 한국생산기술연구원 Platform architecture for making three-dimensional data-based support service for manufacturing company

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007011605A (en) * 2005-06-29 2007-01-18 Kansai Electric Power Co Inc:The Model inspection support device for software operation specification, model inspection system provided with the same, and model inspection support program
JP2007280377A (en) * 2006-03-15 2007-10-25 Omron Corp Plc system
JP4737441B2 (en) * 2006-03-15 2011-08-03 オムロン株式会社 PLC system
JP2009230713A (en) * 2008-03-25 2009-10-08 Nec Corp Message processing method, message processor, and program
JP2011008326A (en) * 2009-06-23 2011-01-13 Fuji Electric Systems Co Ltd Software development support device and method
WO2016068482A1 (en) * 2014-10-29 2016-05-06 한국생산기술연구원 Platform architecture for making three-dimensional data-based support service for manufacturing company

Similar Documents

Publication Publication Date Title
US7369975B2 (en) Method and apparatus for pattern based generation of graphical user interfaces (GUI)
US5161211A (en) Method and system of specification processing
US20030237026A1 (en) Target device-specific syntax and semantic analysis for a graphical program
US20030145305A1 (en) Method for developing and managing large-scale web user interfaces (WUI) and computing system for said WUI
US20040060037A1 (en) Method for gesture based modeling
US20090063999A1 (en) Graphical authoring and editing of mark-up language sequences
JP2006195529A (en) Use case diagram creation support device and method, and program for carrying out the method
CN112364496B (en) Avionics simulation panel generation system based on HTML5 and VUE technologies
US20130080879A1 (en) Methods and apparatus providing document elements formatting
JP2000242477A (en) Preparation supporting tool and specification verifying tool for software
JP2004094487A (en) Support system for preparing document
CN112825038B (en) Visual page manufacturing method based on general component language specification and related products
Moore Mastering GUI programming with Python: Develop impressive cross-platform GUI applications with Pyqt
JP2671793B2 (en) Program generator usage specification simulation method and apparatus
US9501598B1 (en) System and method for assertion publication and re-use
JP2007011507A (en) Display method of program tree and program generation system
Djukić et al. Handling complex representations in visual modeling tools for MDSD/DSM by means of code generator languages
JP2000353083A (en) Demand specification description support device, method therefor and recording medium
Li et al. Research on a pattern-based user interface development method
JPH0850576A (en) Visually interactive simulator
JP4354719B2 (en) Program development support program
US20030033332A1 (en) Control/display unit page builder software tool
JP2001134423A (en) Method for outputting picture information of new system using interactive existing system
JP4905117B2 (en) Specification description support device
Loth Enhancing ProMoEE and DyVProMo with Additional Features to Foster Empirical Studies in the Context of Process Models Comprehension

Legal Events

Date Code Title Description
RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20040122

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20040205

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20040723