Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4851420B2 - Control program creation converter and control program conversion method - Google Patents
[go: Go Back, main page]

JP4851420B2 - Control program creation converter and control program conversion method - Google Patents

Control program creation converter and control program conversion method Download PDF

Info

Publication number
JP4851420B2
JP4851420B2 JP2007285908A JP2007285908A JP4851420B2 JP 4851420 B2 JP4851420 B2 JP 4851420B2 JP 2007285908 A JP2007285908 A JP 2007285908A JP 2007285908 A JP2007285908 A JP 2007285908A JP 4851420 B2 JP4851420 B2 JP 4851420B2
Authority
JP
Japan
Prior art keywords
control program
connection method
input
connection
block
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.)
Expired - Fee Related
Application number
JP2007285908A
Other languages
Japanese (ja)
Other versions
JP2009116434A (en
Inventor
英明 石本
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.)
Azbil Corp
Original Assignee
Azbil 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 Azbil Corp filed Critical Azbil Corp
Priority to JP2007285908A priority Critical patent/JP4851420B2/en
Publication of JP2009116434A publication Critical patent/JP2009116434A/en
Application granted granted Critical
Publication of JP4851420B2 publication Critical patent/JP4851420B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Description

本発明は、制御機器の機能単位のアルゴリズムが定義された機能ブロックを組合わせることにより作成された制御プログラムを、同じく機能ブロックを用いるが記述形式が異なる他の制御プログラムに変換する制御プログラム作成コンバータおよび制御プログラム変換方法に関するものである。   The present invention relates to a control program creation converter for converting a control program created by combining functional blocks in which a function unit algorithm of a control device is defined into another control program using the same functional block but having a different description format And a control program conversion method.

従来、機能ブロックを用いた制御設計コンフィギュレーションツール(制御プログラム作成装置)では、制御プログラム作成装置の画面上に機能ブロックを置き、機能ブロック中のパラメータに相当する接続端子から、その接続相手となる接続端子に接続線(リンク)を設定して、制御系の設計を行っている。このような制御プログラム作成装置を用いた制御プログラム作成方法は、一般にDCS(Distributed Control System:分散制御システム)やPLC(Programmable Logic Controller :プログラマブル・コントローラ)のコンフィギュレーションツールで用いられている方法であるが、機能ブロックを用いるフィールドバス(Foundation Fieldbus )のエンジニアリングツールにも一般的に用いられている(例えば特許文献1参照)。以下、特許文献1に開示された従来の制御プログラム作成装置をRTエディタと呼ぶ。   Conventionally, in a control design configuration tool (control program creation device) using a function block, a function block is placed on the screen of the control program creation device, and the connection partner is connected from a connection terminal corresponding to a parameter in the function block. A control line is designed by setting a connection line (link) to the connection terminal. A control program creation method using such a control program creation device is a method that is generally used in DCS (Distributed Control System) and PLC (Programmable Logic Controller) configuration tools. However, it is also commonly used in a fieldbus (Foundation Fieldbus) engineering tool that uses functional blocks (see, for example, Patent Document 1). Hereinafter, the conventional control program creation device disclosed in Patent Document 1 is referred to as an RT editor.

従来の分散制御システムに比べ、フィールドバスの機能ブロックを用いた制御設計は複雑であると言える。その理由は、機能ブロックのパラメータが多く、また、演算結果を上位機能ブロックに反映する(Backward-Calculation)ためのリンクが必要であること等、より多くの接続線を定義する必要があるからである。このような設計の複雑さは、フィールドバスの制御設計作業がその知識を持つ一部の作業者しか行うことができない原因の一つになっている(例えば特許文献2参照)。   It can be said that the control design using the functional blocks of the fieldbus is more complicated than the conventional distributed control system. The reason is that it is necessary to define more connection lines, such as many functional block parameters and a link to reflect the calculation result in the upper functional block (Backward-Calculation). is there. Such design complexity is one of the reasons that only a part of workers who have the knowledge can perform fieldbus control design work (see, for example, Patent Document 2).

フィールドバスの制御ロジックは、例えば単純なPID制御ループなどの比較的単純なロジックからより複雑な制御ロジックまでを機能ブロックを種々組合わせて作ることが多いと考えられ、作業工数削減のために機能ブロックを組合わせた制御ロジックを取り込んで行うことが求められる。   Fieldbus control logic is considered to be made by combining various functional blocks from relatively simple logic such as a simple PID control loop to more complicated control logic, and functions to reduce work man-hours. It is required to incorporate control logic that combines blocks.

そこで、発明者らは、制御設計作業を容易にし、作業工数を削減することができる制御プログラム作成装置を提案した(特願2007−285865)。以下、この制御プログラム作成装置をFBエディタと呼ぶ。FBエディタは、制御機器の複数の機能ブロックをそれぞれテンプレート化した複数の定義ブロックのパラメータとこれらの定義ブロック間の接続関係とを定義してテンプレート化した接続パターンのファイルを予め作成しておき、この接続パターンのファイルの中から選択した接続パターンにある定義ブロックに対して実際の制御機器の機能ブロックを関連付けることにより、制御プログラムを生成するようにしたものである。   Therefore, the inventors have proposed a control program creation device that can facilitate control design work and reduce the number of work steps (Japanese Patent Application No. 2007-285865). Hereinafter, this control program creation device is called an FB editor. The FB editor preliminarily creates a template connection pattern file by defining the parameters of a plurality of definition blocks each of which is a template of a plurality of functional blocks of a control device and the connection relationship between these definition blocks. The control program is generated by associating the functional block of the actual control device with the definition block in the connection pattern selected from the connection pattern file.

さて、従来のRTエディタとFBエディタとでは、種々の違い(アルゴリズム名、パラメータ名など)に加えて、特にPIDコントローラの機能ブロック間の接続仕様が異なるという大きな違いがある。すなわち、従来のRTエディタは通常のPID制御ループを構築する際には、FBエディタのような複合的な制御ロジックの作成を行わないで済むように設計されており、ユーザのデータ設定によるそのような接続作業を必要としていないことである。   Now, in addition to various differences (algorithm name, parameter name, etc.) between the conventional RT editor and the FB editor, there is a big difference that connection specifications between functional blocks of the PID controller are particularly different. That is, the conventional RT editor is designed not to create a complex control logic like the FB editor when constructing a normal PID control loop. It does not require a simple connection work.

PID制御演算は、デジタルコンピュータで演算するものはサンプルタイム毎に離散的に演算するサンプル値PID型が一般的である。この演算は、出力値=前回値+変化分(速度型演算結果)により求める(例えば特許文献3参照)。この前回値を種々の条件で書き換えることで、バンプレス/バランスレス操作出力が実現されて便利だからである。例えば、マニュアルモードではアナログ出力(AO)モジュールの手動出力値によりPIDモジュール出力の前回値を書き換えておくことで、オートモードに移行するときにPID出力を手動出力値から突変なく(バンプレス)始めることができ、逆にオートモードからマニュアルモードへの移行では、AOモジュールの出力値はPID出力値から調整操作なし(バランスレス)で始められるのである。以下、この前回値の書き換え動作をイニシャリゼーションと呼ぶ。   The PID control calculation is generally a sample value PID type that is calculated by a digital computer and is calculated discretely at each sample time. This calculation is obtained by output value = previous value + change (speed-type calculation result) (see, for example, Patent Document 3). This is because the bumpless / balanceless operation output can be realized by rewriting the previous value under various conditions. For example, in manual mode, by rewriting the previous value of the PID module output with the manual output value of the analog output (AO) module, the PID output is not changed from the manual output value when switching to the auto mode (bumpless). Conversely, in the transition from the auto mode to the manual mode, the output value of the AO module can be started from the PID output value without adjustment operation (balanceless). Hereinafter, this previous value rewriting operation is referred to as initialization.

FBエディタでは、機能ブロック間の接続関係を全て明示してリンクで接続する仕様となっている。この仕様では、パラメータの受け手側の機能ブロックにおいて取り込むべき送り手側の機能ブロックおよび送り手側の出力パラメータを定義する入力接続方式が使用されるのが通常である。   In the FB editor, the specification is such that all the connection relationships between functional blocks are clearly specified and connected by links. In this specification, an input connection method is generally used that defines a function block on the sender side to be captured in a function block on the parameter receiver side and an output parameter on the sender side.

一方、従来のRTエディタでは、入力接続方式も使用されるが、PID演算を行う機能ブロックが送り手側の場合には、この送り手側の機能ブロックにおいて受け手側の機能ブロックおよび受け手側の入力パラメータを定義する出力接続方式が使用される。この出力接続方式によれば、PID制御演算に係る接続のうち、PID演算の出力パラメータ以外の他の接続関係については暗黙的に定義されるので、接続を明示しなくて済む仕様になっている。   On the other hand, in the conventional RT editor, the input connection method is also used. However, when the function block for performing PID calculation is on the sender side, the function block on the receiver side and the input on the receiver side in the function block on the sender side. The output connection method that defines the parameters is used. According to this output connection method, the connection relation other than the output parameter of the PID calculation among the connections related to the PID control calculation is implicitly defined, so that it is not necessary to clearly indicate the connection. .

特開2002−163003号公報JP 2002-163003 A 特開平10−177410号公報JP 10-177410 A 特公平06−066041号公報Japanese Patent Publication No. 06-066041

FBエディタによれば、従来のRTエディタに比べて複雑な制御ループの作成においては制御設計作業を容易にし、作業工数を削減することができる。
しかしながら、制御システムの中には、RTエディタで作成した制御プログラムにしか対応しておらず、FBエディタで作成した制御プログラムをダウンロードできない制御システムが存在する。この場合、FBエディタで作成した制御プログラムをRTエディタで読み込み可能な制御プログラムに変換する必要があるが、このような変換手段は存在しない。
According to the FB editor, the control design work can be facilitated and the number of work steps can be reduced in creating a complicated control loop as compared with the conventional RT editor.
However, some control systems only support control programs created with the RT editor, and there are control systems that cannot download control programs created with the FB editor. In this case, it is necessary to convert the control program created by the FB editor into a control program that can be read by the RT editor, but there is no such conversion means.

また、従来のRTエディタで作成された制御プログラムをFBエディタで編集して新たなプログラムを作成したい場合が考えられる。この場合、RTエディタで作成した制御プログラムをFBエディタで読み込み可能な制御プログラムに変換する必要があるが、このような変換手段は存在しない。   In addition, it may be possible to create a new program by editing a control program created with a conventional RT editor with an FB editor. In this case, it is necessary to convert the control program created by the RT editor into a control program that can be read by the FB editor, but there is no such conversion means.

本発明は、上記課題を解決するためになされたもので、制御機器の機能単位のアルゴリズムが定義された機能ブロックを組合わせることにより作成された制御プログラムを、機能ブロックを用いる別の制御プログラムに変換可能な制御プログラム作成コンバータおよび制御プログラム変換方法を提供することを目的とする。   The present invention has been made to solve the above problems, and a control program created by combining functional blocks in which a function unit algorithm of a control device is defined is changed into another control program using functional blocks. It is an object of the present invention to provide a convertible control program creation converter and a control program conversion method.

本発明は、制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、前記機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム作成コンバータにおいて、受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第1の制御プログラムを読み込む制御プログラム読込手段と、送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を前記接続のうちの所定の箇所に使用すると共にその他の箇所に前記入力接続方式を使用する前記第2の制御プログラムへの変換に際して、前記出力接続方式を優先して使用すべき機能ブロックおよびパラメータが定義された優先接続定義テーブルと、この優先接続定義テーブルに基づいて、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として前記入力接続方式を使用するか前記出力接続方式を使用するかを判定する入出力接続方式判定手段と、この入出力接続方式判定手段の判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換手段とを備えるものである。
また、本発明の制御プログラム作成コンバータの1構成例において、前記制御プログラム変換手段は、前記接続のうち前記入力接続方式を優先すると判定された箇所に前記入力接続方式を使用し、前記出力接続方式を優先すると判定された箇所に前記出力接続方式を使用するものである。
The present invention relates to a control program creation converter for converting a first control program created by combining the functional blocks by taking the functions of the control device as functional blocks and converting them into another second control program using the functional blocks. In the above, the connection between the sender-side function block and the receiver-side function block is defined by the input connection method that defines the sender-side function block and the output parameter as connection information of the receiver-side function block. The control program reading means for reading the control program, and the output connection method for defining the function block on the receiver side and the input parameters as connection information of the function block on the sender side are used at predetermined locations in the connection and other locations. Change to the second control program using the input connection method. At this time, a priority connection definition table in which function blocks and parameters to be used with priority on the output connection method are defined, and between the function block on the sender side and the function block on the receiver side based on the priority connection definition table. Input / output connection method determination means for determining whether to use the input connection method or the output connection method as a connection method, and the first control program based on the determination result of the input / output connection method determination means Control program conversion means for converting into the second control program is provided.
Further, in one configuration example of the control program creation converter of the present invention, the control program conversion means uses the input connection method at a location determined to prioritize the input connection method among the connections, and the output connection method. The output connection method is used at a place where it is determined that priority is given.

また、本発明の制御プログラム作成コンバータは、送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を送り手側の機能ブロックと受け手側の機能ブロック間の接続のうちの所定の箇所に使用すると共に、その他の箇所に受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式を使用する前記第1の制御プログラムを読み込む制御プログラム読込手段と、前記入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第2の制御プログラムへの変換に際して、前記第1の制御プログラムにおいて前記接続に前記入力接続方式が使用されているか前記出力接続方式が使用されているかを判定する入出力接続方式判定手段と、この入出力接続方式判定手段の判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換手段とを備えるものである。
また、本発明の制御プログラム作成コンバータの1構成例において、前記制御プログラム変換手段は、前記接続のうち前記出力接続方式が使用されていると判定された箇所を前記入力接続方式に変換するものである。
In addition, the control program creation converter of the present invention uses a receiver-side function block and output connection method that defines input parameters as connection information of the sender-side function block between the sender-side function block and the receiver-side function block. The first control program that uses an input connection method for defining a function block on the sender side and output parameters as connection information of the function block on the receiver side at other locations as well as being used for a predetermined part of the connection. In the first control program, the control program reading means to be read and the conversion to the second control program in which the connection between the functional block on the sender side and the functional block on the receiver side is defined by the input connection method. Whether the input connection method is used for connection or the output connection method is used Input-output connection scheme determining means for determining, in which based on the determination result of the input-output connection scheme determination unit and a control program converting means for converting the first control program to said second control program.
Further, in one configuration example of the control program creation converter of the present invention, the control program conversion means converts a portion of the connection that is determined to use the output connection method to the input connection method. is there.

また、本発明の制御プログラム変換方法は、受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第1の制御プログラムを読み込む制御プログラム読込ステップと、送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を前記接続のうちの所定の箇所に使用すると共にその他の箇所に前記入力接続方式を使用する前記第2の制御プログラムへの変換に際して、前記出力接続方式を優先して使用すべき機能ブロックおよびパラメータが定義された優先接続定義テーブルを参照し、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として前記入力接続方式を使用するか前記出力接続方式を使用するかを判定する入出力接続方式判定ステップと、この入出力接続方式判定ステップの判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換ステップとを備えるものである。   In addition, the control program conversion method of the present invention uses a connection function between the sender side function block and the receiver side function block by an input connection method that defines a function block on the sender side and output parameters as connection information of the function block on the receiver side. A control program reading step for reading the first control program in which a connection is defined, and an output connection method for defining a function block on the receiver side and input parameters as connection information on the function block on the sender side are predetermined among the connections. Priority connection definition in which function blocks and parameters to be used with priority on the output connection method are defined in the conversion to the second control program that uses the input connection method at other locations and uses the input connection method at other locations. Refer to the table and connect between the functional block on the sender side and the functional block on the receiver side An input / output connection method determination step for determining whether to use the input connection method or the output connection method as an expression, and the first control program based on the determination result of the input / output connection method determination step And a control program conversion step for converting to a second control program.

また、本発明の制御プログラム変換方法は、送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を送り手側の機能ブロックと受け手側の機能ブロック間の接続のうちの所定の箇所に使用すると共に、その他の箇所に受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式を使用する前記第1の制御プログラムを読み込む制御プログラム読込ステップと、前記入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第2の制御プログラムへの変換に際して、前記第1の制御プログラムにおいて前記接続に前記入力接続方式が使用されているか前記出力接続方式が使用されているかを判定する入出力接続方式判定ステップと、この入出力接続方式判定ステップの判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換ステップとを備えるものである。
また、本発明の制御プログラム作成コンバータは、機能ブロックに埋め込むアルゴリズムであるブロックタイプ名の変換手段と、機能ブロック同士を結びつける入出力ポートにかかるパラメータ名の変換手段と、機能ブロック間の結線を示すリンクの接続方式を、第1の制御プログラムの接続方式から第2の制御プログラムの接続方式に適合させるように、当該リンクを追加または削除する変換手段と、これら変換手段が参照する変換のための定義テーブルと、を備えるものである。
Also, the control program conversion method of the present invention uses a receiver-side function block and an output connection method that defines input parameters as connection information of the sender-side function block between the sender-side function block and the receiver-side function block. The first control program that uses an input connection method for defining a function block on the sender side and output parameters as connection information of the function block on the receiver side at other locations as well as being used for a predetermined part of the connection. In the first control program, in the control program reading step to be read, and in the conversion to the second control program in which the connection between the functional block on the sender side and the functional block on the receiver side is defined by the input connection method Whether the input connection method is used for connection or the output connection method is used Input-output connection method determination step constant to one in which a control program converting step of converting the first control program based on the input-output connection scheme determining step of the determination result to the second control program.
In addition, the control program creation converter of the present invention shows a block type name conversion means that is an algorithm embedded in a function block, a parameter name conversion means for an input / output port that connects the function blocks, and a connection between the function blocks. Conversion means for adding or deleting the link so as to adapt the link connection method from the connection method of the first control program to the connection method of the second control program, and conversion for referring to these conversion means A definition table.

入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された第1の制御プログラムを、入力接続方式と出力接続方式の両方を使用する第2の制御プログラムに変換する場合、第2の制御プログラムにおいては入力接続と出力接続のどちらかを任意に選択可能となる。本発明では、出力接続方式を優先して使用すべき機能ブロックおよびパラメータを定義した優先接続定義テーブルを設け、この優先接続定義テーブルに基づいて、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として入力接続方式を使用するか出力接続方式を使用するかを判定し、この判定結果に基づいて制御プログラムを変換するようにしたので、第1の制御プログラムを第2の制御プログラムに変換することができる。したがって、従来の制御プログラム作成装置で作成された第2の制御プログラムだけにしか対応していないシステムに対しても、制御プログラムをダウンロードすることができる。   The first control program in which the connection between the function block on the sender side and the function block on the receiver side is defined by the input connection method is converted into a second control program that uses both the input connection method and the output connection method. In this case, either the input connection or the output connection can be arbitrarily selected in the second control program. In the present invention, a priority connection definition table that defines function blocks and parameters to be used with priority given to the output connection method is provided, and based on this priority connection definition table, between the function block on the sender side and the function block on the receiver side. Since it is determined whether the input connection method or the output connection method is used as the connection method, and the control program is converted based on the determination result, the first control program is changed to the second control program. Can be converted. Therefore, the control program can be downloaded even to a system that supports only the second control program created by the conventional control program creation device.

また、入力接続方式と出力接続方式の両方を使用する第1の制御プログラムを、入力接続方式のみを使用する第2の制御プログラムに変換する場合、本発明では、第1の制御プログラムにおいて送り手側の機能ブロックと受け手側の機能ブロック間の接続に入力接続方式が使用されているか出力接続方式が使用されているかを判定し、この判定結果に基づいて制御プログラムを変換するようにしたので、第1の制御プログラムを第2の制御プログラムに変換することができる。したがって、従来の制御プログラム作成装置で作成された第1の制御プログラムを、第2の制御プログラムの作成装置で編集して新たなプログラムを作成することができる。   Further, when the first control program that uses both the input connection method and the output connection method is converted into the second control program that uses only the input connection method, in the present invention, in the first control program, the sender Since it is determined whether the input connection method or the output connection method is used for the connection between the functional block on the side and the functional block on the receiver side, the control program is converted based on this determination result. The first control program can be converted into a second control program. Therefore, the first control program created by the conventional control program creation device can be edited by the second control program creation device to create a new program.

[第1の実施の形態]
以下、本発明の実施の形態について図面を参照して説明する。ここでは、まず発明者らが提案したFBエディタについて説明する。なお、従来のRTエディタについては特許文献1に開示されているので、説明は省略する。
[First Embodiment]
Hereinafter, embodiments of the present invention will be described with reference to the drawings. Here, the FB editor first proposed by the inventors will be described. Since a conventional RT editor is disclosed in Patent Document 1, description thereof is omitted.

図1は本発明の第1の実施の形態に係るFBエディタ(制御プログラム作成装置)の構成を示すブロック図である。FBエディタ1000は、制御機器の複数の機能ブロックをそれぞれテンプレート化した複数の定義ブロックのパラメータとこれらの定義ブロック間の接続関係とを制御ロジック毎に定義してテンプレート化した接続パターンを作成する接続パターン作成部1001と、制御機器の機能ブロックのデータおよび接続パターンのファイルを予め記憶する記憶部1002と、記憶部1002に記憶されている接続パターンファイルの中から選択された接続パターンファイルを読み込む接続パターン読込部1003と、記憶部1002に記憶された機能ブロックの中から選択された機能ブロックと選択された接続パターンの定義ブロックとを関連付けて制御プログラムを作成する制御プログラム編集部1004と、FBエディタ1000の使用者が装置に対して指示を与えるための入力部1005と、FBエディタ1000の使用者に対して情報を表示するための表示部1006とを有する。   FIG. 1 is a block diagram showing the configuration of the FB editor (control program creation device) according to the first embodiment of the present invention. The FB editor 1000 creates a connection pattern that creates a template by defining, for each control logic, parameters of a plurality of definition blocks each of which is a template of a plurality of functional blocks of a control device and a connection relationship between these definition blocks. A pattern creating unit 1001, a storage unit 1002 for storing functional block data and connection pattern files of the control device in advance, and a connection for reading a connection pattern file selected from the connection pattern files stored in the storage unit 1002 A pattern reading unit 1003, a control program editing unit 1004 that creates a control program by associating a functional block selected from the functional blocks stored in the storage unit 1002 and a definition block of the selected connection pattern, and an FB editor 1000 users Having an input unit 1005 for providing instructions to location, and a display unit 1006 for displaying information to the user of the FB editor 1000.

機能ブロックは、例えばセンサやバルブポジショナなどの実際の制御機器における最小機能単位のアルゴリズムやパラメータを定義するものである。接続パターンは、各機能ブロックのパラメータと機能ブロック間の接続関係とを制御ロジック毎(例えばPID制御やカスケード制御)に定義してテンプレート化したものである。なお、接続パターンで用いる機能ブロックは、例えば制御機器の製造メーカ等が異なる場合であってもアルゴリズムやパラメータが同じであれば使用できるように汎用的に定義された機能ブロックなので、以下では接続パターンで用いる機能ブロックを定義ブロックと呼ぶことにする。   The functional block defines, for example, an algorithm or parameter for a minimum functional unit in an actual control device such as a sensor or a valve positioner. The connection pattern is a template in which the parameters of each functional block and the connection relationship between the functional blocks are defined for each control logic (for example, PID control or cascade control). Note that the functional blocks used in the connection pattern are function blocks that are defined for general use so that they can be used as long as the algorithms and parameters are the same even when the manufacturer of the control device is different. The function block used in is called a definition block.

図2、図3は図1のFBエディタ1000を用いた制御プログラム作成方法を説明するための図であり、図2はFBエディタ1000による制御プログラム作成の概略を示す図、図3はFBエディタ1000の動作を示すフローチャートである。
まず、接続パターン作成部1001は、事前に制御ループのテンプレートである接続パターン100を作成しておく(図3ステップS1)。作成された接続パターン100のファイルは、記憶部1002に格納される。
2 and 3 are diagrams for explaining a control program creation method using the FB editor 1000 of FIG. 1, FIG. 2 is a diagram showing an outline of control program creation by the FB editor 1000, and FIG. It is a flowchart which shows this operation | movement.
First, the connection pattern creation unit 1001 creates a connection pattern 100, which is a control loop template, in advance (step S1 in FIG. 3). The created connection pattern 100 file is stored in the storage unit 1002.

図2の例では、接続パターン100は、PID制御ループのアルゴリズムを定義したテンプレートであり、アナログ入力(AI)の定義ブロック101−AIとPID演算を行う定義ブロック101−PIDとアナログ出力(AO)を行う定義ブロック101−AOとを含む。各定義ブロック101の入出力端子にかかるパラメータを示すポート102はリンク103によって接続され、定義ブロック101のパラメータの接続関係が定義されている。図2の例では、例えば定義ブロック101−AIのOUTパラメータと定義ブロック101−PIDのINパラメータが接続されている。   In the example of FIG. 2, the connection pattern 100 is a template that defines an algorithm of a PID control loop. The analog input (AI) definition block 101 -AI, a definition block 101 -PID that performs PID calculation, and an analog output (AO) And a definition block 101-AO. Ports 102 indicating parameters relating to the input / output terminals of each definition block 101 are connected by a link 103, and a connection relationship of parameters of the definition block 101 is defined. In the example of FIG. 2, for example, the OUT parameter of the definition block 101-AI and the IN parameter of the definition block 101-PID are connected.

このような接続パターン100を作成するには、使用者の指示に従って画面上で定義ブロック101とポート102とリンク103とを作成し、定義ブロック101とポート102とリンク103の各々の属性を設定すればよい。
記憶部1002に格納される接続パターンファイルは、ブロックデータとポートデータとリンクデータなどの情報を含む。
In order to create such a connection pattern 100, a definition block 101, a port 102, and a link 103 are created on the screen in accordance with a user instruction, and attributes of the definition block 101, the port 102, and the link 103 are set. That's fine.
The connection pattern file stored in the storage unit 1002 includes information such as block data, port data, and link data.

ブロックデータは、接続パターン中の各定義ブロックの情報を示すものであり、定義ブロック毎に生成される。ブロックデータは、定義ブロックの名称とブロックタイプと定義ブロックに設けられた各ポートのポートデータなどを含む。ブロックタイプとしては、例えばAI、PID、AO、CS(セレクタ)などがある。このブロックタイプを設定することで、定義ブロック101のアルゴリズムが選択されたことになり、また、設定可能なポートタイプ(パラメータのタイプ)が選択されたことになる。   The block data indicates information of each definition block in the connection pattern, and is generated for each definition block. The block data includes a definition block name, a block type, port data of each port provided in the definition block, and the like. Examples of the block type include AI, PID, AO, and CS (selector). By setting this block type, the algorithm of the definition block 101 is selected, and a settable port type (parameter type) is selected.

ポートデータは、ポートタイプなどを含む。ポートタイプとしては、例えばIN、OUT、CAS_IN、BKCAL_IN、BKCAL_OUTなどがある。
リンクデータは、接続パターン中の各リンクの情報を示すものであり、リンク毎に生成される。リンクデータは、入力側の定義ブロックの名称と、入力側のポートタイプと、出力側の定義ブロックの名称と、出力側のポートタイプなどを含む。このリンクデータによって、前述の入力接続方式が実現される。
The port data includes a port type and the like. Examples of the port type include IN, OUT, CAS_IN, BKCAL_IN, and BKCAL_OUT.
The link data indicates information of each link in the connection pattern, and is generated for each link. The link data includes the name of the definition block on the input side, the port type on the input side, the name of the definition block on the output side, the port type on the output side, and the like. By this link data, the above-described input connection method is realized.

次に、FBエディタ1000の接続パターン読込部1003は、使用者が選択した接続パターン100のファイルを記憶部1002から読み込み、制御プログラム編集部1004は、接続パターン読込部1003が読み込んだ接続パターン100を表示部1006の画面の制御ロジック編集ウィンドウ104上に表示する(図3ステップS2)。   Next, the connection pattern reading unit 1003 of the FB editor 1000 reads the file of the connection pattern 100 selected by the user from the storage unit 1002, and the control program editing unit 1004 reads the connection pattern 100 read by the connection pattern reading unit 1003. It is displayed on the control logic edit window 104 on the screen of the display unit 1006 (step S2 in FIG. 3).

そして、制御プログラム編集部1004は、使用者の指示に応じて各制御機器の使用可能な機能ブロックのリスト105から機能ブロックを選択し、制御ロジック編集ウィンドウ104上の接続パターン100の定義ブロック101と制御機器の機能ブロックとを関連付ける(図3ステップS3)。   Then, the control program editing unit 1004 selects a functional block from the list 105 of usable functional blocks of each control device according to the user's instruction, and the definition block 101 of the connection pattern 100 on the control logic editing window 104 The function block of the control device is associated (step S3 in FIG. 3).

定義ブロック101と制御機器の機能ブロックとを関連付けるには、表示部1006の画面上で所望の機能ブロックを、関連付けしたい定義ブロック101上まで移動させればよい。図2の例では、定義ブロック101−AIに制御機器名が「DST_02」で機能ブロック名が「AI」の機能ブロックが関連付けされ、定義ブロック101−PIDに制御機器名が「AVP_08」で機能ブロック名が「PID」の機能ブロックが関連付けされ、定義ブロック101−AOに制御機器名が「AVP_08」で機能ブロック名が「AO」の機能ブロックが関連付けされている。機能ブロックと定義ブロックとの関連付けは、制御プログラム編集部1004が関連付けデータを生成することによって実現される。関連付けデータは、制御機器名及び機能ブロック名と、定義ブロック名とを対応付けるものである。   In order to associate the definition block 101 with the functional block of the control device, a desired functional block may be moved onto the definition block 101 to be associated on the screen of the display unit 1006. In the example of FIG. 2, a function block with a control device name “DST — 02” and a function block name “AI” is associated with the definition block 101-AI, and a function block with a control device name “AVP — 08” is associated with the definition block 101-PID. A function block with a name “PID” is associated, and a function block with a control device name “AVP — 08” and a function block name “AO” is associated with the definition block 101-AO. The association between the functional block and the definition block is realized when the control program editing unit 1004 generates association data. The association data associates the control device name and function block name with the definition block name.

制御プログラム編集部1004は、このような定義ブロック101と制御機器の機能ブロックとの関連付けを未処理の定義ブロック101がなくなるまで(図3ステップS4においてNO)繰り返し行う。
定義ブロック101と制御機器の機能ブロックとの関連付けが完了した時点でFBエディタ1000の処理が終わり、接続パターンファイルと、機能ブロックと定義ブロックとの関連付けデータとからなる制御プログラムが記憶部1002に保存される。
The control program editing unit 1004 repeatedly associates the definition block 101 with the functional block of the control device until there is no unprocessed definition block 101 (NO in step S4 in FIG. 3).
When the association between the definition block 101 and the functional block of the control device is completed, the processing of the FB editor 1000 ends, and a control program including a connection pattern file and association data between the functional block and the definition block is stored in the storage unit 1002. Is done.

[制御プログラム作成コンバータの説明]
次に、本実施の形態の制御プログラム作成コンバータについて説明する。図4は制御プログラム作成コンバータの構成を示すブロック図である。
制御プログラム作成コンバータ1は、FBエディタ1000によって作成された制御プログラムを読み込む制御プログラム読込部2と、制御プログラム読込部2が読み込んだ制御プログラムをRTエディタ(不図示)で読み込み可能な制御プログラムに変換する制御プログラム変換部3と、制御プログラム変換部3が変換した制御プログラムをRTエディタ用に出力する制御プログラム出力部4と、プログラムやデータを記憶する記憶部5と、制御プログラム作成コンバータ1の使用者が装置に対して指示を与えるための入力部6と、使用者に対して情報を表示するための表示部7とを有する。
[Description of control program creation converter]
Next, the control program creation converter of this embodiment will be described. FIG. 4 is a block diagram showing the configuration of the control program creation converter.
The control program creation converter 1 converts the control program read unit 2 that reads the control program created by the FB editor 1000 and the control program read by the control program read unit 2 into a control program that can be read by the RT editor (not shown). Use of the control program conversion unit 3 that performs control, the control program output unit 4 that outputs the control program converted by the control program conversion unit 3 for the RT editor, the storage unit 5 that stores programs and data, and the control program creation converter 1 An input unit 6 for a user to give an instruction to the apparatus and a display unit 7 for displaying information to the user.

制御プログラム変換部3は、制御プログラムのブロックタイプを変換するブロックタイプ変換部30と、制御プログラムのパラメータを変換するパラメータ変換部31と、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として入力接続方式を使用するか出力接続方式を使用するかを判定する入出力接続方式判定部32と、入出力接続方式判定部32の判定結果に基づいて制御プログラムの入出力接続方式を変換する入出力接続設定部33とを有する。   The control program conversion unit 3 includes a block type conversion unit 30 that converts a block type of the control program, a parameter conversion unit 31 that converts a parameter of the control program, and a connection between the functional block on the sender side and the functional block on the receiver side. An input / output connection method determination unit 32 for determining whether to use an input connection method or an output connection method as a method, and conversion of the input / output connection method of the control program based on the determination result of the input / output connection method determination unit 32 And an input / output connection setting unit 33.

記憶部5には、制御プログラム読込部2、制御プログラム変換部3および制御プログラム出力部4などの各種機能手段を実現するプログラム50と、FBエディタ1000によって作成された制御プログラムのブロックタイプを変換するためのブロックタイプ変換テーブル51と、FBエディタ1000によって作成された制御プログラムのパラメータを変換するためのパラメータ変換テーブル52と、RTエディタで読み込み可能な制御プログラムへの変換に際して出力接続方式を優先して使用すべき機能ブロックおよびパラメータを定義した優先接続定義テーブル53とが記憶されている。   The storage unit 5 converts the block type of the control program created by the program 50 for realizing various functional means such as the control program reading unit 2, the control program conversion unit 3 and the control program output unit 4 and the FB editor 1000. Priority is given to the output connection method when converting to a block type conversion table 51 for conversion, a parameter conversion table 52 for converting the parameters of the control program created by the FB editor 1000, and a control program readable by the RT editor. A priority connection definition table 53 defining function blocks to be used and parameters is stored.

図5はブロックタイプ変換テーブル51の構成を示す図、図6はパラメータ変換テーブル52の構成を示す図、図7は優先接続定義テーブル53の構成を示す図である。
ブロックタイプ変換テーブル51は、図5に示すようにFBエディタで使用されるブロックタイプ510とRTエディタで使用されるブロックタイプ511とを対応付けたものである。図5のブロックタイプ変換テーブル51によれば、FBエディタの記述形式でブロックタイプが「PID」となっている場合、RTエディタの記述形式ではブロックタイプは「FF_PID」になることが分かる。
FIG. 5 is a diagram showing the configuration of the block type conversion table 51, FIG. 6 is a diagram showing the configuration of the parameter conversion table 52, and FIG. 7 is a diagram showing the configuration of the priority connection definition table 53.
As shown in FIG. 5, the block type conversion table 51 associates the block type 510 used in the FB editor with the block type 511 used in the RT editor. According to the block type conversion table 51 of FIG. 5, when the block type is “PID” in the description format of the FB editor, the block type is “FF_PID” in the description format of the RT editor.

パラメータ変換テーブル52は、図6に示すようにFBエディタで使用されるブロックタイプ520とパラメータ521とRTエディタで使用されるパラメータ522とを対応付けたものであり、パラメータ521と522との対応関係をFBエディタで使用されるブロックタイプ毎に定義したものである。図6のパラメータ変換テーブル52によれば、FBエディタの記述形式でブロックタイプが「PID」でパラメータが「CAS_IN」となっている場合、RTエディタの記述形式ではパラメータは「SP」になることが分かる。   As shown in FIG. 6, the parameter conversion table 52 associates the block type 520 used in the FB editor, the parameter 521, and the parameter 522 used in the RT editor, and the correspondence between the parameters 521 and 522. Is defined for each block type used in the FB editor. According to the parameter conversion table 52 of FIG. 6, when the block type is “PID” and the parameter is “CAS_IN” in the description format of the FB editor, the parameter may be “SP” in the description format of the RT editor. I understand.

優先接続定義テーブル53は、図7に示すようにRTエディタで使用される受け手側のブロックタイプ530と受け手側のパラメータ531と接続パラメータ名532とを対応付けたものであり、出力接続方式を優先して使用すべきブロックタイプ530とパラメータ531とを定義したものである。図7の優先接続定義テーブル53によれば、RTエディタの記述形式で受け手側のブロックタイプが「FF_PID」で入力パラメータが「SP」となっている場合は、出力接続(CODSTN)を優先して使用することが分かる。RTエディタでは、イニシャリゼーションのためには出力接続が必要である。したがって、図7の例のように受け手側のブロックタイプが「FF_PID」の場合には、出力接続方式を優先して使用すべきであるとして優先接続定義テーブル53に定義されている。   As shown in FIG. 7, the priority connection definition table 53 associates the receiver-side block type 530, receiver-side parameters 531 and connection parameter names 532 used in the RT editor, giving priority to the output connection method. The block type 530 and the parameter 531 to be used are defined. According to the priority connection definition table 53 of FIG. 7, when the receiver side block type is “FF_PID” and the input parameter is “SP” in the RT editor description format, the output connection (CODSTN) is given priority. You can see that it is used. In the RT editor, an output connection is required for initialization. Accordingly, when the block type on the receiver side is “FF_PID” as in the example of FIG. 7, it is defined in the priority connection definition table 53 that the output connection method should be used preferentially.

次に、制御プログラム作成コンバータ1の動作について説明する。図8は制御プログラム作成コンバータ1の動作を示すフローチャートである。
最初に、制御プログラム読込部2は、FBエディタ1000によって作成されFBエディタ1000の記憶部1002に記憶された制御プログラムの中から、入力部6を操作する使用者の指示に応じて制御プログラムを選択し、この制御プログラムを読み込んで記憶部5に格納する(図8ステップS10)。
Next, the operation of the control program creation converter 1 will be described. FIG. 8 is a flowchart showing the operation of the control program creation converter 1.
First, the control program reading unit 2 selects a control program from the control programs created by the FB editor 1000 and stored in the storage unit 1002 of the FB editor 1000 in accordance with an instruction from the user who operates the input unit 6. Then, this control program is read and stored in the storage unit 5 (step S10 in FIG. 8).

続いて、制御プログラム変換部3のブロックタイプ変換部30は、ブロックタイプ変換テーブル51を参照し、記憶部5に格納された制御プログラムに記述されている全てのブロックタイプについて、FBエディタの記述形式のブロックタイプをRTエディタの記述形式のブロックタイプに変換する(ステップS11)。   Subsequently, the block type conversion unit 30 of the control program conversion unit 3 refers to the block type conversion table 51 and describes the description format of the FB editor for all block types described in the control program stored in the storage unit 5. The block type is converted into a block type in the RT editor description format (step S11).

制御プログラム変換部3のパラメータ変換部31は、パラメータ変換テーブル52を参照し、記憶部5に格納された制御プログラムに記述されている全てのパラメータ(ポート)について、FBエディタの記述形式のパラメータをRTエディタの記述形式のパラメータに変換する(ステップS12)。   The parameter conversion unit 31 of the control program conversion unit 3 refers to the parameter conversion table 52 and sets parameters in the description format of the FB editor for all parameters (ports) described in the control program stored in the storage unit 5. The parameters are converted into the description format parameters of the RT editor (step S12).

制御プログラム変換部3の入出力接続方式判定部32は、ステップS11,S12でブロックタイプとパラメータが変換された後の制御プログラムにおいて、パラメータの受け手側の機能ブロックに入力接続機能が有るかどうかを判定する(ステップS13)。RTエディタの記述形式の機能ブロックに入力接続機能が有るかどうかについては、記憶部5に格納された定義情報(不図示)によって予め定義されている。入出力接続方式判定部32は、この定義情報を参照することにより、機能ブロックに入力接続機能が有るかどうかを判定することができる。   The input / output connection method determination unit 32 of the control program conversion unit 3 determines whether or not the function block on the parameter receiver side has an input connection function in the control program after the block type and parameters are converted in steps S11 and S12. Determination is made (step S13). Whether the functional block of the RT editor description format has an input connection function is defined in advance by definition information (not shown) stored in the storage unit 5. The input / output connection method determination unit 32 can determine whether the functional block has an input connection function by referring to the definition information.

入出力接続方式判定部32は、受け手側の機能ブロックに入力接続機能が有る場合、この受け手側の機能ブロックと送り手側の機能ブロック間の接続方式として、入力接続方式を使用するか出力接続方式を使用するかを判定する(ステップS14)。   When the receiver-side function block has an input connection function, the input / output connection method determination unit 32 uses the input connection method or the output connection as the connection method between the receiver-side function block and the sender-side function block. It is determined whether to use the method (step S14).

入出力接続方式判定部32は、通常は入力接続方式を優先して機能ブロック間の接続情報を設定する。すなわち、入出力接続方式判定部32は、ステップS11,S12でブロックタイプとパラメータが変換された後の制御プログラムにおいて、受け手側のブロックタイプと受け手側の入力パラメータとの組が優先接続定義テーブル53に登録されていない場合は、入力接続方式を優先して使用すると判定する(ステップS14においてNO)。   The input / output connection method determination unit 32 usually sets connection information between functional blocks in preference to the input connection method. That is, in the control program after the block type and parameters are converted in steps S11 and S12, the input / output connection method determination unit 32 determines that the combination of the receiver side block type and the input parameter on the receiver side is the priority connection definition table 53. If not registered, it is determined that the input connection method is used preferentially (NO in step S14).

入出力接続設定部33は、入力接続方式を優先すると判定された場合、入力接続方式を使用して送り手側の機能ブロックと受け手側の機能ブロック間の接続情報を設定する(ステップS15)。入力接続方式を使用する場合は、受け手側の機能ブロックの接続情報として、取り込むべき送り手側の機能ブロックおよび送り手側の出力パラメータを定義すればよい。   If it is determined that the input connection method is prioritized, the input / output connection setting unit 33 sets connection information between the function block on the sender side and the function block on the receiver side using the input connection method (step S15). When the input connection method is used, the function block on the sender side to be captured and the output parameter on the sender side may be defined as connection information on the function block on the receiver side.

また、入出力接続方式判定部32は、ステップS11,S12でブロックタイプとパラメータが変換された後の制御プログラムにおいて、受け手側のブロックタイプと受け手側のパラメータとの組が優先接続定義テーブル53に登録されている場合は、出力接続方式を優先して使用すると判定する(ステップS14においてYES)。   Also, the input / output connection method determination unit 32 sets the combination of the block type on the receiver side and the parameter on the receiver side in the priority connection definition table 53 in the control program after the block type and parameters are converted in steps S11 and S12. If registered, it is determined that the output connection method is used preferentially (YES in step S14).

入出力接続設定部33は、ステップS13において受け手側の機能ブロックに入力接続機能が無いと判定された場合、又はステップS14において出力接続方式を優先すると判定された場合、出力接続方式を使用して送り手側の機能ブロックと受け手側の機能ブロック間の接続情報を設定する(ステップS16)。出力接続方式を使用する場合は、送り手側の機能ブロックの接続情報として、受け手側の機能ブロックおよび受け手側の入力パラメータを定義すればよい。   The input / output connection setting unit 33 uses the output connection method when it is determined in step S13 that the function block on the receiver side has no input connection function, or when it is determined in step S14 that the output connection method is given priority. Connection information between the function block on the sender side and the function block on the receiver side is set (step S16). When the output connection method is used, the function block on the receiver side and the input parameter on the receiver side may be defined as connection information on the function block on the sender side.

なお、送り手側の機能ブロックのタイプが例えば「PID」である場合、このブロックの出力接続機能を使用して、PID演算出力と受け手側の機能ブロックとの接続を明示的に定義すればよく、送り手側の機能ブロックと受け手側の機能ブロック間のその他の接続については暗黙的に定義される。   If the type of the functional block on the sender side is “PID”, for example, the connection between the PID calculation output and the functional block on the receiver side may be explicitly defined using the output connection function of this block. Other connections between the sender side functional block and the receiver side functional block are implicitly defined.

入出力接続方式判定部32と入出力接続設定部33とは、制御プログラムに記述されている送り手側の機能ブロックと受け手側の機能ブロックの組毎に、ステップS13〜S16の処理を行う。
全ての接続設定が終了した時点で(ステップS17においてYES)、制御プログラムの変換が終了する。
The input / output connection method determination unit 32 and the input / output connection setting unit 33 perform steps S13 to S16 for each set of the sender-side functional block and the receiver-side functional block described in the control program.
When all connection settings are completed (YES in step S17), the conversion of the control program ends.

制御プログラム出力部4は、記憶部5に記憶された変換後の制御プログラムを、入力部6を操作する使用者の指示に応じてRTエディタに出力する(ステップS18)。
以上で、制御プログラム作成コンバータ1の処理が終了する。
The control program output unit 4 outputs the converted control program stored in the storage unit 5 to the RT editor in accordance with an instruction from the user who operates the input unit 6 (step S18).
Thus, the process of the control program creation converter 1 is completed.

図9(A)はFBエディタ1000で作成された制御プログラムの1例を機能ブロック表現で模式的に示す図、図9(B)は図9(A)の制御プログラムを変換した後の制御プログラムを機能ブロック表現で模式的に示す図である。
図9(A)の例は、機能ブロック200と201とからなるPID制御ループの制御プログラムを示している。
FIG. 9A is a diagram schematically showing an example of a control program created by the FB editor 1000 in functional block representation, and FIG. 9B is a control program after the control program of FIG. 9A is converted. It is a figure which shows typically by functional block expression.
The example of FIG. 9A shows a control program for a PID control loop composed of functional blocks 200 and 201.

図9(A)に示した制御プログラムを制御プログラム作成コンバータ1で変換すると、図9(B)に示すようにブロックタイプとパラメータが変換される。つまり、機能ブロック200のブロックタイプ「PID」は、変換後の機能ブロック300では「FF_PID」となり、機能ブロック201のブロックタイプ「AO」は、変換後の機能ブロック301では「FF_AO」となる。   When the control program shown in FIG. 9A is converted by the control program creation converter 1, the block type and parameters are converted as shown in FIG. 9B. That is, the block type “PID” of the functional block 200 is “FF_PID” in the converted functional block 300, and the block type “AO” of the functional block 201 is “FF_AO” in the converted functional block 301.

また、機能ブロック200のパラメータ「OUT」は「OP」に変換され、機能ブロック201のパラメータ「CAS_IN」は「SP」に変換される。なお、制御プログラム変換部3は、機能ブロック200の制御機器名「AVP_01」と機能ブロック名「PID_1」を、変換後の機能ブロック300においてもそのまま使用する。機能ブロック201の制御機器名と機能ブロック名についても同様である。   In addition, the parameter “OUT” of the functional block 200 is converted to “OP”, and the parameter “CAS_IN” of the functional block 201 is converted to “SP”. Note that the control program conversion unit 3 uses the control device name “AVP — 01” and the function block name “PID — 1” of the functional block 200 in the converted functional block 300 as they are. The same applies to the control device name and function block name of the function block 201.

変換後の受け手側の機能ブロック301には、入力接続機能が無い。このため、入出力接続設定部33は、送り手側の機能ブロック300の出力接続機能を使用して、機能ブロック300と301間の接続302を設定する。機能ブロック300の出力接続機能を使用したことにより、機能ブロック301のフィードバック出力BKCAL_OUTと機能ブロック300のフィードバック入力BKCAL_INとの間の接続303については、暗黙的に定義される。   The converted function block 301 on the receiver side does not have an input connection function. Therefore, the input / output connection setting unit 33 sets the connection 302 between the function blocks 300 and 301 using the output connection function of the function block 300 on the sender side. By using the output connection function of the functional block 300, the connection 303 between the feedback output BKCAL_OUT of the functional block 301 and the feedback input BKCAL_IN of the functional block 300 is implicitly defined.

図10(A)はFBエディタ1000で作成された制御プログラムの他の例を模式的に示す図、図10(B)は図10(A)の制御プログラムを変換した後の制御プログラムを模式的に示す図である。
図10(A)の例は、機能ブロック204と205とからなるカスケードPID制御の制御プログラムを示している。
FIG. 10A schematically shows another example of the control program created by the FB editor 1000, and FIG. 10B schematically shows the control program after the control program of FIG. 10A is converted. FIG.
The example of FIG. 10A shows a control program for cascade PID control including functional blocks 204 and 205.

図10(A)に示した制御プログラムを制御プログラム作成コンバータ1で変換すると、図9(A)の場合と同様にブロックタイプとパラメータが変換され、図10(B)のようになる。   When the control program shown in FIG. 10 (A) is converted by the control program creation converter 1, the block type and parameters are converted as in FIG. 9 (A), resulting in FIG. 10 (B).

このとき、変換後の受け手側の機能ブロック305は、入力接続機能を備えているため、出力接続方式だけでなく入力接続方式を選択することも可能である。しかし、受け手側の機能ブロック305のブロックタイプ「FF_PID」と入力パラメータ「SP」は優先接続定義テーブル53に登録されている。このため、入出力接続設定部33は、送り手側の機能ブロック304の出力接続機能を使用して、機能ブロック304と305間の接続306を設定する。図9(B)の例と同様に、機能ブロック304の出力接続機能を使用したことにより、機能ブロック305のフィードバック出力BKCAL_OUTと機能ブロック304のフィードバック入力BKCAL_INとの間の接続307については、暗黙的に定義される。なお、実際には接続パラメータ名はCODSTN(図7)を用いて接続するものであるが、CODSTNはパラメータOPに包含されているため、図10の結線図上はOPとして示されるものである。   At this time, since the function block 305 on the receiver side after conversion has an input connection function, it is possible to select not only the output connection method but also the input connection method. However, the block type “FF_PID” and the input parameter “SP” of the functional block 305 on the receiver side are registered in the priority connection definition table 53. For this reason, the input / output connection setting unit 33 sets the connection 306 between the function blocks 304 and 305 by using the output connection function of the function block 304 on the sender side. Similar to the example of FIG. 9B, the connection 307 between the feedback output BKCAL_OUT of the function block 305 and the feedback input BKCAL_IN of the function block 304 is implicit by using the output connection function of the function block 304. Defined in Note that although the connection parameter name is actually connected using CODSTN (FIG. 7), since CODSTN is included in the parameter OP, it is shown as OP in the connection diagram of FIG.

以上のように、従来のRTエディタにおいては入力接続と出力接続のどちらかを任意に選択可能な場合があるので、本実施の形態では、出力接続方式を優先して使用すべき機能ブロックおよびパラメータを定義した優先接続定義テーブルを設け、この優先接続定義テーブルに基づいて、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として入力接続方式を使用するか出力接続方式を使用するかを判定し、この判定結果に基づいて制御プログラムを変換するようにしたので、FBエディタ1000で作成された制御プログラムをRTエディタで読み込み可能な制御プログラムに変換することができる。その他、ブロックタイプ、パラメータ名なども適宜変換される。したがって、RTエディタで作成した制御プログラムだけにしか対応していないシステムに対しても、RTエディタを通じて制御プログラムをダウンロードすることができる。   As described above, in the conventional RT editor, either input connection or output connection may be arbitrarily selected. Therefore, in this embodiment, function blocks and parameters to be used with priority on the output connection method. Whether to use the input connection method or the output connection method as the connection method between the function block on the sender side and the function block on the receiver side based on this priority connection definition table Since the control program is converted based on the determination result, the control program created by the FB editor 1000 can be converted into a control program that can be read by the RT editor. In addition, the block type, parameter name, and the like are also converted as appropriate. Therefore, the control program can be downloaded through the RT editor even for a system that supports only the control program created by the RT editor.

[第2の実施の形態]
次に、本発明の第2の実施の形態について説明する。図11は本発明の第2の実施の形態に係る制御プログラム作成コンバータの構成を示すブロック図である。
本実施の形態の制御プログラム作成コンバータ1aは、RTエディタによって作成された制御プログラムをFBエディタ1000で読み込み可能な制御プログラムに変換するものである。この制御プログラム作成コンバータ1aは、RTエディタによって作成された制御プログラムを読み込む制御プログラム読込部2aと、制御プログラム読込部2aが読み込んだ制御プログラムをFBエディタ1000で読み込み可能な制御プログラムに変換する制御プログラム変換部3aと、制御プログラム変換部3aが変換した制御プログラムをFBエディタ1000に出力する制御プログラム出力部4aと、記憶部5aと、入力部6と、表示部7aとを有する。
[Second Embodiment]
Next, a second embodiment of the present invention will be described. FIG. 11 is a block diagram showing the configuration of the control program creation converter according to the second embodiment of the present invention.
The control program creation converter 1a of the present embodiment converts the control program created by the RT editor into a control program that can be read by the FB editor 1000. The control program creation converter 1a includes a control program reading unit 2a that reads a control program created by the RT editor, and a control program that converts the control program read by the control program reading unit 2a into a control program that can be read by the FB editor 1000. It has the conversion part 3a, the control program output part 4a which outputs the control program which the control program conversion part 3a converted to the FB editor 1000, the memory | storage part 5a, the input part 6, and the display part 7a.

制御プログラム変換部3aは、制御プログラムのブロックタイプを変換するブロックタイプ変換部30aと、制御プログラムのパラメータを変換するパラメータ変換部31aと、RTエディタで作成された制御プログラムにおいて送り手側の機能ブロックと受け手側の機能ブロック間の接続に入力接続方式が使用されているか出力接続方式が使用されているかを判定する入出力接続方式判定部32aと、入出力接続方式判定部32aの判定結果に基づいて制御プログラムの入出力接続方式を変換する入出力接続設定部33aとを有する。   The control program conversion unit 3a includes a block type conversion unit 30a that converts the block type of the control program, a parameter conversion unit 31a that converts the parameters of the control program, and a function block on the sender side in the control program created by the RT editor. Based on the determination result of the input / output connection method determination unit 32a and the input / output connection method determination unit 32a for determining whether the input connection method or the output connection method is used for the connection between the receiver and the functional block on the receiver side And an input / output connection setting unit 33a for converting the input / output connection method of the control program.

記憶部5には、制御プログラム読込部2a、制御プログラム変換部3aおよび制御プログラム出力部4aなどの各種機能手段を実現するプログラム50aと、ブロックタイプ変換テーブル51aと、パラメータ変換テーブル52aとが記憶されている。   The storage unit 5 stores a program 50a for realizing various functional means such as a control program reading unit 2a, a control program conversion unit 3a, and a control program output unit 4a, a block type conversion table 51a, and a parameter conversion table 52a. ing.

ブロックタイプを変換するには、RTエディタの記述形式のブロックタイプをキーとして、対応するFBエディタの記述形式のブロックタイプを検索すればよい。したがって、ブロックタイプ変換テーブル51aの構成は、ブロックタイプ変換テーブル51と同じでよい。   In order to convert the block type, the block type in the description format of the FB editor may be searched using the block type in the description format of the RT editor as a key. Therefore, the configuration of the block type conversion table 51 a may be the same as that of the block type conversion table 51.

図12はパラメータ変換テーブル52aの構成を示す図である。パラメータ変換テーブル52aは、図12に示すようにRTエディタで使用されるブロックタイプ523とパラメータ524とFBエディタで使用されるパラメータ525とを対応付けたものであり、パラメータ524と525との対応関係をRTエディタで使用されるブロックタイプ毎に定義したものである。   FIG. 12 shows the configuration of the parameter conversion table 52a. As shown in FIG. 12, the parameter conversion table 52a associates the block type 523 used in the RT editor, the parameter 524, and the parameter 525 used in the FB editor, and the correspondence between the parameters 524 and 525. Is defined for each block type used in the RT editor.

次に、制御プログラム作成コンバータ1aの動作について説明する。図13は制御プログラム作成コンバータ1aの動作を示すフローチャートである。
最初に、制御プログラム読込部2aは、RTエディタによって作成された制御プログラムの中から使用者が選択した制御プログラムを読み込み、この制御プログラムを記憶部5aに格納する(図13ステップS20)。
Next, the operation of the control program creation converter 1a will be described. FIG. 13 is a flowchart showing the operation of the control program creation converter 1a.
First, the control program reading unit 2a reads the control program selected by the user from the control programs created by the RT editor, and stores this control program in the storage unit 5a (step S20 in FIG. 13).

続いて、制御プログラム変換部3aのブロックタイプ変換部30aは、ブロックタイプ変換テーブル51aを参照し、記憶部5aに格納された制御プログラムに記述されている全てのブロックタイプについて、RTエディタの記述形式のブロックタイプをFBエディタの記述形式のブロックタイプに変換する(ステップS21)。   Subsequently, the block type conversion unit 30a of the control program conversion unit 3a refers to the block type conversion table 51a, and describes the RT editor description format for all block types described in the control program stored in the storage unit 5a. The block type is converted to the block type in the description format of the FB editor (step S21).

制御プログラム変換部3aのパラメータ変換部31aは、パラメータ変換テーブル52aを参照し、記憶部5aに格納された制御プログラムに記述されている全てのパラメータについて、RTエディタの記述形式のパラメータをFBエディタの記述形式のパラメータに変換する(ステップS22)。   The parameter conversion unit 31a of the control program conversion unit 3a refers to the parameter conversion table 52a, and sets the parameters in the RT editor description format for all parameters described in the control program stored in the storage unit 5a. Conversion into parameters in the description format (step S22).

制御プログラム変換部3aの入出力接続方式判定部32aは、ステップS21,S22でブロックタイプとパラメータが変換された後の制御プログラムにおいて、送り手側の機能ブロックと受け手側の機能ブロック間の接続に入力接続方式が使用されているかどうかを判定する(ステップS23)。   The input / output connection method determination unit 32a of the control program conversion unit 3a performs connection between the function block on the sender side and the function block on the receiver side in the control program after the block type and parameters are converted in steps S21 and S22. It is determined whether the input connection method is used (step S23).

入出力接続設定部33aは、入力接続方式を使用していると判定された場合、そのまま入力接続方式を使用して送り手側の機能ブロックと受け手側の機能ブロック間の接続情報(FBエディタのリンクデータ)を設定する(ステップS24)。   When it is determined that the input connection method is used, the input / output connection setting unit 33a uses the input connection method as it is to connect information between the function block on the sender side and the function block on the receiver side (in the FB editor). Link data) is set (step S24).

また、入出力接続設定部33aは、出力接続方式を使用していると判定された場合、出力接続方式を入力接続方式に変換し、送り手側の機能ブロックと受け手側の機能ブロック間の接続情報を設定する(ステップS25)。さらに、入出力接続設定部33aは、出力接続方式を使用している機能ブロックに関して、図9(B)の接続303のように暗黙的に定義されている接続がある場合には、この接続を入力接続方式で設定する(ステップS26)。   Further, when it is determined that the output connection method is used, the input / output connection setting unit 33a converts the output connection method into the input connection method, and connects the functional block on the sender side and the functional block on the receiver side. Information is set (step S25). Further, the input / output connection setting unit 33a, when there is a connection that is implicitly defined as the connection 303 in FIG. 9B regarding the functional block using the output connection method, Setting is made by the input connection method (step S26).

入出力接続方式判定部32aと入出力接続設定部33aとは、制御プログラムに記述されている送り手側の機能ブロックと受け手側の機能ブロックの組毎に、ステップS23〜S26の処理を行う。
全ての接続設定が終了した時点で(ステップS27においてYES)、制御プログラムの変換が終了する。
The input / output connection method determination unit 32a and the input / output connection setting unit 33a perform the processing of steps S23 to S26 for each set of the sender side functional block and the receiver side functional block described in the control program.
When all connection settings are completed (YES in step S27), the conversion of the control program ends.

制御プログラム出力部4aは、記憶部5aに記憶された変換後の制御プログラムを、入力部6aを操作する使用者の指示に応じてFBエディタ1000に出力する(ステップS28)。こうして、制御プログラム作成コンバータ1aの処理が終了する。なお以上の例では、FBエディタでは通常の接続方式を入力接続方式であるとして説明してきたが、リンク結線の仕様を変えて別の接続形態をとる設計も考えられるが、その場合も本発明の範囲に属することは云うまでもない。   The control program output unit 4a outputs the converted control program stored in the storage unit 5a to the FB editor 1000 in accordance with an instruction from the user who operates the input unit 6a (step S28). Thus, the process of the control program creation converter 1a is completed. In the above example, the FB editor has been described as assuming that the normal connection method is the input connection method. However, a design that changes the link connection specification and adopts another connection form is also conceivable. It goes without saying that it belongs to the range.

以上のように、従来のRTエディタにおいては入力接続と出力接続の両方が使用されているので、本実施の形態では、RTエディタで作成されたプログラムにおいて送り手側の機能ブロックと受け手側の機能ブロック間の接続に入力接続方式が使用されているか出力接続方式が使用されているかを判定し、この判定結果に基づいて制御プログラムを変換するようにしたので、RTエディタで作成された制御プログラムをFBエディタで読み込み可能な制御プログラムに変換することができる。その他、ブロックタイプ、パラメータ名なども適宜変換される。したがって、例えばRTエディタで作成された制御プログラムをFBエディタで編集して新たなプログラムを作成することができる。   As described above, since both the input connection and the output connection are used in the conventional RT editor, in this embodiment, the function block on the sender side and the function on the receiver side in the program created by the RT editor are used. Since it is determined whether the input connection method or the output connection method is used for the connection between the blocks, and the control program is converted based on this determination result, the control program created by the RT editor is It can be converted into a control program that can be read by the FB editor. In addition, the block type, parameter name, and the like are also converted as appropriate. Therefore, for example, a new program can be created by editing a control program created by the RT editor with the FB editor.

なお、第1実施の形態および第2の実施の形態のFBエディタ、制御プログラム作成コンバータ1,1a、RTエディタは、それぞれCPU、記憶装置および外部とのインタフェースを備えたコンピュータと、これらのハードウェア資源を制御するプログラムによって実現することができる。これらのコンピュータにおいて、本発明の制御プログラム変換方法を実現させるためのプログラムは、フレキシブルディスク、CD−ROM、DVD−ROM、メモリカードなどの記録媒体に記録された状態で提供される。CPUは、記録媒体から読み込んだプログラムを記憶装置に書き込み、プログラムに従って第1、第2の実施の形態で説明した処理を実行する。   Note that the FB editor, the control program creation converters 1 and 1a, and the RT editor of the first and second embodiments are respectively a computer having a CPU, a storage device, and an external interface, and hardware thereof. It can be realized by a program for controlling resources. In these computers, a program for realizing the control program conversion method of the present invention is provided in a state of being recorded on a recording medium such as a flexible disk, a CD-ROM, a DVD-ROM, or a memory card. The CPU writes the program read from the recording medium to the storage device, and executes the processes described in the first and second embodiments according to the program.

また、第1、第2の実施の形態では、制御プログラム作成コンバータ1,1aをFBエディタやRTエディタと別体のものとして説明しているが、これに限るものではなく、制御プログラム作成コンバータ1,1aをFBエディタ又はRTエディタと同一のコンピュータ上に設けてもよい。   In the first and second embodiments, the control program creation converters 1 and 1a are described as separate from the FB editor and the RT editor. However, the present invention is not limited to this, and the control program creation converter 1 is not limited thereto. , 1a may be provided on the same computer as the FB editor or RT editor.

本発明は、制御機器の機能ブロックを用いた制御プログラムを変換する技術に適用することができる。   The present invention can be applied to a technique for converting a control program using functional blocks of a control device.

本発明の第1の実施の形態に係る制御プログラム作成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the control program creation apparatus which concerns on the 1st Embodiment of this invention. 図1の制御プログラム作成装置による制御プログラム作成の概略を示す図である。It is a figure which shows the outline of control program creation by the control program creation apparatus of FIG. 図1の制御プログラム作成装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control program creation apparatus of FIG. 本発明の第1の実施の形態に係る制御プログラム作成コンバータの構成を示すブロック図である。It is a block diagram which shows the structure of the control program creation converter which concerns on the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるブロックタイプ変換テーブルの構成を示す図である。It is a figure which shows the structure of the block type conversion table in the 1st Embodiment of this invention. 本発明の第1の実施の形態におけるパラメータ変換テーブルの構成を示す図である。It is a figure which shows the structure of the parameter conversion table in the 1st Embodiment of this invention. 本発明の第1の実施の形態における優先接続定義テーブルの構成を示す図である。It is a figure which shows the structure of the priority connection definition table in the 1st Embodiment of this invention. 本発明の第1の実施の形態に係る制御プログラム作成コンバータの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control program creation converter which concerns on the 1st Embodiment of this invention. 図1の制御プログラム作成装置で作成された制御プログラムおよび変換後の制御プログラムの例を模式的に示す図である。It is a figure which shows typically the example of the control program created with the control program creation apparatus of FIG. 1, and the control program after conversion. 図1の制御プログラム作成装置で作成された制御プログラムおよび変換後の制御プログラムの他の例を模式的に示す図である。It is a figure which shows typically the other example of the control program created with the control program creation apparatus of FIG. 1, and the control program after conversion. 本発明の第2の実施の形態に係る制御プログラム作成コンバータの構成を示すブロック図である。It is a block diagram which shows the structure of the control program creation converter which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態におけるパラメータ変換テーブルの構成を示す図である。It is a figure which shows the structure of the parameter conversion table in the 2nd Embodiment of this invention. 本発明の第2の実施の形態に係る制御プログラム作成コンバータの動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control program creation converter which concerns on the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

1,1a…制御プログラム作成コンバータ、2,2a…制御プログラム読込部、3,3a…制御プログラム変換部、4,4a…制御プログラム出力部、5,5a…記憶部、6,6a…入力部、7,7a…表示部、30,30a…ブロックタイプ変換部、31,31a…パラメータ変換部、32,32a…入出力接続方式判定部、33,33a…入出力接続設定部、50,50a…プログラム、51,51a…ブロックタイプ変換テーブル、52,52a…パラメータ変換テーブル、53…優先接続定義テーブル。   DESCRIPTION OF SYMBOLS 1, 1a ... Control program creation converter, 2, 2a ... Control program reading part, 3, 3a ... Control program conversion part, 4, 4a ... Control program output part, 5, 5a ... Storage part, 6, 6a ... Input part, 7, 7a ... display unit, 30, 30a ... block type conversion unit, 31, 31a ... parameter conversion unit, 32, 32a ... input / output connection method determination unit, 33, 33a ... input / output connection setting unit, 50, 50a ... program , 51, 51a ... Block type conversion table, 52, 52a ... Parameter conversion table, 53 ... Priority connection definition table.

Claims (7)

