JP2011227823A - Control program creation apparatus and method for driving the same - Google Patents
Control program creation apparatus and method for driving the same Download PDFInfo
- Publication number
- JP2011227823A JP2011227823A JP2010098990A JP2010098990A JP2011227823A JP 2011227823 A JP2011227823 A JP 2011227823A JP 2010098990 A JP2010098990 A JP 2010098990A JP 2010098990 A JP2010098990 A JP 2010098990A JP 2011227823 A JP2011227823 A JP 2011227823A
- Authority
- JP
- Japan
- Prior art keywords
- control program
- file
- program
- database
- key information
- 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.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
- Programmable Controllers (AREA)
Abstract
Description
本発明は制御プログラム作成装置および制御プログラム作成装置の駆動方法に関する。 The present invention relates to a control program creation device and a control program creation method.
システムプログラマは、プラントを自動運転するためのプログラムを、プラント制御装置のアプリケーションプログラム(以降、「制御プログラム」と呼ぶ)として、作成、試験、調整後、プラント運転者へ提供する。システムプログラマは、プラントを安全に制御するために、制御プログラムの調整時に制御プログラムのデバッグを行う。 The system programmer provides a program for automatically operating the plant as an application program (hereinafter referred to as “control program”) of the plant control apparatus to the plant operator after creation, testing, and adjustment. The system programmer debugs the control program when adjusting the control program in order to control the plant safely.
制御プログラムは、例えばIEC61131-3で規定されているLD(ラダー)やFBD(ファンクションブロックダイアグラム)などの言語を用いて記述される。制御プログラムのデバッグ時は、オンライン状態で、制御プログラム単位の置き換え、または接点(A接点やB接点など)や変数の値を強制変更することにより、制御プログラムの動作確認を行う。この動作確認のとき、システムプログラマに対して、誤操作を招かないように、制御プログラム作成装置がわかりやすく提示することが求められる。 The control program is described using a language such as LD (ladder) or FBD (function block diagram) defined in IEC61131-3, for example. When debugging the control program, the operation of the control program is checked by replacing the control program unit or forcibly changing the contact (A contact, B contact, etc.) or variable value in the online state. At the time of this operation check, it is required that the control program creation device be presented in an easy-to-understand manner to the system programmer so as not to cause an erroneous operation.
例えば特許文献1には、コントローラ機器に依存せず、プロセスアプリケーションの階層構造に従って、ワークフレーム設計を支援し得るエンジニアリングシステムが提案されている。 For example, Patent Document 1 proposes an engineering system that can support work frame design according to a hierarchical structure of process applications without depending on a controller device.
制御プログラム作成装置では、制御プログラムの構成は、表現性・移植性・再利用性を高めるため、例えばソース/オブジェクト方式が採用される。システムプログラマは、制御プログラムソースにIEC61131-3で規定されている制御プログラム言語、およびプログラムの実行に直接関係しない拡張情報(図形、コメント、等)を記述し、プラント制御装置が実行可能なオブジェクトを生成後、書き込むことで、実行、動作確認を行う。システムプログラマは、制御プログラムの動作確認を行うためには、プラント制御装置にロードしたオブジェクトの基となる制御プログラムソースが必要になる。 In the control program creation device, for example, a source / object method is adopted as the configuration of the control program in order to improve expression, portability, and reusability. The system programmer describes the control program language specified in IEC61131-3 in the control program source and extended information (graphics, comments, etc.) that are not directly related to program execution, and creates objects that can be executed by the plant controller. Execution and operation check are performed by writing after generation. In order to confirm the operation of the control program, the system programmer needs a control program source that is the basis of the object loaded in the plant control apparatus.
そのため、制御プログラムソースを人為的にバックアップしておかないと、制御プログラムの改造中に、プラント制御装置に書き込まれている改造前の制御プログラムの動作確認を行うことができなかった。 Therefore, unless the control program source is artificially backed up, it is not possible to confirm the operation of the control program before the modification written in the plant control device during the modification of the control program.
また、ハードウエア構成情報(プログラムコード)、および入出力信号情報(プログラムデータ)についても、プラント制御装置に書き込まれないソースファイルとして管理される場合には、制御プログラムと同様の課題があった。 Further, when hardware configuration information (program code) and input / output signal information (program data) are managed as source files that are not written in the plant control device, there are problems similar to those of the control program.
本発明は上記事情を鑑みて成されたものであって、システムプログラマの負担を軽減するプログラム作成装置および制御プログラム作成装置の駆動方法を提供することを目的とする。 The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a program creation device and a control program creation device driving method that reduce the burden on the system programmer.
実施形態に係るプログラム作成装置は、ネットワークを経由して、コントローラに制御プログラムのオブジェクトファイルを書き込むプログラム作成装置であって、前記制御プログラムのソースファイルをコンパイル処理してオブジェクトファイルに変換するコンパイラと、前記オブジェクトファイルを前記コントローラに送付する通信手段と、を備えた制御プログラム編集部と、前記ソースファイルと前記オブジェクトファイルとを格納し、前記ソースファイルと前記オブジェクトファイルとを前記制御プログラム毎に設定されたキー情報により管理する第1データベースと、前記コントローラに書き込まれた前記制御プログラムの前記オブジェクトファイルと、対応するソースファイルとを格納し、前記ソースファイルと前記オブジェクトファイルとを前記制御プログラム毎に設定されたキー情報により管理する第2データベースと、前記制御プログラムの前記オブジェクトファイルと前記ソースファイルとを前記第2データベースに記録する前記ファイルバックアップ部と、ユーザに前記コントローラに書き込まれた前記オブジェクトファイルの動作確認画面を提示する表示装置と、ユーザによって操作され、操作信号を前記制御プログラム編集部へ出力する入力装置と、を備え、前記制御プログラム編集部は、前記コントローラに前記オブジェクトファイルの書き込み、および、前記表示装置に前記動作確認画面に提示を行い、前記オブジェクトファイルの書き込みと前記動作確認画面の提示とは非同期に、キー情報により対応するオブジェクトファイルとソースファイルとを前記第2データベースに記録するように前記ファイルバックアップ部に要求するように構成されている制御プログラム作成装置である。 A program creation device according to an embodiment is a program creation device that writes an object file of a control program to a controller via a network, and a compiler that compiles a source file of the control program and converts it into an object file; A control program editing unit comprising: a communication means for sending the object file to the controller; the source file and the object file are stored; and the source file and the object file are set for each control program. The first database managed by the key information, the object file of the control program written in the controller, and the corresponding source file are stored, and the source file and the object are stored. A second database for managing files by key information set for each control program, the file backup unit for recording the object file and the source file of the control program in the second database, and A display device that presents an operation confirmation screen for the object file written in the controller; and an input device that is operated by a user and outputs an operation signal to the control program editing unit. Writing the object file to the controller and presenting it on the operation confirmation screen to the display device, and writing the object file and presenting the operation confirmation screen asynchronously, the corresponding object file and source file by key information Which is a by a control program creating device configured to request the file backup unit to record in the second database.
本発明によれば、システムプログラマの負担を軽減するプログラム作成装置および制御プログラム作成装置の駆動方法を提供することができる。 ADVANTAGE OF THE INVENTION According to this invention, the drive method of the program creation apparatus and control program creation apparatus which reduce the burden of a system programmer can be provided.
以下、本発明の第1実施形態に係るプログラム作成装置について図面を参照して説明する。 Hereinafter, a program creation device according to a first embodiment of the present invention will be described with reference to the drawings.
図1に、本発明の一実施形態に係るプログラム作成装置の一構成例を概略的に示す。本実施形態に係るプログラム作成装置は、制御プログラム編集部110と、第1データベース150と、第2データベース160と、を備えたコンピュータ100と、コンピュータ100の入力装置としてのマウス12およびキーボード14と、コンピュータ100の出力装置としての表示装置16と、を備えている。コンピュータ100とプラント制御装置のコントローラ200とはネットワーク300に接続されている。
FIG. 1 schematically shows a configuration example of a program creation apparatus according to an embodiment of the present invention. The program creation device according to the present embodiment includes a
プラント制御装置のコントローラ200は、制御プログラムのオブジェクトファイルを格納するためのオブジェクトメモリ210と、これらの書き込み、読み出し、実行を行う標準処理部220を有している。さらに、オブジェクトメモリ210は、データメモリ212とコードメモリ214とを有している。
The
標準処理部220は、プログラムロードサーバ部222と、オブジェクトメモリ210に記録された制御プログラムを実行するためのプログラム実行処理部224と、制御対象であるプラントからのプロセス信号を制御プログラムに与えるためのプロセス入出力処理部225とを備える。
The
プログラムロードサーバ部222は、ネットワーク300を経由してコンピュータ100から送付された制御プログラムのオブジェクトファイルを、オブジェクトメモリ210のデータメモリ212およびコードメモリ214に配置する。
The program
コンピュータ100は、システムプログラマ(ユーザ)が制御プログラムを作成するための制御プログラム編集部110と、ファイルバックアップ部120と、ファイル比較部130と、ファイル排他部140と、制御プログラムを格納する第1データベース150と、バックアップ用の制御プログラムが格納される第2データベース160と、を備える。
The
制御プログラム編集部110は、プログラムコンパイラ112と、プログラムロードクライアント部114と、を備えている。プログラムコンパイラ112は、制御プログラムのソースファイルをオブジェクトファイルに変換するためのコンパイル処理を行う。プログラムロードクライアント部114は、プログラムコンパイラ112によってソースファイルから変換されたオブジェクトファイルをコントローラへ200送付する通信手段である。
The control
ファイルバックアップ部120は、後述するソースファイルのバックアップ処理を行う。ファイル比較部130は、バックアップ処理によって保存された制御プログラムと、編集後の制御プログラムとを比較する比較処理を行う。ファイル排他部140は、バックアップ中の制御プログラムについて、他者への表示を禁止する排他処理を行う。
The
第1データベース150は、制御プログラムのソースファイルを格納するためのソースファイル部152と、制御プログラムのオブジェクトファイルを格納するためのオブジェクトファイル部154と、を備えている。
The
第2データベース160も同様に、制御プログラムのソースファイルを格納するためのソースファイル部152と、制御プログラムのオブジェクトファイルを格納するためのオブジェクトファイル部154と、を備えている。
Similarly, the
図2に、JISB3503(またはIEC61131-3)で規定された言語を使って作成した制御プログラムの一例を示す。制御プログラムは、表示装置16の画面上で、プログラム言語に対応する図を組み合わせることによってその構造を組み立てることができる。例えば、C1〜C7のそれぞれは、JISB3503(またはIEC61131-3)で規定された言語で記述された命令語に対応している。
FIG. 2 shows an example of a control program created using a language defined by JISB3503 (or IEC61131-3). The structure of the control program can be assembled by combining diagrams corresponding to the program language on the screen of the
システムプログラマは、図を組み立てて制御プログラムのソースファイルを作成する。システムプログラマは、ソースファイルをプログラムコンパイラ112によってコンパイルして、オブジェクトファイルを作成する。
The system programmer assembles the diagram and creates a control program source file. The system programmer compiles the source file with the
図3に、第1データベース150の一構成例を示す。第1データベース150のソースファイル部152には、制御プログラムのソースファイルが記録されている。ソースファイル部152は、制御プログラム情報152Aと、命令語およびその構造が定義されているプログラムコード152Bと、制御プログラム内で使用される内部変数が定義されているプログラムデータ152Cとで構成される。
FIG. 3 shows a configuration example of the
1つの制御プログラムに対するプログラムコード152Bとプログラムデータ152Cとは複数のデータで構成される。プログラムコード152Bとプログラムデータ152Cとを階層構造で管理している。最上位階層を制御プログラム情報152Aとし、1つの制御プログラムに対して、固有の1つのキー情報を割り当てる。制御プログラム情報152Aには、キー情報と、プログラム名と、プログラム種類とが含まれる。キー情報は、例えば、数字や文字を組み合わせた情報である。
下位階層のプログラムコード152Bとプログラムデータ152Cとは、このキー情報で制御プログラム情報152Aと関連付けられる。プログラムコード152Bは、各命令語を管理し、サブキー情報と、命令語位置情報と、命令語コードと、参照キー情報とが含まれる。プログラムデータ152Cは、制御プログラムの入力信号と出力信号とを管理し、サブキー情報と、内部信号名と、信号型名と、コメント情報と、参照キー情報とが含まれる。サブキー情報は、例えば制御プログラムの命令語ごとに付与された固有の情報である。
The lower
第2データベース160においても、第1データベース150と同じ階層構造で制御プログラムが管理される。第1データベース150からバックアップされた第2データベース160の制御プログラムは、第1データベース150の制御プログラム情報152Aと同じキー情報で管理される。
Also in the
上記コンピュータ100およびコントローラ200の動作について以下に説明する。システムプログラマは、表示装置16に表示される制御プログラム編集画面を使用して、制御プログラムを作成する。システムプログラマが制御プログラムを保存した時、その制御プログラムは、第1データベース150のソースファイル部152に格納され、かつ、そのソースファイルをプログラムコンパイラ112でコンパイルしたオブジェクトファイルを第1データベース150のオブジェクトファイル部154へ保存する。
The operations of the
システムプログラマは、上記のように制御プログラムを作成、保存、コンパイルを実施した後に、ネットワーク300を経由してコントローラ200にオブジェクトファイルを書き込み、制御プログラムを実行させる。
After creating, storing, and compiling the control program as described above, the system programmer writes the object file to the
オブジェクトファイルをコントローラ200に書き込むとき、コンピュータ100およびコントローラ200は、プログラムロードクライアント部114が第1データベース150からオブジェクトファイルを読み出して、ネットワーク300を経由して、コントローラ200のプログラムロードサーバ部222に送付する。プログラムロードサーバ部222は、オブジェクトファイルを受信して、オブジェクトメモリ210のデータメモリ212およびコードメモリ214上に配置し、さらにプログラム実行処理部224がこれを実行して、制御プログラムが実行される。
When the object file is written in the
本実施形態にかかるプログラム作成装置では、コントローラ200へ制御プログラムを書き込み、動作確認、および、デバックの動作と同時に、制御プログラムのバックアップ処理を行う。
In the program creation device according to the present embodiment, a control program is written into the
図4に、制御プログラムのオブジェクトファイルをコントローラ200に書き込んだときに、その基となるソースファイルおよび書き込んだオブジェクトファイルを自動的にバックアップする動作の一例を説明するための図を示す。
FIG. 4 is a diagram for explaining an example of an operation for automatically backing up the source file and the written object file as a basis when the control program object file is written in the
制御プログラム編集部110は、指定された制御プログラムのオブジェクトファイルを第1データベース150のオブジェクトファイル部154から読み出し(ステップ1A)、コントローラ200にオブジェクトファイルを書き込む(ステップ2A)とともに、ファイルバックアップ部120に制御プログラムのキー情報と共に制御プログラムのバックアップ処理を行うように要求する信号を出力する(ステップ3A)。
The control
ファイルバックアップ部120は、要求信号を受信した後、制御プログラム編集部110に制御を返し(ステップ4A)、制御プログラム編集部110における書き込み動作および動作確認(オンラインモニタ)動作(ステップ5A)とは非同期に第1データベース150のキー情報に該当する制御プログラム特定して、特定した制御プログラムのオブジェクトファイルとソースファイルとを第1データベース150から読み出して第2データベース160に書き込む(ステップ5´A)。制御プログラム編集部110は、ファイルバックアップ部120へのバックアップ要求後、ファイルバックアップ部120のコピーが完了する前に、コントローラ200へ書き込んだ制御プログラムの動作確認(オンラインモニタ)を行う。
After receiving the request signal, the
以上のように、本実施形態のプログラム作成装置では、システムプログラマが制御プログラムの読み出し、コントローラ200への書き込み、制御プログラムの動作確認の操作を行うのみで、自動的に該当の制御プログラムのバックアップ処理が行われる。このように該当の制御プログラムのバックアップ処理を、制御プログラムの書き込み、読み出し、および、動作確認の動作と非同期に行うことにより、バックアップ処理を行うための時間を別途必要とせずに操作を完了させることができる。
As described above, in the program creation apparatus according to the present embodiment, the system programmer automatically reads out the control program, writes it into the
すなわち、本実施形態に係るプログラム作成装置によれば、制御プログラムを自動的にバックアップすることによりプログラムの動作確認作業の際のシステムプログラマの負担を軽減するプログラム作成装置およびプログラム作成装置の駆動方法を提供することができる。 That is, according to the program creation device according to the present embodiment, a program creation device and a program creation device drive method that reduce the burden on the system programmer at the time of the operation check of the program by automatically backing up the control program. Can be provided.
次に、本発明の第2実施形態に係るプログラム作成装置について図面を参照して説明する。なお、以下の説明において上述の第1実施形態に係るプログラム作成装置と同様の構成については、同一の符号を付して説明を省略する。本実施形態に係るプログラム作成装置は、上述の第1実施形態に係るプログラム作成装置と同様の構成を備える。 Next, a program creation device according to a second embodiment of the present invention will be described with reference to the drawings. In the following description, the same components as those of the above-described program creation device according to the first embodiment are denoted by the same reference numerals and description thereof is omitted. The program creation device according to the present embodiment has the same configuration as the program creation device according to the first embodiment described above.
図5に、本実施形態に係るプログラム作成装置において、制御プログラムの一部の命令語を変更する動作を説明するための図を示す。制御プログラムの動作確認作業において、システムプログラマが制御プログラムの一部を変更すると、自動的に第2データベース160に格納された制御プログラムの一部を変更する手段をさらに備えている。
FIG. 5 is a diagram for explaining an operation for changing a part of the instruction word of the control program in the program creation device according to the present embodiment. In the operation check operation of the control program, the system programmer further includes means for automatically changing a part of the control program stored in the
制御プログラムの動作確認(オンラインモニタ)(ステップ1B)の際に、制御プログラム編集部110は、キー情報に対応する制御プログラムを第1データベース150から読み出し、試験、調整を行う。システムプログラマが試験、調整時に命令語の部分変更を行った場合、第1データベース150のキー情報に対応する制御プログラム内の、サブキー情報に対応する命令語情報を部分変更する(ステップ2B)。
At the time of operation check (online monitor) (step 1B) of the control program, the control
制御プログラム編集部110は、第1データベース150に格納された制御プログラムの部分変更が完了した後、ファイルバックアップ部120に、キー情報、サブキー情報、および命令語変更情報と共に、第2データベース160の同じ制御プログラムの同じ命令語に対する部分変更を要求する(ステップ3B)。
After the partial change of the control program stored in the
ファイルバックアップ部120は、要求を受け取った後、要求されたキー情報、サブキー情報、および命令語変更情報をキュー(FIFO)に一時記憶し(ステップ4B)、制御プログラム編集部110に制御を返す(ステップ5B)。
After receiving the request, the
ファイルバックアップ部120は、キューに一時記憶された一番古い変更情報から順番に、制御プログラム編集部110の動作確認処理とは非同期に、第2データベース160に格納された制御プログラムに対する部分変更を行う(ステップ6B)。
The
上記のように、本実施形態に係るプログラム作成装置では、システムプログラマへ、従来と同様な制御プログラムに対する試験、調整操作を行うのみで、自動的に該当の制御プログラムの部分変更をバックアップする。また、部分変更情報をキューに一時記憶することで、短い間隔で行われる試験、調整操作における変更にも対応することができる。 As described above, the program creation apparatus according to the present embodiment automatically backs up the partial change of the corresponding control program only by performing a test and adjustment operation on the control program similar to the conventional one to the system programmer. In addition, by temporarily storing partial change information in a queue, it is possible to cope with changes in tests and adjustment operations performed at short intervals.
すなわち、本実施形態に係るプログラム作成装置によれば、上述の第1実施形態にかかるプログラム作成装置と同様の効果を得ることができるとともに、システムプログラマの作業負担をさらに軽減するプログラム作成装置およびプログラム作成装置の駆動方法を提供することができる。 That is, according to the program creation device according to the present embodiment, the program creation device and the program that can obtain the same effect as the program creation device according to the first embodiment described above and further reduce the work load of the system programmer. A driving method of the creation apparatus can be provided.
次に、本発明の第3実施形態に係るプログラム作成装置について図面を参照して説明する。本実施形態に係るプログラム作成装置は、上述の第1実施形態に係るプログラム作成装置と同様の構成を備える。 Next, a program creation device according to a third embodiment of the present invention will be described with reference to the drawings. The program creation device according to the present embodiment has the same configuration as the program creation device according to the first embodiment described above.
図6に、制御プログラムの改造中に、コントローラ200に書き込まれている制御プログラムの動作確認を行う動作を説明するための図を示す。本実施形態に係るプログラム作成装置は、改造中の制御プログラムと改造前の制御プログラムとの表示を切り替える表示切替手段(図示せず)をさらに備えている。
FIG. 6 is a diagram for explaining an operation for confirming the operation of the control program written in the
本実施形態に係るプログラム作成装置では、制御プログラム起動画面において制御プログラム名やキー情報により制御プログラムを指定して制御プログラム編集画面を起動すると、制御プログラム編集部110は、指定された制御プログラムのキー情報に対応する制御プログラムを第1データベース150から読み出し、表示装置16に制御プログラム編集画面を表示する。
In the program creation device according to the present embodiment, when the control program editing screen is activated by designating the control program by the control program name or key information on the control program activation screen, the control
制御プログラム編集画面から、バックアップ表示に切り替えた場合、同一キー情報に対する制御プログラムを第2データベース160から読み出し、バックアップ用の制御プログラム編集画面に表示する。また、バックアップ用の制御プログラム編集画面から、同元の制御プログラム編集画面の表示に切り替えた場合、同一キー情報に対する制御プログラムを特定して、特定した制御プログラムを第1データベース150から読み出し、制御プログラム編集画面を表示する。
When switching to the backup display from the control program editing screen, the control program for the same key information is read from the
制御プログラム起動画面から、バックアップ表示に切り替えて、制御プログラム名やキー情報により制御プログラムを指定してバックアップ用の制御プログラム編集画面を起動した場合は、キー情報により対する制御プログラムを特定して、特定した制御プログラムを第2データベース160から読み出し、バックアップ用の制御プログラム編集画面を表示する。
When switching to the backup display from the control program start screen and specifying the control program with the control program name or key information and starting the control program edit screen for backup, specify the control program for the key information and specify The read control program is read from the
上記のように、本実施形態に係るプログラム作成装置では、システムプログラマが、改造中の制御プログラムを表示した状態から、コントローラ200に書き込まれている改造前の制御プログラムの表示に簡単に切り替えることができる。したがって、本実施形態に係るプログラム作成装置によれば、システムプログラマは、コントローラ200に書き込まれた改造前の制御プログラムの動作確認を容易に行うことができる。また、改造中の制御プログラムと改造前のバックアップされた制御プログラムとを、同一のキー情報により管理することによって、簡単に両者の対応付けをすることができる。
As described above, in the program creation device according to the present embodiment, the system programmer can easily switch from displaying the control program being modified to displaying the control program before modification written in the
すなわち、本実施形態に係るプログラム作成装置によれば、上述の第1実施形態に係るプログラム作成装置と同様の効果を得ることができるとともに、システムプログラマの作業負担をさらに軽減するプログラム作成装置およびプログラム作成装置の駆動方法を提供することができる。 That is, according to the program creation device according to the present embodiment, the program creation device and the program that can obtain the same effect as the program creation device according to the first embodiment described above and further reduce the work load of the system programmer. A driving method of the creation apparatus can be provided.
次に、本発明の第4実施形態に係るプログラム作成装置について、図面を参照して以下に説明する。本実施形態に係るプログラム作成装置は、上述の第1実施形態に係るプログラム作成装置と同様の構成を備える。 Next, a program creation device according to a fourth embodiment of the present invention will be described below with reference to the drawings. The program creation device according to the present embodiment has the same configuration as the program creation device according to the first embodiment described above.
図7に、改造中の制御プログラムとバックアップされた改造前の制御プログラムとを比較する動作を説明するための図を示す。ファイル比較部130は、改造中の制御プログラムとバックアップされた改造前の制御プログラムとを比較するように構成されている。
FIG. 7 is a diagram for explaining an operation for comparing the control program being modified with the control program backed up before modification. The
システムプログラマが、キーボード14やマウス12を操作してコンピュータに改造中の制御プログラムと改造前の制御プログラムとを比較する処理を要求すると、ファイル比較部130は、比較元データとして、キー情報に対する制御プログラムのソース情報およびオブジェクト情報を第1データベース150から読み出す。続いて、ファイル比較部130は、比較先データとして、同一のキー情報に対する制御プログラムのソース情報およびオブジェクト情報を第2データベース160から読み出す。
When the system programmer operates the
ファイル比較部130は、読み出した比較元データと比較先データとのソース情報およびオブジェクト情報の比較を行う。また、ファイル比較部130は、読み出した比較元データ、または比較先データのオブジェクト情報と、コントローラ200の標準処理部220から読み出したオブジェクト情報との比較を行う。
The
ファイル比較部130は、制御プログラムの比較をして、表示装置16の画面に比較結果を表示させる。ファイル比較部130は、例えば、改造前と改造後とで制御プログラムが異なる部分のみを表示させたり、異なる部分を他の部分とは異なる色や諧調で表示させたりすることにより、システムプログラマに比較結果を提供する。
The
上記のように、本実施形態に係るプログラム作成装置では、システムプログラマが、改造中の制御プログラムを指定するのみで、改造前の制御プログラムとの比較を簡単に行うことができるプログラム作成装置を提供することができる。また、改造中の制御プログラムのソース情報と、改造前の制御プログラムのソース情報とを比較することで、コントローラ200に書き込まれないコメント情報等を含めた、より詳細な比較を行うことができる。
As described above, the program creation device according to the present embodiment provides a program creation device that allows a system programmer to easily compare with a control program before modification simply by specifying the control program being modified. can do. Further, by comparing the source information of the control program being modified with the source information of the control program before the modification, a more detailed comparison including comment information that is not written in the
すなわち、本実施形態に係るプログラム作成装置によれば、上述の第1実施形態に係るプログラム作成装置と同様の効果を得ることができるとともに、システムプログラマの作業負担をさらに軽減するプログラム作成装置およびプログラム作成装置の駆動方法を提供することができる。 That is, according to the program creation device according to the present embodiment, the program creation device and the program that can obtain the same effect as the program creation device according to the first embodiment described above and further reduce the work load of the system programmer. A driving method of the creation apparatus can be provided.
次に、本発明の第5実施形態に係るプログラム作成装置について、図面を参照して以下に説明する。本実施形態に係るプログラム作成装置は、上述の第1実施形態に係るプログラム作成装置と同様の構成を備える。 Next, a program creation device according to a fifth embodiment of the present invention will be described below with reference to the drawings. The program creation device according to the present embodiment has the same configuration as the program creation device according to the first embodiment described above.
図8に、制御プログラムのバックアップ処理を行っている間、途中経過の不正なプログラム表示および変更を禁止する動作を説明するための図を示す。本実施形態に係るプログラム作成装置は、ファイル排他部140が、制御プログラムのバックアップ処理、および制御プログラムの変更処理が完了する前に、該当の制御プログラムの排他を行うように構成されている。ファイル排他部140は、排他する制御プログラムのキー情報を管理する管理テーブルを備えている。
FIG. 8 is a diagram for explaining an operation for prohibiting an illegal program display and change in the middle while the control program backup process is being performed. The program creation device according to the present embodiment is configured such that the
制御プログラム編集画面(X)においてシステムプログラマがキーボード14やマウス12を操作して、ファイルバックアップ部120にキー情報(A)に対応する制御プログラムのバックアップ処理を要求すると(ステップ1C)、ファイルバックアップ部120は、ファイル排他部140にキー情報(A)に対応する制御プログラムの排他処理を要求し(ステップ2C)、制御プログラム編集画面(X)からの要求に対し制御を応答する(ステップ3C)。この場合、ファイル排他部140は、キー情報(A)を管理テーブルに記録する。
When the system programmer operates the
また、ファイルバックアップ部120は、バックアップ処理が完了した場合、ファイル排他部140にキー情報(A)に対応する制御プログラムに対する排他の解除を要求する。この場合、ファイル排他部140は、要求されたキー情報(A)を管理テーブルから消去する。
Further, when the backup process is completed, the
ファイル排他部140の管理テーブルに、キー情報(A)が記録されている状態で、他の制御プログラム編集画面(Y)においてシステムプログラマがキーボード14やマウス12を操作して、同じキー情報(A)に対する制御プログラムを変更するために、ファイル排他部140にキー情報(A)の制御プログラムに対する排他を要求した場合は(ステップ4C)、ファイル排他部140は、制御プログラム編集画面(Y)からの要求に対して排他不可である応答を制御プログラム編集部110へ出力する(ステップ5C)。
While the key information (A) is recorded in the management table of the
また、バックアップ用の制御プログラム編集画面(Z)においてシステムプログラマがキーボード14やマウス12を操作して、同じキー情報(A)に対する制御プログラムを表示するために、ファイル排他部140にキー情報(A)の制御プログラムに対する排他を要求した場合は(ステップ6C)、ファイル排他部140は、制御プログラム編集画面(Z)からの要求に対して排他不可である応答を制御プログラム編集部110へ出力する(ステップ7C)。
Further, in order to display a control program for the same key information (A) by operating the
上記のように、本実施形態に係るプログラム作成装置では、バックアップ処理中にバックアップ元の制御プログラムの変更や表示を禁止することにより、第1データベース150に格納されたバックアップ元の制御プログラムと、第2データベース160に格納されたバックアップ先の制御プログラムとの同一性を保つことができる。また、第2データベース160に格納されたバックアップ先の制御プログラムの途中経過の不正な表示を禁止することができる。
As described above, in the program creation device according to the present embodiment, the backup source control program stored in the
すなわち、本実施形態に係るプログラム作成装置によれば、上述の第1実施形態に係るプログラム作成装置と同様の効果を得ることができるとともに、システムプログラマの作業負担をさらに軽減するプログラム作成装置およびプログラム作成装置の駆動方法を提供することができる。 That is, according to the program creation device according to the present embodiment, the program creation device and the program that can obtain the same effect as the program creation device according to the first embodiment described above and further reduce the work load of the system programmer. A driving method of the creation apparatus can be provided.
なお、本発明は上記実施形態そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。また、上記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、異なる実施形態にわたる構成要素を適宜組み合わせてもよい。 Note that the present invention is not limited to the above-described embodiment as it is, and can be embodied by modifying the constituent elements without departing from the scope of the invention in the implementation stage. In addition, various inventions can be formed by appropriately combining a plurality of components disclosed in the embodiment. For example, some components may be deleted from all the components shown in the embodiment. Furthermore, constituent elements over different embodiments may be appropriately combined.
12…マウス、14…キーボード、16…表示装置、100…コンピュータ、110…制御プログラム編集部、112…プログラムコンパイラ、114…プログラムロードクライアント部(通信部)、120…ファイルバックアップ部、130…ファイル比較部、140…ファイル排他部、150…第1データベース、160…第2データベース、200…コントローラ、300…ネットワーク。
DESCRIPTION OF
Claims (6)
前記制御プログラムのソースファイルをコンパイル処理してオブジェクトファイルに変換するコンパイラと、前記オブジェクトファイルを前記コントローラに送付する通信手段と、を備えた制御プログラム編集部と、
前記ソースファイルと前記オブジェクトファイルとを格納し、前記ソースファイルと前記オブジェクトファイルとを前記制御プログラム毎に設定されたキー情報により管理する第1データベースと、
前記コントローラに書き込まれた前記制御プログラムの前記オブジェクトファイルと、前記ソースファイルとを格納し、前記ソースファイルと前記オブジェクトファイルとを前記制御プログラム毎に設定されたキー情報により管理する第2データベースと、
前記制御プログラムの前記オブジェクトファイルと前記ソースファイルとを前記第2データベースに記録する前記ファイルバックアップ部と、
ユーザに前記コントローラに書き込まれた前記オブジェクトファイルの動作確認画面を提示する表示装置と、
ユーザによって操作され、操作信号を前記制御プログラム編集部へ出力する入力装置と、
を備え、
前記制御プログラム編集部は、前記コントローラに前記オブジェクトファイルの書き込み、および、前記表示装置に前記動作確認画面に提示を行い、前記オブジェクトファイルの書き込みと前記動作確認画面の提示とは非同期に、キー情報により対応するオブジェクトファイルとソースファイルとを前記第2データベースに記録するように前記ファイルバックアップ部に要求するように構成されている制御プログラム作成装置。 A program creation device for writing an object file of a control program to a controller via a network,
A control program editing unit comprising: a compiler that compiles a source file of the control program and converts it into an object file; and communication means that sends the object file to the controller;
A first database that stores the source file and the object file, and manages the source file and the object file by key information set for each control program;
A second database for storing the object file of the control program written in the controller and the source file, and managing the source file and the object file by key information set for each control program;
The file backup unit for recording the object file and the source file of the control program in the second database;
A display device for presenting an operation confirmation screen of the object file written in the controller to the user;
An input device that is operated by a user and outputs an operation signal to the control program editing unit;
With
The control program editing unit writes the object file to the controller and presents the operation confirmation screen to the display device, and the writing of the object file and the presentation of the operation confirmation screen are performed asynchronously with key information. A control program creation device configured to request the file backup unit to record the corresponding object file and source file in the second database.
ユーザが、前記入力装置を操作して前記制御プログラムの一部の命令語を変更したときに、前記制御プログラムのキー情報と変更した命令語のサブキー情報とを特定する手段と、前記第2データベースの特定した前記キー情報と前記サブキー情報とに対応する制御プログラムの命令語を部分変更する手段と、を備える請求項1記載の制御プログラム作成装置。 The first database and the second database are configured to manage control program information including the key information, program code, and program data in a hierarchical structure, and the program code and the program data are: Including subkey information set for each instruction word of the control program,
Means for specifying key information of the control program and subkey information of the changed instruction word when a user changes a part of the instruction word of the control program by operating the input device; and the second database The control program creation device according to claim 1, further comprising means for partially changing a command word of a control program corresponding to the specified key information and subkey information.
前記表示切替手段は、改造中の制御プログラムの前記キー情報に対応する、改造前の制御プログラムを特定する手段と、特定した改造前の制御プログラムを前記第2データベースから読み出す手段と、を備える請求項1記載の制御プログラム作成装置。 A display switching means for requesting the display device to switch between a display of the control program being modified by the user and a display of the control program before the modification stored in the second database;
The display switching means includes means for specifying a control program before modification corresponding to the key information of the control program being modified, and means for reading out the specified control program before modification from the second database. Item 2. A control program creation device according to Item 1.
前記制御プログラム情報、前記プログラムコード、および、前記プログラムデータの改造中のデータと、制御プログラム情報、前記プログラムコード、および、前記プログラムデータの改造前のデータとを読み出す手段と、前記改造中のデータと前記改造前のデータとを比較する手段と、前記改造中のデータあるいは前記改造前のデータと、前記コントローラに書き込まれた前記オブジェクトファイルと比較する手段と、を備えたファイル比較部をさらに備える請求項1記載の制御プログラム作成装置。 The first database and the second database are configured to manage control program information including the key information, a program code, and program data in a hierarchical structure,
Means for reading out the control program information, the program code, and data during modification of the program data, control program information, the program code, and data before modification of the program data; and data under modification And a file comparison unit comprising: means for comparing the data before remodeling, data being remodeled or data before remodeling, and means for comparing with the object file written in the controller The control program creation device according to claim 1.
前記ファイル排他部は、前記管理テーブルに含まれるキー情報に対応する制御プログラムの変更要求があった場合に、変更不可である応答を前記制御プログラム編集部へ出力するように構成された請求項1記載の制御プログラム作成装置。 A file exclusion unit including a management table for managing the key information when the control program information, the program code, and the program data are recorded in the second database;
The file exclusion unit is configured to output a response indicating that the file cannot be changed to the control program editing unit when there is a request to change the control program corresponding to the key information included in the management table. The control program creation device described.
前記オブジェクトファイルを第1データベースから読み出し、
前記オブジェクトファイルを前記コントローラに書き込む書き込みステップと、
前記制御プログラムの動作確認画面を表示装置に表示させる動作確認ステップと、
前記キー情報により前記オブジェクトファイルと、前記オブジェクトファイルに対応するソースファイルと特定し、前記第1データベースから前記オブジェクトファイルと前記ソースファイルとを読み出して前記第2データベースに記録させる、バックアップステップと、を備え、
前記書き込みステップおよび前記動作確認ステップと、前記バックアップステップとを非同期で行うプログラム作成装置の駆動方法。 A driving method of a program creation device comprising a first database and a second database for setting and managing key information for each control program and configured to write an object file of the control program to a controller via a network. And
Reading the object file from the first database;
A writing step of writing the object file to the controller;
An operation confirmation step of displaying an operation confirmation screen of the control program on a display device;
A backup step of identifying the object file by the key information and a source file corresponding to the object file, reading the object file and the source file from the first database, and recording them in the second database; Prepared,
A method for driving a program creation device, wherein the writing step, the operation checking step, and the backup step are performed asynchronously.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010098990A JP5481267B2 (en) | 2010-04-22 | 2010-04-22 | Control program creation device and control program creation device drive method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010098990A JP5481267B2 (en) | 2010-04-22 | 2010-04-22 | Control program creation device and control program creation device drive method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011227823A true JP2011227823A (en) | 2011-11-10 |
JP5481267B2 JP5481267B2 (en) | 2014-04-23 |
Family
ID=45043068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010098990A Active JP5481267B2 (en) | 2010-04-22 | 2010-04-22 | Control program creation device and control program creation device drive method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5481267B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016200872A (en) * | 2015-04-07 | 2016-12-01 | 株式会社東芝 | Control program creation device, control program debug method |
WO2023166820A1 (en) * | 2022-03-02 | 2023-09-07 | 株式会社 東芝 | Information processing system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07253876A (en) * | 1994-03-16 | 1995-10-03 | Toshiba Corp | Program generating device |
JP2001209413A (en) * | 2000-01-25 | 2001-08-03 | Yaskawa Electric Corp | Plc with automatic program transfer function and engineering equipment and its control method |
JP2003157104A (en) * | 2001-11-22 | 2003-05-30 | Fuji Electric Co Ltd | Programming device |
JP2005235110A (en) * | 2004-02-23 | 2005-09-02 | Ricoh Co Ltd | Electronic equipment and program for use in the same |
JP2008276381A (en) * | 2007-04-26 | 2008-11-13 | Toshiba Corp | Debug system for diagram of programmable controller, programming device therefor and program therefor |
-
2010
- 2010-04-22 JP JP2010098990A patent/JP5481267B2/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07253876A (en) * | 1994-03-16 | 1995-10-03 | Toshiba Corp | Program generating device |
JP2001209413A (en) * | 2000-01-25 | 2001-08-03 | Yaskawa Electric Corp | Plc with automatic program transfer function and engineering equipment and its control method |
JP2003157104A (en) * | 2001-11-22 | 2003-05-30 | Fuji Electric Co Ltd | Programming device |
JP2005235110A (en) * | 2004-02-23 | 2005-09-02 | Ricoh Co Ltd | Electronic equipment and program for use in the same |
JP2008276381A (en) * | 2007-04-26 | 2008-11-13 | Toshiba Corp | Debug system for diagram of programmable controller, programming device therefor and program therefor |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2016200872A (en) * | 2015-04-07 | 2016-12-01 | 株式会社東芝 | Control program creation device, control program debug method |
WO2023166820A1 (en) * | 2022-03-02 | 2023-09-07 | 株式会社 東芝 | Information processing system |
Also Published As
Publication number | Publication date |
---|---|
JP5481267B2 (en) | 2014-04-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4865634B2 (en) | Program editing support apparatus, computer program, program editing support method, and PLC system | |
US5940617A (en) | Debugger for controlling execution of software installed in object to be controlled on the basis of state transition model, debugging method thereof, record medium thereof, and method for correlating function specifications and code addresses | |
US8527254B2 (en) | Simulator engine development system and simulator engine development method | |
JP6442131B2 (en) | Control system and control device | |
WO2020039900A1 (en) | Information processing apparatus and program | |
JP5026925B2 (en) | Control program creation device and control program creation method | |
JP5481267B2 (en) | Control program creation device and control program creation device drive method | |
JP4702194B2 (en) | Program development support apparatus, program development support method, and program development support program | |
JP5425317B2 (en) | Motion SFC program parts creation device | |
JP6794668B2 (en) | Programming device | |
JP2014228990A (en) | Control program creation apparatus and control program creation method | |
JP6483507B2 (en) | Control program creating apparatus and control program debugging method | |
JP2000215038A (en) | Information management device and recording medium | |
JP5319643B2 (en) | Software product line development support apparatus and method | |
JP2009169628A (en) | Construction device, construction method and program for monitoring control system | |
JP2016126700A (en) | Program verification device, program verification method, and program verification program | |
JP2013137716A (en) | Macro expansion device and program | |
JP7231823B2 (en) | Program, information processing system and its control method | |
JP7323755B2 (en) | Information processing system, its control method and program | |
JP6355861B1 (en) | Program development support apparatus, program development support method, program development support program, and recording medium | |
JP2022080352A (en) | Test support device | |
JP4687117B2 (en) | IC tester | |
JPH0546377A (en) | Method and device for generating control program | |
JP2023145080A (en) | assembly inspection system | |
JP2006338477A (en) | Information processor and system development method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130116 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130930 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131029 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131205 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131212 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20131219 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131219 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20131226 |
|
TRDD | Decision of grant or rejection written | ||
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20140109 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20140116 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20140121 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140217 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5481267 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |