JPH0764614A - Program control device and method and program producing device - Google Patents

Program control device and method and program producing device

Info

Publication number
JPH0764614A
JPH0764614A JP15168193A JP15168193A JPH0764614A JP H0764614 A JPH0764614 A JP H0764614A JP 15168193 A JP15168193 A JP 15168193A JP 15168193 A JP15168193 A JP 15168193A JP H0764614 A JPH0764614 A JP H0764614A
Authority
JP
Japan
Prior art keywords
program
module
load module
plant controller
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.)
Pending
Application number
JP15168193A
Other languages
Japanese (ja)
Inventor
Masami Ito
正己 伊藤
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP15168193A priority Critical patent/JPH0764614A/en
Publication of JPH0764614A publication Critical patent/JPH0764614A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To automatically correct the operating plan stored in the corresponding program producing device when the load module of a plant controller is directly corrected by an exclusive tool with regard to a program control device which contains a program producing device and a program controller. CONSTITUTION:A program control device contains a plant controller 1 and a program producing device 6 which are connected to each other via a network 13. The controller 1 is provided with a changed information transmitting part 5 to send the contents of an execution program corrected by an exclusive tool 11 to the device 6. The device 6 is provided with an inverse conversion mechanism 10 to correct the operating plan stored in a module stacker 7 beased on the correction information received from the controller 1. In such a constitution, the correction of an orginal module is omitted when a load module is directly corrected.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はプラント制御の分野にお
いてそのプラントを制御するプラントコントローラのプ
ログラム管理装置および方法並びにプログラム作成装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program management device and method for a plant controller and a program creating device for controlling the plant in the field of plant control.

【0002】[0002]

【従来の技術】従来のプラント制御システムにおいて、
プログラム作成装置によってプラント制御仕様を表す運
転方案ドキュメントからロードモジュールが自動生成さ
れるようになる以前は、プラント制御プログラムはプラ
ントコントローラに対応した専用のツールによって作成
され、ローディングされていた。プラントを建設し稼働
状態に入るまでの間に行なう試運転、調整においてもこ
のプラントコントローラに直結した専用ツールによって
ロードモジュールをラダー図等の形態で表示させ、この
ツールを使ってプログラムを修正していた。
2. Description of the Related Art In a conventional plant control system,
Before the load module was automatically generated from the operation plan document representing the plant control specifications by the program creation device, the plant control program was created and loaded by a dedicated tool corresponding to the plant controller. Even during the trial run and adjustments performed before the plant was constructed and put into operation, the load module was displayed in the form of a ladder diagram, etc. by a dedicated tool directly connected to this plant controller, and the program was modified using this tool. .

【0003】プログラム作成装置から自動生成によって
ロードモジュールを作成するようになって、プログラム
作成時には専用ツールを必要としなくなった。しかし、
調整期間中においてはさまざまなプログラム修正が頻繁
に発生し、しかも迅速な修正が必要とされる。例をあげ
れば、試運転期間中は(建設途中のため)すべての条件
ができておらず、プログラム的には正しいが、仮に条件
を外して機械を動かしたいという事はしばしば発生す
る。この場合プログラム作成装置側でモジュールを修正
し、ロードモジュールに変換し、ダウンロードして機械
を動かす事もできないわけではない。しかしながら実際
にはそういう条件は実際ものを動かして初めてわかる事
が多く、その場で迅速に修正しなければならない。その
ため、試運転の段階では専用ツールを直結させロードモ
ジュールを直接変更することが行われる。
Since a load module is automatically created from a program creating apparatus, a dedicated tool is no longer needed when creating a program. But,
Various program modifications frequently occur during the adjustment period, and quick modifications are required. For example, during the commissioning period, all conditions are not established (because construction is in progress), and although the program is correct, it is often the case that you want to move the machine out of the conditions. In this case, it is not impossible to modify the module on the program creation device side, convert it into a load module, download it, and operate the machine. However, in reality, such conditions are often understood only by moving the actual ones, and it is necessary to quickly correct them on the spot. Therefore, in the trial run stage, a dedicated tool is directly connected to directly change the load module.

【0004】このため、試運転期間中、毎日試運転が終
了する毎に、その日にロードモジュールに対して直接行
った変更を、プログラム作成装置に入力し、ロードモジ
ュールを作り直し、再度ダウンロードしなければならな
かった。またロードモジュールを直接変更するためCR
Tでモニターしている運転方案と実際のロジックとの情
報が一致しないという状態が発生していた。
Therefore, during the trial run, every time the trial run is completed every day, the changes directly made to the load module on that day must be input to the program creating device to recreate the load module and download again. It was Also, because the load module is changed directly, CR
There was a situation where the information on the driving plan monitored by T and the actual logic did not match.

【0005】なお、上記従来技術に関連するものとして
は、例えば特開平2−277126号公報記載の技術が
ある。
As a technique related to the above-mentioned conventional technique, for example, there is a technique described in Japanese Patent Laid-Open No. 2-277126.

【0006】[0006]

【発明が解決しようという課題】プログラム作成装置に
よって運転方案から作成されたプログラムを実際にプラ
ントに適用し、運用する場合に問題となるのは、調整の
問題である。
The problem that arises when the program created from the operation plan by the program creating device is actually applied to the plant and operated is the problem of adjustment.

【0007】すなわち、プラントが実運転に入るまでに
は、試運転を行い実際に制御対象を動かしながらテスト
しなくてはならない。この段階ではプログラムの修正が
頻繁に行なわれる。例えば実際に運転してみて初めて表
面化する問題に対する変更や、建設途中で正規の状態で
はないために必要な条件信号が入ってこないため、条件
を強制的に成立させるための変更、細かいプログラムミ
スの修正等さまざまである。そしてたいていの場合、そ
の時点で迅速にプログラムを修正し対応しなければなら
ない。この変更をプログラム作成装置の運転方案ドキュ
メント上で行い、プログラム作成機能によりロードモジ
ュールを再度生成し、ダウンロードすることにより修正
することも可能であるが、これは以下の問題が有り実際
的でない。
That is, by the time the plant is put into actual operation, it is necessary to perform a test operation and actually move the controlled object to perform a test. At this stage, the program is frequently modified. For example, a change to the problem that surfaced for the first time after actually operating, or a necessary condition signal that is not in a normal state during construction, so a change to forcibly establish the condition or a small program error There are various modifications. And in most cases, the program must be quickly modified and dealt with at that point. It is also possible to make this change on the operation plan document of the program creation device, to regenerate the load module by the program creation function, and to correct it by downloading, but this is not practical because of the following problems.

【0008】1.ロジックの変更に対する時間の問題 プログラム作成装置は運転方案ドキュメントからロード
モジュールを生成するため、ドキュメントの解析、機械
語への変換を行なわねばならず処理に時間がかかり、調
整時に実際にライン動作させながら調整を行う事を考え
ると、現実的ではない。
1. Time problem for changing logic Since the program creation device generates a load module from the driving plan document, it takes time to process the document and convert it into machine language, and while actually performing line operation during adjustment. It's not realistic when it comes to making adjustments.

【0009】 3.プログラム修正に対する再スタートの問題 プログラム修正の度にダウンロードを実施すると、ダウ
ンロード(即ち、プラントコントローラ内のロードモジ
ュールを入れ替える)ために、プラントコントローラを
イニシャルからスタートさせねばならない。再スタート
した場合、プログラムは最初から再実行され、その時点
までの情報がリセットしてしまう。順次的に動くような
設備を試運転している場合だと、最初からもう一度動か
さなくてはならない。しかしながら専用ツールであれば
プログラムを一旦停止させ、プログラムを修正し、停止
した場所から再スタートさせる事が可能である。
3. Problem of Restart for Program Modification When a download is performed each time the program is modified, the plant controller must be started from the initial in order to download (ie, replace the load module in the plant controller). If you restart, the program will be restarted from the beginning, and the information up to that point will be reset. If you're commissioning equipment that moves sequentially, you'll have to start over again. However, if it is a dedicated tool, it is possible to temporarily stop the program, modify the program, and restart the program from the place where it stopped.

【0010】以上の点から試運転には専用ツールによる
プログラム修正は不可欠である。
From the above points, the program modification by the dedicated tool is indispensable for the trial operation.

【0011】しかし、プログラム作成装置によって作成
したロードモジュールを専用ツールにて直接修正した場
合以下の点が問題となる。運転方案は機能毎に整理され
たモジュールという形でプログラム作成装置に入力され
ているが、プログラム作成時はモジュールとロードモジ
ュールの関係(即ち、どのモジュールがロードモジュー
ル上のどのアドレスに配置されたかという情報)をプロ
グラム作成装置上で認識しているが、直接ロードモジュ
ールを変更した場合、この情報が崩れどのモジュールが
どのアドレスに配置されているのか認識できなくなりロ
ードモジュールを調べて元のモジュールを修正すること
が困難になる。
However, when the load module created by the program creating apparatus is directly modified by the dedicated tool, the following problems occur. The operation plan is input to the program creation device in the form of modules organized by function, but at the time of program creation, the relationship between modules and load modules (that is, which module is located at which address on the load module) Information) is recognized on the programming device, but when the load module is changed directly, this information collapses and it is not possible to recognize which module is located at which address and the load module is checked and the original module is corrected. Difficult to do.

【0012】本発明の目的はプラントコントローラ側で
専用ツールにて直接ロードモジュールに対して行った修
正を運転方案に自動的に反映させることにより、プログ
ラム修正作業を容易にするプログラム管理装置および方
法並びにプログラム作成装置を提供する事にある。
An object of the present invention is to provide a program management device and method for facilitating a program modification work by automatically reflecting a modification made to a load module directly by a dedicated tool on a plant controller side in an operation plan. Providing a program creation device.

【0013】[0013]

【課題を解決するための手段】上記の目的は、プラント
コントローラに専用ツールを用いて修正した内容を逐次
プログラム作成装置に送信する機能と、プログラム作成
装置のなかでロードモジュールの修正情報から運転方案
に修正を行なう機能を持たせる事により、ロードモジュ
ールから運転方案への逆変換を可能とすることにより達
成できる。
[Means for Solving the Problems] The above-described object is to have a function of transmitting contents corrected by a plant controller using a dedicated tool to a program creating device one by one, and an operation plan based on load module modification information in the program creating device. This can be achieved by allowing the load module to have the function of making corrections and enabling the reverse conversion from the load module to the driving plan.

【0014】[0014]

【作用】専用ツールはプラントコントローラの制御プロ
グラムの機能を使って、命令語の変更、挿入、削除等ロ
ードモジュールの書き換えを行う。プラントコントロー
ラの変更情報送信部は専用ツールによって入力されたプ
ログラム修正命令(どのアドレスの命令語がどのように
変更、追加、削除されたのかという情報)をネットワー
クを通してプログラム作成装置に送信する。プログラム
作成装置はロードモジュール変更情報をプラントコント
ローラから受信し、プログラム編集時の情報(どのモジ
ュールをどのアドレスに配置したかという情報)から変
更のあったモジュール名を割り出す。続いてモジュール
の描画情報をロードモジュールに変換した時の情報を使
ってそれがどのページのどの部分に対する変更か判定
す。変更や追加の場合は更にどのデバイスをどのアドレ
スに割り付けたかという情報を用いて変更情報に含まれ
るワークメモリーの信号名を検索する。そして同じく変
更情報から命令語に相当する描画シンボルを決定する。
The dedicated tool uses the function of the control program of the plant controller to rewrite the load module such as changing, inserting and deleting commands. The change information transmission unit of the plant controller transmits a program correction command (information about which command word at which address was changed, added, or deleted) input by the dedicated tool to the program creation device through the network. The program creation device receives the load module change information from the plant controller, and determines the changed module name from the information when editing the program (information indicating which module is located at which address). Then, the drawing information of the module is converted into the load module, and it is determined which part of which page is changed by using the information. In the case of change or addition, the signal name of the work memory included in the change information is searched for by using the information indicating which device is assigned to which address. Similarly, the drawing symbol corresponding to the command word is determined from the change information.

【0015】以上の情報(どのモジュールの、どの位置
(ページ、座標)に、どういう命令で、その対象とする
ワークメモリーはどういう信号名かという情報)をもと
に、通常モジュールをプログラム作成装置上のエディタ
で修正するのと同様に変更する。
On the basis of the above information (information on which position (page, coordinate) of which module, what command, what signal name the target work memory is), the normal module is set on the program creating device. Make the same changes as you would in the editor.

【0016】最後に、自動的に該当モジュールの編集操
作を行ないモードモジュールを更新する。
Finally, the edit operation of the corresponding module is automatically performed to update the mode module.

【0017】以上により専用ツールにて修正した結果を
自動的に運転方案に反映させることができる。
As described above, the result corrected by the dedicated tool can be automatically reflected in the driving plan.

【0018】[0018]

【実施例】以下、本発明の実施例を図面を用いて説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1は本発明の一実施例である、プログラ
ム管理装置の構成を示したものである。
FIG. 1 shows the configuration of a program management apparatus which is an embodiment of the present invention.

【0020】1はプラントコントローラであり、実際に
プラントに対して入出力を行いプラントを制御してい
る。プラントコントローラはネットワークに接続されて
おり、このネットワークを経由して、後述のプログラム
作成装置で作成したロードモジュールがプラントコント
ローラに送られ実行される(これをダウンロードと呼
ぶ)。2はプラントコントローラ内部のプログラムメモ
リーであり、プラントを制御するプログラム本体である
ロードモジュールはここに書き込まれて実行される。3
はデータメモリーで演算結果等が保存される。4はプラ
ントコントローラ全体を管理する管理プログラムであ
り、(1)ダウンロード時、プログラム作成装置からの
ロードモジュールを受信しプログラムメモリーに書き込
み、(2)専用ツールからのロードモジュール変更、追
加、削除命令に従ってロードモジュールの書き換えを実
行するという処理を行う。5は変更情報送信部であり専
用ツールによるプログラム修正情報はここからプログラ
ム作成装置6に送信される。
Reference numeral 1 is a plant controller, which actually controls the plant by inputting and outputting it. The plant controller is connected to a network, and via this network, a load module created by a program creating device described later is sent to the plant controller and executed (this is called download). Reference numeral 2 denotes a program memory inside the plant controller, and a load module, which is a program main body for controlling the plant, is written here and executed. Three
The data memory stores the calculation results. Reference numeral 4 is a management program for managing the entire plant controller. (1) Upon download, the load module from the program creation device is received and written in the program memory, and (2) according to the load module change, addition, or deletion instruction from the dedicated tool. Performs the process of rewriting the load module. Reference numeral 5 denotes a change information transmission unit, from which program correction information by a dedicated tool is transmitted to the program creation device 6.

【0021】プログラム作成装置6は、入力した運転方
案ドキュメントを解析し、プラントコントローラのロー
ドモジュールを自動生成する機能を持つ。運転方案はモ
ジュールというかたちでモジュールスタッカー7の内部
に記憶されていて、変換機能8によりロードモジュール
9に変換される。この内容については後述する。10は
逆変換部でプラントコントローラから送られてくるロー
ドモジュールの修正情報からモジュールスタッカー内の
モジュールを修正する。なお、プログラム作成装置はネ
ットワークに接続されており、外部とデータを送受信す
ることができる。
The program creation device 6 has a function of analyzing the input operation plan document and automatically generating a load module of the plant controller. The driving plan is stored in the module stacker 7 in the form of a module and converted into the load module 9 by the conversion function 8. The contents will be described later. An inverse conversion unit 10 corrects the module in the module stacker from the correction information of the load module sent from the plant controller. The program creation device is connected to the network and can send and receive data to and from the outside.

【0022】11は専用ツールでプラントコントローラ
とは独自のインターフェィスで直接接続され、ロードモ
ジュールの変更、表示、モニターをラダー図等の形で行
なうことができる。直接ロードモジュールを操作でき、
小規模の修正を即座に行なうには適している。また、ロ
ードモジュールの実行を制御でき、実行を一旦停止し、
プログラム修正後、止めた箇所から再実行させるという
ような操作も可能である(ダウンロードでは全プログラ
ムを書き換えてしまうため、このような操作はできな
い)。
Reference numeral 11 is a dedicated tool, which is directly connected to the plant controller through its own interface, so that the load module can be changed, displayed, and monitored in the form of a ladder diagram or the like. You can operate the load module directly,
Suitable for making small modifications on the fly. In addition, you can control the execution of the load module, stop the execution once,
After modifying the program, you can also re-execute it from the point where it stopped (downloading rewrites the entire program, so you cannot do this).

【0023】12はCRTディスプレイであり実際に画
面を表示する。このCRTにはプログラム作成装置に於
て作成された運転方案を表示しモニターすることが可能
である。
Reference numeral 12 is a CRT display which actually displays a screen. It is possible to display and monitor the driving plan created by the program creating device on the CRT.

【0024】13はネットワークでCRT、プラントコ
ントローラ、プログラム作成装置間でリンケージするた
めの伝送路である。実際には、(1)ダウンロード(プ
ログラム作成装置からプラントコントローラに対してロ
ードモジュールを送信する)、(2)専用ツールでのロ
ードモジュール変更情報をプログラム作成装置に伝送す
るのに使われる。
Reference numeral 13 is a transmission line for linking the CRT, the plant controller, and the program creating device in the network. Actually, it is used for (1) downloading (sending the load module from the program creating device to the plant controller) and (2) transmitting the load module change information in the dedicated tool to the program creating device.

【0025】図2はプログラム作成装置6の詳細を表現
したものである。運転方案はモジュール14という単位
で構成され、プログラム作成装置は各プラントコントロ
ーラ毎にモジュールスタッカー7を持ち、その中に制御
プログラムを実現するためのモジュール群が格納されて
いる。モジュール群はコンパイラ15によって運転方案
の絵の情報からアセンブラの命令語に変換される。この
時の変換情報(モジュールのどのページの、どの部分に
あるシンボルが、ロードモジュールのどのアドレスに割
り付いたか)という情報はコンパイル情報16と呼ぶ編
集情報として装置内に保存される。また運転方案で使わ
れている信号名称がデータメモリー上のどのアドレスに
割り付けたかというメモリー割付情報17も同時に作成
される。次に編集18によって実アドレスの割り付いた
ロードモジュール9に変換される。このときにはモジュ
ール単位でどのモジュールがロードモジュールのなかの
どの部分に配置されたかという情報(プログラムメモリ
ー上のアドレス)、MAP情報19が作成される。この
ロードモジュールはプログラム作成装置から、プラント
コントローラにダウンロードされる。
FIG. 2 shows details of the program creating device 6. The operating plan is composed of units called modules 14, and the program creation device has a module stacker 7 for each plant controller, and a module group for realizing the control program is stored therein. The module group is converted by the compiler 15 from the picture information of the driving plan into the instruction words of the assembler. Information on conversion information (which page, which part of the module, which symbol is assigned to which address of the load module) at this time is stored in the apparatus as edit information called compilation information 16. Further, memory allocation information 17 indicating which address on the data memory the signal name used in the driving plan is allocated is also created. Next, it is converted into the load module 9 to which the real address is assigned by the edit 18. At this time, information (address on the program memory) indicating which module is arranged in which part of the load module is prepared for each module, and MAP information 19 is created. This load module is downloaded from the program creating device to the plant controller.

【0026】20はCRTモニター情報作成処理であ
り、編集時、CRT上に運転方案を表示してモニターす
るため、モジュールからCRTモニター用情報21を作
成する。
Reference numeral 20 denotes a CRT monitor information creation process, which creates CRT monitor information 21 from the module in order to display and monitor the driving plan on the CRT during editing.

【0027】図2〜図7を用いてプログラム作成装置に
おける編集過程とその結果作成される各情報について説
明する。
The editing process in the program creating apparatus and each information created as a result will be described with reference to FIGS.

【0028】運転方案は機能毎にモジュール14という
単位で管理されており、それぞれ名称と略称を持ってい
る。各モジュールは複数ページで構成されている。図3
はあるモジュールの例でモジュール名は「速度指令パタ
ーン作成」、「略称SPREF」で、モジュールの1部
を表現したものである。運転方案の1ページは更に縦
横、x座標、y座標のマトリックスで管理されている。
例では座標x=4、y=3にある信号があり、座標x=
5、y=3ではその信号に信号名「SPREF」名称が
「速度パターン」というメモリーの内容をを加えると言
ったぐあいである。各個別のモジュールはこのように表
現されている。
The driving plan is managed in units of modules 14 for each function, and each has a name and an abbreviation. Each module consists of multiple pages. Figure 3
In the example of a certain module, the module names are “speed command pattern creation” and “abbreviated name SPREF”, and represent a part of the module. One page of the driving plan is further managed by a matrix of vertical and horizontal, x-coordinate and y-coordinate.
In the example, there is a signal at coordinates x = 4, y = 3, and coordinates x =
5, when y = 3, it means that the signal name "SPREF" is added to the content of the memory "speed pattern". Each individual module is represented in this way.

【0029】図2に戻ると、このような各プラントコン
トローラ毎のモジュール14はスタッカー7に格納され
ていて、このモジュールを座標毎に解析しコンパイルす
ることによりモジュール単位のロードモジュールが作成
される。この過程で運転方案の絵の情報からアセンブラ
の命令語に変換され、変換情報はコンパイル情報として
装置内に保存される。
Returning to FIG. 2, such a module 14 for each plant controller is stored in the stacker 7, and a load module for each module is created by analyzing and compiling this module for each coordinate. In this process, the picture information of the driving plan is converted into assembler command words, and the conversion information is stored in the device as compilation information.

【0030】図4はコンパイル情報の例を示したもの
で、図3で説明した部分はこのモジュール先頭からの相
対アドレス50、ADDはアセンブラに変換された命令
語、ワークメモリーがSPREFでモジュールのページ
は1、()内はそのページ内での座標を表している。
FIG. 4 shows an example of compile information. The part explained in FIG. 3 is a relative address 50 from the head of the module, ADD is an instruction word converted to assembler, work memory is SPREF, and the page of the module. Is 1, and the values in parentheses are the coordinates within the page.

【0031】運転方案で使われている信号名称がデータ
用ワークメモリー上のどのアドレスに割り付けたかとい
うメモリー割付情報も同時に作成される。
Memory allocation information indicating to which address on the data work memory the signal name used in the driving scheme is allocated is also created.

【0032】図5はメモリー割付情報の1部を示したも
ので先頭がデータメモリー上でアドレス1560番地に信号
名「SPREF」という信号が割り当てられ、その名称
が「速度パターン」だという事を示す。
FIG. 5 shows a part of the memory allocation information. The beginning shows that the signal name "SPREF" is assigned to address 1560 on the data memory and the name is "speed pattern". .

【0033】次に編集操作によって実アドレスの割りつ
いたロードモジュールに変換される。このときにはモジ
ュール単位でどのモジュールがロードモジュールのなか
のどの部分に配置(プログラムメモリー上のアドレス)
されたかという情報であるMAP情報が作成される。
Next, an edit operation is performed to convert the load module into a load module to which a real address is assigned. At this time, which module is allocated to which part of the load module in the module unit (address in program memory)
MAP information, which is information indicating whether or not it has been performed, is created.

【0034】図6はMAP情報の例でモジュールSPR
EFがプログラムメモリーのアドレス6200番地に割り付
けられた事を示す。
FIG. 6 shows an example of MAP information, which is a module SPR.
Indicates that EF was assigned to program memory address 6200.

【0035】このロードモジュールはプログラム作成装
置から、プラントコントローラにダウンロードされる。
また変換時にモニター用ファイルがモジュールから作成
されるので、修正された運転方案をCRTに表示してモ
ニタすることができる。
This load module is downloaded from the program creating device to the plant controller.
Further, since the monitor file is created from the module at the time of conversion, the corrected driving plan can be displayed on the CRT and monitored.

【0036】処理とデータの流れは以下のようになる。The flow of processing and data is as follows.

【0037】(1)専用ツールによるプログラム修正 専用ツールからプラントコントローラに対してロードモ
ジュールの変更命令が送られる。
(1) Program modification by a dedicated tool A command for changing the load module is sent from the dedicated tool to the plant controller.

【0038】プラントコントローラの制御プログラムは
プラントコントローラの状態をチェックし、書き換え条
件が満たされるならば、ロードモジュールの書き換えを
実行し、その結果を専用ツールに返す。
The control program of the plant controller checks the state of the plant controller and, if the rewriting condition is satisfied, rewrites the load module and returns the result to the dedicated tool.

【0039】専用コントローラでの変更は最小単位で行
なわれ、例えば「処理内容は変更で、プログラムメモリ
ー6250番地にあるデータメモリー1560の内容を加算する
命令をデータメモリー1578番地の内容を引く処理に変更
する」のような形で行なわれる。
The change in the dedicated controller is carried out in the minimum unit. For example, "the processing contents are changed, the instruction for adding the contents of the data memory 1560 at the program memory 6250 is changed to the process of subtracting the contents of the data memory 1578. It is performed in the form of "do".

【0040】(2)プラントコントローラの変換情報送
信部はこのロードモジュール変更結果をプログラム作成
装置に送信する。
(2) The conversion information transmitting unit of the plant controller transmits the load module change result to the program creating device.

【0041】(3)プログラム作成装置はこの情報を受
け、まずどのモジュールに対する修正かをそのアドレス
から決定する。この場合、アドレスが6250番地であるこ
とから図6のMAP情報を検索し、その変更がモジュー
ルSPREFに対して実行されたものであり、モジュー
ルの先頭から50バイトの位置の命令語に対する変更であ
る事を認識する。
(3) The program creation device receives this information and first determines which module is to be modified from its address. In this case, since the address is address 6250, the MAP information of FIG. 6 is searched and the change is executed for the module SPREF, which is the change for the command word at the position of 50 bytes from the head of the module. Recognize things.

【0042】(4)次に逆変換処理は図4のコンパイル
情報を用いて、モジュール内での変更箇所を検索し、モ
ジュール内でのページ数、x座標、y座標を決定する。
この場合であればモジュールSPREFのコンパイル情
報から先頭50バイト目の所をみてページ1、x座標が
5、y座標が3であることを見つける。
(4) Next, in the inverse conversion process, the compile information of FIG. 4 is used to search for a changed portion in the module, and the number of pages in the module, the x coordinate, and the y coordinate are determined.
If this is the case, look at the first 50 bytes from the compilation information of the module SPREF and find page 1, x coordinate
Find that the 5, y coordinate is 3.

【0043】(5)次に変更情報のデータメモリーアド
レスをチェックし、メモリー割付ファイルを調べて信号
名称を決定する。例では1580番地が「INVSPFB」
でありそれが「インバータ速度フィードバック」である
ことを探し出す。またこのアドレスが全く使われていな
いメモリーであった場合にはそのアドレスをメモリー割
付ファイルに新規登録を行い、仮の名称例えばSPRE
FWK1という名称で登録する。
(5) Next, the data memory address of the change information is checked, and the memory allocation file is checked to determine the signal name. In the example, 1580 is "INVSPFB".
And find that it is "inverter speed feedback". If this address is a memory that is not used at all, the address is newly registered in the memory allocation file and a temporary name such as SPRE
Register under the name FWK1.

【0044】(6)次にモジュールを呼び出し、該当ペ
ージ、該当座標のシンボルを書き換える。これによって
モジュールの変更は終了する。
(6) Next, the module is called to rewrite the symbol of the relevant page and the relevant coordinates. This completes the module modification.

【0045】例では図7に示すようにSPEEDREF
を加算していた部分をINVSPFBを減算する絵に変
更する。
In the example, as shown in FIG. 7, SPEEDREF
The part where was added is changed to a picture in which INVSPFB is subtracted.

【0046】(7)次に運転方案が修正されたので、C
RTモニター情報ファイルを変更し、このモジュールを
CRTにてモニターしたとき、専用ツールで直接ロード
モジュールが書き換た内容が反映されるようにする。
(7) Next, the driving plan was revised, so C
The RT monitor information file is changed so that when this module is monitored by a CRT, the contents rewritten by the load module directly with a dedicated tool are reflected.

【0047】(8)最後に、逆変換処理は編集操作を変
更のあったモジュールに対して行ない、ロードモジュー
ルを最新の状態に保つ。
(8) Finally, the inverse conversion process performs the editing operation on the changed module to keep the load module in the latest state.

【0048】以上は説明を簡単にするため単純な場合を
示したが、これが積分や1次遅れといった、命令であっ
た場合(モジュール上は1つの記号で表現されるが、ロ
ードモジュールに変換された場合数十ステップになる)
には、それが複数の命令からなる1つの処理である事を
判別する。この場合はその範囲をユーザー定義処理とい
うシンボルとして、モジュールを変更する。例えば1次
遅れを使ったが、それでは精度が足りず内部で2w演算
が必要になり専用ツールで処理内容を変更した場合、プ
ラントコントローラからは複数の変更情報が送信され
る。逆変換処理では変更された処理が何なのか判別でき
ない。そこでその処理をユーザー定義関数としてシンボ
ル変更を行なう(図8)。このような場合には変更した
人間が、「ユーザー定義関数1」を「高精度1次遅れ」
の様な名称に後で変更する事が必要である。または、別
の例ではその処理内容を展開したロジックの形にして表
現する。即ち、積分や1次遅れと言った処理は四則演算
で表現できるため、四則演算を使ったかたちで表現する
こともできる。
A simple case has been shown above for the sake of simplicity. However, if this is an instruction such as integration or first-order lag (indicated by a single symbol on the module, it is converted to a load module). If you do this, it will take dozens of steps
Determines that it is one process consisting of a plurality of instructions. In this case, the module is changed with the range as a symbol of user-defined processing. For example, the first-order delay is used, but if it is not accurate enough and 2w calculation is required internally and the processing content is changed by a dedicated tool, the plant controller transmits a plurality of pieces of change information. The inverse conversion process cannot determine what the changed process is. Therefore, the symbol is changed by using the processing as a user-defined function (FIG. 8). In such a case, the person who changed the "user-defined function 1" to "high-precision first-order delay"
It is necessary to change the name to something like this later. Alternatively, in another example, the processing content is expressed in the form of expanded logic. That is, since processing such as integration and first-order lag can be expressed by four arithmetic operations, they can also be expressed by using four arithmetic operations.

【0049】プログラム作成装置にてロードモジュール
作成する場合運転方案ドキュメントをプログラム作成装
置の上で作成(専用のエディタを使って入力)する。変
換は以上のような複数の過程を通して行われるため、多
くの処理を必要とする。更にプログラム作成装置に於て
はモジュールを単位として管理しているため1箇所ロジ
ック変更する場合にも1モジュール全体に対してもこの
ような経路を経ざるを得ない。
When a load module is created by the program creation device An operation plan document is created by the program creation device (input using a dedicated editor). Since the conversion is performed through the multiple processes as described above, it requires a lot of processing. Further, in the program creating apparatus, modules are managed as a unit, so that even if the logic is changed at one place, such a path must be taken for the whole module.

【0050】実際の調整の現場においては、如何に早
く、確実に調整を行い、プラントを短期間で立ち上げる
かが問題である。旧プラントのリプレース改造などの場
合は特に、いかにライン停止期間を短くして、生産ライ
ンを立ち上げるかが重要なファクターでありプログラム
の作成が停止期間の前に十分な時間をかけて実行できる
のに対して、試運転は限られた時間内にしかも実際のハ
ードウエアを動かして実行しなくてはならない。したが
ってこの試運転をいかに効率よく行なうかということは
プログラム作成にもまして重要な事である。以上述べた
手段により、専用ツールを使ってロードモジュールを変
更した場合でも元となるモジュールは常に訂正され全体
として整合性が維持され、後からモジュールを再修正す
るといった必要は生じない。
At the actual site of adjustment, the problem is how quickly and surely the adjustment is performed and the plant is started in a short period of time. Especially in the case of replacement remodeling of the old plant, how to shorten the line stop period and start up the production line is an important factor, and the program creation can be executed with sufficient time before the stop period. On the other hand, the trial run must be executed within a limited time and by moving the actual hardware. Therefore, how efficiently this test run is more important than program creation. By the means described above, even when the load module is changed using the dedicated tool, the original module is always corrected and the consistency as a whole is maintained, and it is not necessary to re-correct the module later.

【0051】[0051]

【本発明の効果】本発明によれば、ロードモジュールを
直接修正した場合に、元となるモジュールやモニター情
報が自動的に修正されるのでモジュール修正が不要であ
り、またロードモジュールと運転方案ドキュメントの整
合性が常に維持される。
According to the present invention, when the load module is directly corrected, the original module and the monitor information are automatically corrected, so that the module need not be corrected, and the load module and the operation plan document are not required. The integrity of is always maintained.

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

【図1】本発明の1実施例の全体構成図。FIG. 1 is an overall configuration diagram of an embodiment of the present invention.

【図2】プログラム作成装置の処理内容説明図。FIG. 2 is an explanatory diagram of processing contents of the program creation device.

【図3】モジュールの説明図。FIG. 3 is an explanatory diagram of a module.

【図4】コンパイル情報の説明図。FIG. 4 is an explanatory diagram of compilation information.

【図5】メモリー割付情報の説明図。FIG. 5 is an explanatory diagram of memory allocation information.

【図6】MAP情報の説明図。FIG. 6 is an explanatory diagram of MAP information.

【図7】逆変換の1例。FIG. 7 shows an example of inverse transformation.

【図8】逆変換の別の例。FIG. 8 shows another example of inverse transformation.

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

1プラントコントローラ 2プログラムメモリー 3データメモリー 4管理プログラム 5変換情報送信部 6プログラム作成装置 7モジュールスタッカー 8変換機構 9ロードモジュール 10逆変換機構 11専用ツール 12運転方案モニター用CRT 13ネットワーク 14モジュール 15コンパイラ 16コンパイル情報 17メモリー割付情報 18編集処理 19MAP情報 20モニター情報作成処理 21モニター情報 1 Plant Controller 2 Program Memory 3 Data Memory 4 Management Program 5 Conversion Information Transmission Unit 6 Program Creation Device 7 Module Stacker 8 Conversion Mechanism 9 Load Module 10 Inverse Conversion Mechanism 11 Dedicated Tool 12 Operating Plan Monitor CRT 13 Network 14 Module 15 Compiler 16 Compile information 17 Memory allocation information 18 Editing process 19 MAP information 20 Monitor information creating process 21 Monitor information

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】運転方案を記憶するモジュールスタッカー
とそれをロードモジュールに変換する機構とその出力で
あるロードモジュールを記憶しているプログラム作成装
置と、 ロードモジュールをストアするプログラムメモ
リーとデータメモリーと全体を管理する管理プログラム
を備えるプラントコントローラーと、 前記プラントコントローラの実行プログラム(ロードモ
ジュール)を直接操作する専用ツールと、 各装置間でデータを受け渡しするネットワークとを有す
るプログラム管理装置において、 プラントコントローラが専用ツールによる修正情報をプ
ログラム作成装置に送信する手段を備え、 プログラム作成装置が前記修正情報に基づいて運転方案
を修正する逆変換機構とを備えたことを特徴とするプロ
グラム管理装置。
1. A module stacker for storing a driving plan, a mechanism for converting the module into a load module, a program creating device for storing the output load module, a program memory for storing the load module, and a data memory as a whole. In a program management device that has a plant controller that has a management program that manages, a dedicated tool that directly operates the execution program (load module) of the plant controller, and a network that transfers data between each device, the plant controller is a dedicated A program management device comprising means for transmitting correction information by a tool to a program creation device, and the program creation device comprising an inverse conversion mechanism for modifying a driving plan based on the correction information.
【請求項2】運転方案を記憶するモジュールスタッカー
とそれをロードモジュールに変換する機構とその出力で
あるロードモジュールを記憶しているプログラム作成装
置と、 ロードモジュールをストアするプログラムメモ
リーとデータメモリーと全体を管理する管理プログラム
を備えるプラントコントローラーと、 前記プラントコントローラの実行プログラム(ロードモ
ジュール)を直接操作する専用ツールと、 運転方案モニタ用のCRTと、 各装置間でデータを受け渡しするネットワークとを有す
るプログラム管理装置において、 プラントコントローラが専用ツールによる修正情報をプ
ログラム作成装置に送信する手段を備え、 プログラム作成装置が前記修正情報に基づいて前記モジ
ュールスタッカーに記憶される運転方案を修正する逆変
換機構と、該モジュールスタッカーに記憶される運転方
案を前記CRTに表示するための手段を備えたことを特
徴とするプログラム管理装置。
2. A module stacker for storing a driving plan, a mechanism for converting the same into a load module, a program creating device for storing a load module as its output, a program memory for storing the load module and a data memory as a whole. A program having a plant controller having a management program for managing the above, a dedicated tool for directly operating the execution program (load module) of the plant controller, a CRT for operating plan monitoring, and a network for exchanging data between devices In the management device, the plant controller includes means for transmitting modification information by a dedicated tool to the program creation device, and the program creation device modifies the operation plan stored in the module stacker based on the modification information. A conversion mechanism, the program management apparatus, characterized in that the operating scheme stored in the module stacker comprising means for displaying on the CRT.
【請求項3】運転方案を記憶するモジュールスタッカー
とそれをロードモジュールに変換する機構とその出力で
あるロードモジュールとを記憶しているプログラム作成
装置において、 ネットワークを介してプログラム作成装置と接続される
プラントコントローラより送信される、該プラントコン
トローラの実行プログラムの修正情報に基づいて、運転
方案を修正する逆変換機構を備えたことを特徴とするプ
ログラム作成装置。
3. A program creating apparatus, which stores a module stacker for storing a driving plan, a mechanism for converting the module into a load module, and a load module as an output thereof, which is connected to the program creating apparatus via a network. A program creation device comprising an inverse conversion mechanism for modifying an operation plan based on modification information of an execution program of the plant controller transmitted from the plant controller.
【請求項4】プログラム作成装置及びネットワークを介
して該プログラム作成装置と接続されるプラントコント
ローラにおけるプログラム管理方法であって、 プラントのハードウェアを動かし、その際の動作状態に
基づいてプラントコントローラの実行プログラムを専用
ツールにより直接修正し、修正情報をプログラム作成装
置に送信し、送信された修正情報に基づいてプログラム
作成装置が記憶する運転方案を修正する逆変換機構によ
り、前記修正内容に対応する運転方案を修正することを
特徴とするプログラム管理方法。
4. A program managing method in a plant controller connected to the program creating apparatus and the program creating apparatus via a network, wherein the plant hardware is operated, and the plant controller is executed based on an operating state at that time. The program corresponding to the modification contents is corrected by the inverse conversion mechanism that directly modifies the program, sends the modification information to the program creation device, and modifies the operation plan stored in the program creation device based on the sent modification information. A program management method characterized by modifying a plan.
JP15168193A 1993-06-23 1993-06-23 Program control device and method and program producing device Pending JPH0764614A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15168193A JPH0764614A (en) 1993-06-23 1993-06-23 Program control device and method and program producing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15168193A JPH0764614A (en) 1993-06-23 1993-06-23 Program control device and method and program producing device

Publications (1)

Publication Number Publication Date
JPH0764614A true JPH0764614A (en) 1995-03-10

Family

ID=15523936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15168193A Pending JPH0764614A (en) 1993-06-23 1993-06-23 Program control device and method and program producing device

Country Status (1)

Country Link
JP (1) JPH0764614A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6305667B1 (en) * 2017-05-22 2018-04-04 三菱電機株式会社 Control device and editing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6305667B1 (en) * 2017-05-22 2018-04-04 三菱電機株式会社 Control device and editing device
WO2018216083A1 (en) * 2017-05-22 2018-11-29 三菱電機株式会社 Control device and editing device

Similar Documents

Publication Publication Date Title
US5483440A (en) Remote control apparatus and control method thereof
JP2008282362A (en) Program editing support device, computer program, program editing support method, and plc system
KR101700553B1 (en) System development device, method, and program
US20070083285A1 (en) Simulation apparatus
EP1775660A1 (en) Mutual access method of data and mutual access system of data
US20220326673A1 (en) Support device and storage medium
EP3734379A1 (en) Method and system for generating control programs in a cloud computing environment
JPH0764614A (en) Program control device and method and program producing device
JP3297844B2 (en) Download system and computer-readable recording medium recording download program
JP5374405B2 (en) Model debugging apparatus and model debugging method
JP4786164B2 (en) Plant monitoring and control system
JP2009282755A (en) Simulation apparatus
JP2008165324A (en) Program creation support device
CN116126366B (en) Chip input/output interface configuration method, device, medium and electronic equipment
JP3464417B2 (en) Test display method of screen data for control device
JPH11194814A (en) Plant simulating device
JPH05324304A (en) Method and device for correcting control program
JP3327363B2 (en) Method and apparatus for creating simulation program
JP2023138113A (en) Information processing device and information processing system
JP2003223204A (en) Programming method of programmable controller, system thereof and recording medium thereof
JPH05241813A (en) Automatic program addition correction system
JP2533372B2 (en) Control program creation method
JPH06238580A (en) Formation of operation program for robot
JPH05250011A (en) Inverse compile method for programmable controller
JPH08278935A (en) Programmable controller