制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、前記機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム作成コンバータにおいて、
受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第1の制御プログラムを読み込む制御プログラム読込手段と、
送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を前記接続のうちの所定の箇所に使用すると共にその他の箇所に前記入力接続方式を使用する前記第2の制御プログラムへの変換に際して、前記出力接続方式を優先して使用すべき機能ブロックおよびパラメータが定義された優先接続定義テーブルと、
この優先接続定義テーブルに基づいて、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として前記入力接続方式を使用するか前記出力接続方式を使用するかを判定する入出力接続方式判定手段と、
この入出力接続方式判定手段の判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換手段とを備えることを特徴とする制御プログラム作成コンバータ。
In a control program creation converter for converting a first control program created by combining the functional blocks by regarding the function of the control device as a functional block, to another second control program using the functional block,
The first control program in which the connection between the function block on the sender side and the function block on the receiver side is defined by the input connection method that defines the function block on the sender side and output parameters as connection information on the function block on the receiver side A control program reading means for reading
An output connection method that defines a function block on the receiver side and input parameters as connection information of a function block on the sender side is used for a predetermined part of the connection and the input connection method is used for the other part. A priority connection definition table in which functional blocks and parameters to be used with priority on the output connection method are defined in the conversion to the control program of 2;
Input / output connection method determination that determines whether to use the input connection method or the output connection method as a connection method between the sender-side functional block and the receiver-side functional block based on this priority connection definition table Means,
A control program creation converter comprising control program conversion means for converting the first control program into the second control program based on the determination result of the input / output connection method determination means.
請求項1記載の制御プログラム作成コンバータにおいて、
前記制御プログラム変換手段は、前記接続のうち前記入力接続方式を優先すると判定された箇所に前記入力接続方式を使用し、前記出力接続方式を優先すると判定された箇所に前記出力接続方式を使用することを特徴とする制御プログラム作成コンバータ。
The control program creation converter according to claim 1,
The control program conversion means uses the input connection method at a location determined to prioritize the input connection method among the connections, and uses the output connection method at a location determined to prioritize the output connection method. A control program creation converter characterized by that.
制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、前記機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム作成コンバータにおいて、
送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を送り手側の機能ブロックと受け手側の機能ブロック間の接続のうちの所定の箇所に使用すると共に、その他の箇所に受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式を使用する前記第1の制御プログラムを読み込む制御プログラム読込手段と、
前記入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第2の制御プログラムへの変換に際して、前記第1の制御プログラムにおいて前記接続に前記入力接続方式が使用されているか前記出力接続方式が使用されているかを判定する入出力接続方式判定手段と、
この入出力接続方式判定手段の判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換手段とを備えることを特徴とする制御プログラム作成コンバータ。
In a control program creation converter for converting a first control program created by combining the functional blocks by regarding the function of the control device as a functional block, to another second control program using the functional block,
As the connection information of the sender-side functional block, the output-side connection method that defines the receiver-side functional block and the input parameters is used for a predetermined part of the connection between the sender-side functional block and the receiver-side functional block. A control program reading means for reading the first control program using an input connection method for defining a function block on the sender side and output parameters as connection information on the function block on the receiver side in other locations;
In the conversion to the second control program in which the connection between the functional block on the sender side and the functional block on the receiver side is defined by the input connection method, the input connection method is included in the connection in the first control program. An input / output connection method determination means for determining whether the output connection method is used, or
A control program creation converter comprising control program conversion means for converting the first control program into the second control program based on the determination result of the input / output connection method determination means.
請求項3記載の制御プログラム作成コンバータにおいて、
前記制御プログラム変換手段は、前記接続のうち前記出力接続方式が使用されていると判定された箇所を前記入力接続方式に変換することを特徴とする制御プログラム作成コンバータ。
In the control program creation converter according to claim 3,
The control program conversion means converts the portion of the connection that is determined to use the output connection method to the input connection method.
制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、前記機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム変換方法において、
受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第1の制御プログラムを読み込む制御プログラム読込ステップと、
送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を前記接続のうちの所定の箇所に使用すると共にその他の箇所に前記入力接続方式を使用する前記第2の制御プログラムへの変換に際して、前記出力接続方式を優先して使用すべき機能ブロックおよびパラメータが定義された優先接続定義テーブルを参照し、送り手側の機能ブロックと受け手側の機能ブロック間の接続方式として前記入力接続方式を使用するか前記出力接続方式を使用するかを判定する入出力接続方式判定ステップと、
この入出力接続方式判定ステップの判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換ステップとを備えることを特徴とする制御プログラム変換方法。
In the control program conversion method for converting the first control program created by combining the functional blocks by regarding the function of the control device as a functional block, into another second control program using the functional block,
The first control program in which the connection between the function block on the sender side and the function block on the receiver side is defined by the input connection method that defines the function block on the sender side and output parameters as connection information on the function block on the receiver side A control program reading step for reading
An output connection method that defines a function block on the receiver side and input parameters as connection information of a function block on the sender side is used for a predetermined part of the connection and the input connection method is used for the other part. 2 is referred to the priority connection definition table in which the function blocks and parameters to be used with priority given to the output connection method are referred to, and between the function block on the sender side and the function block on the receiver side. An input / output connection method determination step for determining whether to use the input connection method or the output connection method as a connection method;
A control program conversion method comprising: a control program conversion step for converting the first control program into the second control program based on the determination result of the input / output connection method determination step.
制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、前記機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム変換方法において、
送り手側の機能ブロックの接続情報として受け手側の機能ブロックおよび入力パラメータを定義する出力接続方式を送り手側の機能ブロックと受け手側の機能ブロック間の接続のうちの所定の箇所に使用すると共に、その他の箇所に受け手側の機能ブロックの接続情報として送り手側の機能ブロックおよび出力パラメータを定義する入力接続方式を使用する前記第1の制御プログラムを読み込む制御プログラム読込ステップと、
前記入力接続方式により送り手側の機能ブロックと受け手側の機能ブロック間の接続が定義された前記第2の制御プログラムへの変換に際して、前記第1の制御プログラムにおいて前記接続に前記入力接続方式が使用されているか前記出力接続方式が使用されているかを判定する入出力接続方式判定ステップと、
この入出力接続方式判定ステップの判定結果に基づいて前記第1の制御プログラムを前記第2の制御プログラムに変換する制御プログラム変換ステップとを備えることを特徴とする制御プログラム変換方法。
In the control program conversion method for converting the first control program created by combining the functional blocks by regarding the function of the control device as a functional block, into another second control program using the functional block,
As the connection information of the sender-side functional block, the output-side connection method that defines the receiver-side functional block and the input parameters is used for a predetermined part of the connection between the sender-side functional block and the receiver-side functional block. A control program reading step for reading the first control program using an input connection method for defining a function block on the sender side and output parameters as connection information on the function block on the receiver side in other locations;
In the conversion to the second control program in which the connection between the functional block on the sender side and the functional block on the receiver side is defined by the input connection method, the input connection method is included in the connection in the first control program. An input / output connection method determination step for determining whether the output connection method is being used, or
A control program conversion method comprising: a control program conversion step for converting the first control program into the second control program based on the determination result of the input / output connection method determination step.
制御機器が持つ機能を機能ブロックとして捉え機能ブロックを組合わせることにより作成された第1の制御プログラムを、同じく機能ブロックを用いる他の第2の制御プログラムに変換する制御プログラム作成コンバータにおいて、
機能ブロックに埋め込むアルゴリズムであるブロックタイプ名の変換手段と、
機能ブロック同士を結びつける入出力ポートにかかるパラメータ名の変換手段と、
機能ブロック間の結線を示すリンクの接続方式を、第1の制御プログラムの接続方式から第2の制御プログラムの接続方式に適合させるように、当該リンクを追加または削除する変換手段と、
これら変換手段が参照する変換のための定義テーブルと、
を備えることを特徴とする制御プログラム作成コンバータ。
In a control program creation converter for converting a first control program created by combining the functional blocks by taking the functions of the control device as functional blocks, and converting them into another second control program using the functional blocks,
A block type name conversion means that is an algorithm embedded in a functional block;
Parameter name conversion means for input / output ports that connect functional blocks,
Conversion means for adding or deleting the link so that the connection method of the link indicating the connection between the functional blocks is adapted from the connection method of the first control program to the connection method of the second control program;
A definition table for conversion referred to by these conversion means, and
A control program creation converter comprising:
JP2007285908A 2007-11-02 2007-11-02 Control program creation converter and control program conversion method Expired - Fee Related JP4851420B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007285908A JP4851420B2 (en) 2007-11-02 2007-11-02 Control program creation converter and control program conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007285908A JP4851420B2 (en) 2007-11-02 2007-11-02 Control program creation converter and control program conversion method

Publications (2)

Publication Number Publication Date
JP2009116434A JP2009116434A (en) 2009-05-28
JP4851420B2 true JP4851420B2 (en) 2012-01-11

Family

ID=40783543

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007285908A Expired - Fee Related JP4851420B2 (en) 2007-11-02 2007-11-02 Control program creation converter and control program conversion method

Country Status (1)

Country Link
JP (1) JP4851420B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3326713B2 (en) * 1996-08-28 2002-09-24 株式会社山武 Graphical programming method
JP2002163003A (en) * 2000-11-27 2002-06-07 Yamatake Sangyo Systems Co Ltd Device and method for preparing control program, and recording medium
JP2007072833A (en) * 2005-09-08 2007-03-22 Yamatake Corp Data conversion method, computer program for data conversion, and data conversion apparatus

Also Published As

Publication number Publication date
JP2009116434A (en) 2009-05-28

Similar Documents

Publication Publication Date Title
JP4302146B2 (en) Program creation support device
JP5026925B2 (en) Control program creation device and control program creation method
CN104932875B (en) Image processing apparatus, management system and management method
JP6794668B2 (en) Programming device
JP4631562B2 (en) Information processing apparatus, information processing method, and computer program
JP4851420B2 (en) Control program creation converter and control program conversion method
JP2010198562A (en) Method and device of creating control program
JP2020013211A (en) Program development device and controller
CN105900024A (en) Auxiliary device and program for FA instrument structure design
JP3626074B2 (en) Communication device
JP2003039359A (en) Robot controller
JP2006107172A (en) Programmable controller programming device
JP6836549B2 (en) Ladder display device
JP2007094546A (en) Control system
JP7241982B1 (en) Image generation program, image generation device, programmable controller system and image generation method
JP2021064077A (en) Machine tool parameter setting device and parameter setting system
JP2007252162A (en) Electric motor drive
JP2007179229A (en) Programming device
JP2008293241A (en) Display device
JP4774683B2 (en) Support device for servo controller
JP4813823B2 (en) Test system and test method
JP2022080352A (en) Test support device
JP2006331319A (en) Simple preparation system of operation instruction
JPH0242562A (en) Text editing device
JPH1196040A (en) Process execution system and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100826

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110929

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111018

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111020

R150 Certificate of patent or registration of utility model

Ref document number: 4851420

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141028

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees