JPH05324304A - Method and device for correcting control program - Google Patents

Method and device for correcting control program

Info

Publication number
JPH05324304A
JPH05324304A JP15573292A JP15573292A JPH05324304A JP H05324304 A JPH05324304 A JP H05324304A JP 15573292 A JP15573292 A JP 15573292A JP 15573292 A JP15573292 A JP 15573292A JP H05324304 A JPH05324304 A JP H05324304A
Authority
JP
Japan
Prior art keywords
plant
control
program
crt
constant
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
JP15573292A
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 JP15573292A priority Critical patent/JPH05324304A/en
Publication of JPH05324304A publication Critical patent/JPH05324304A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently perform adjustment for plant control by displaying an operation bill document inputted to a program generator on a CRT, and quickly and simply changing a control constant required for the plant control. CONSTITUTION:In a control system comprised of the program generator 8, the CRT 1 which monitors a plant, a plant controller 4, and a network 9 which links them, a function to display an operation bill and to designate the control constant to be changed on the operation bill and to input the control bill newly is attached on the CRT 1, and the one to generate the control constant shown on the operation bill and index information in accordance with a load module simultaneously when the program is generated and to transfer them to the plant controller 4 when a down load operation is performed on the program generator 8, and the one to fetch a preset value from the CRT 1 and to directly reload a load module by using the index information received in the down load operation and to change the constant on the plant controller 4.

Description

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

【0001】[0001]

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

【0002】[0002]

【従来の技術】従来のプラント制御システムにおいて、
プログラム作成装置によって運転法案ドキュメントから
ロードモジュールが自動生成されるようになる以前は、
プラント制御プログラムは、プラントコントローラに対
応した専用のツールによって作成され、ローディングさ
れていた。プラントを建設し、稼働状態に入るまでの間
に行う試運転、調整においても、このプラントコントロ
ーラに直結した専用ツールによってロードモジュールを
ラダー図等の形態で表示させ、このツールを使って変更
箇所を見つけ、修正していた。その後、プログラム作成
装置から自動生成によってロードモジュールを作成する
ようになり、この場合は、運転法案のかたちでモニター
することができても、制御定数は、ロードモジュールの
中に埋め込まれており、制御定数の変更にあたっては専
用ツールに頼らざるを得なかった。そして、専用ツール
に表示されるのは、運転法案とはかけ離れたラダー図等
で表現されるため、運転法案とロードモジュールの対応
付けが困難であった。これを回避する方法として、よく
変える制御定数について、CRT上に定数変更用の画面
を準備し、これから変更する方法がある。この方法によ
れば、アプリケーション毎に(サイトが変わる度に)専
用のCRT画面を作成する必要があり、また、制御ロジ
ックの変更(例えば、制御方法が変更になって、制御定
数の追加、削除)が発生した場合、それに応じてこのC
RT画面をも修正しなければならないという問題があっ
た。
2. Description of the Related Art In a conventional plant control system,
Before the program generator automatically generated the load module from the driving bill document,
The plant control program has been created and loaded by a dedicated tool corresponding to the plant controller. Even during the trial run and adjustments that are carried out before the plant is built and the plant is in operation, the load module is displayed in the form of a ladder diagram using a dedicated tool that is directly connected to this plant controller, and this tool is used to find changes. , It was fixed. After that, a load module is automatically created from the program creation device, and in this case, even if it can be monitored in the form of an operating bill, the control constants are embedded in the load module and When changing the constants, I had no choice but to rely on a dedicated tool. Further, what is displayed on the dedicated tool is represented by a ladder diagram or the like that is far from the driving bill, so that it is difficult to associate the driving bill with the load module. As a method of avoiding this, there is a method of preparing a screen for changing the constant on the CRT and changing the screen for the control constant that is frequently changed. According to this method, it is necessary to create a dedicated CRT screen for each application (every time the site changes), and the control logic is changed (for example, the control method is changed, and control constants are added or deleted). ) Occurs, this C
There was a problem that the RT screen also had to be corrected.

【0003】[0003]

【発明が解決しようという課題】プログラム作成装置に
よって運転法案から作成されたプログラムを実際にプラ
ントに適用し、運用する場合に問題となるのは、調整の
問題である。即ち、プラントの状態は、プログラム作成
装置のモニター機能により、CRTにおいて運転法案の
形態でモニターできるため、問題はない。しかしなが
ら、プラントの実運転に入るまでには、試運転を行い、
調整を実施する。試運転では、実際に制御対象を動かし
ながら、制御定数を変更し、調整しなくてはならない。
例えば、鉄鋼プラントの場合であれば、実際に圧延対象
となる鋼材を圧延し、ゲインや時定数を調整する。この
変更をプログラム作成装置の運転法案ドキュメント上で
行ない、プログラム作成機能によりロードモジュールを
再度生成し、ダウンロードすることにより、定数を変え
ることも可能であるが、これは、以下の理由により実際
的でない。 (1)定数の変更に対する時間の問題 プログラム作成装置は、運転法案ドキュメントからロー
ドモジュールを生成するため、ドキュメントの解析、機
械語への変換を行わねばならず、処理に時間がかかる。
調整時に実際にライン動作させながら調整を行うことを
考えると、実運用に耐えない。 (2)定数変更に伴うライン停止が困難 定数変更の度にダウンロードを実施すると、ダウンロー
ド(即ち、プラントコントローラ内のロードモジュール
を入れ替える)ために、プラントコントローラのCPU
を一旦停止させねばならない。これは、その度にプラン
トのラインを停止させることになり、調整効率が著しく
低下する。調整の種類によっては不可能な場合もある。 (3)定数変更の使い勝手の問題 プログラム作成装置から修正するとなると、プラントを
監視しているCRTと同じ箇所にプログラム作成装置を
並べて設置し、調整時は2つの装置に対して操作しなけ
ればならない。このため、定数変更の能率が著しく阻害
される。本発明の目的は、上述した事情に鑑み、プログ
ラム作成時にプログラム作成装置に入力した運転法案ド
キュメントを表示し、プラント制御に必要な制御定数を
迅速かつ簡便に変更するに好適な制御プログラム修正方
法および装置を提供することにある。
The problem that arises when the program created from the operation bill by the program creating device is actually applied to the plant and operated is the problem of adjustment. That is, the condition of the plant can be monitored in the form of an operating bill on the CRT by the monitor function of the program creation device, and therefore there is no problem. However, by the time the actual operation of the plant begins
Make adjustments. In the trial run, the control constant must be changed and adjusted while actually moving the controlled object.
For example, in the case of a steel plant, the steel material to be rolled is actually rolled and the gain and time constant are adjusted. It is possible to make this change on the operation plan document of the program creation device, regenerate the load module by the program creation function, and download it to change the constants, but this is not practical for the following reasons. .. (1) Time Problem for Changing Constants Since the program creation device generates the load module from the driving bill document, it has to analyze the document and convert it into a machine language, which takes time to process.
Considering that adjustment is performed while actually operating the line during adjustment, it cannot withstand actual operation. (2) It is difficult to stop the line due to the constant change. If the download is performed each time the constant is changed, the CPU of the plant controller will be downloaded (that is, the load module in the plant controller will be replaced).
Must be stopped once. This causes the plant line to be stopped each time, and the adjustment efficiency is significantly reduced. It may not be possible depending on the type of adjustment. (3) Usability problem of changing constants If the program creation device is modified, the program creation devices must be installed side by side at the same location as the CRT that monitors the plant, and two devices must be operated during adjustment. .. Therefore, the efficiency of changing the constant is significantly hindered. In view of the above-mentioned circumstances, an object of the present invention is to display a driving plan document input to a program creating device at the time of creating a program, and a control program correction method suitable for quickly and simply changing a control constant necessary for plant control, and To provide a device.

【0004】[0004]

【課題を解決するための手段】上記目的は、プログラム
作成装置と、プラントをモニターする操業監視装置(C
RT等の表示手段を含む。以下、CRTに代表させて説
明する)と、プラントをコントロールするプラントコン
トローラと、これらをリンケージするネットワークから
なる制御システムおいて、この操業監視用CRTには、
運転法案を表示し、プラントの状態をモニターしなが
ら、運転法案上の変更すべき制御定数を指定すると共
に、CRTに付属したキーボードより制御定数を入力
し、相手先を指定してネットワーク上に送信する機能を
持たせ、また、プログラム作成装置には、プログラム作
成時に、運転法案上にあらわれる制御定数とロードモジ
ュールの対応インデックス情報を同時に作成し、これを
ダウンロード時にプラントコントローラに転送する機能
を持たせ、また、プラントコントローラには、CRTか
らの設定値の取り込み、ダウンロード時に受信した運転
法案上の制御定数とロードモジュールとの対応を用いて
直接ロードモジュールを書き換え、定数の変更をほとん
ど一瞬に行う機能を持たせることによって、達成され
る。
SUMMARY OF THE INVENTION The above-mentioned object is to provide a program creating device and an operation monitoring device (C) for monitoring a plant.
It includes display means such as RT. (Hereinafter, a CRT will be described as a representative), a plant controller that controls a plant, and a control system that includes a network that links these plants.
While displaying the operating bill and monitoring the plant status, specify the control constants to be changed in the operating bill, enter the control constants from the keyboard attached to the CRT, specify the other party and send it to the network. In addition, the program creation device has the function of simultaneously creating the control constants appearing in the operating bill and the corresponding index information of the load module when creating the program and transferring this to the plant controller when downloading. Also, the plant controller takes in the set values from the CRT, directly rewrites the load module by using the correspondence between the control constants in the operation plan received at the time of download and the load module, and changes the constant almost instantaneously. It is achieved by having.

【0005】[0005]

【作用】CRTは、画面上に運転法案を表示し、オペレ
ータがプラントの状態をモニターすると同時に、オペレ
ータの入力を受け付け、制御定数が指定(例えば、画面
上で定数のあるところを指でタッチする)されると、制
御定数入力モードとなり、変更値を読み取り、プラント
コントローラに変更要求とその値を送信する。プラント
コントローラでは、ダウンロード時、プログラム作成装
置から受信した運転法案上の制御定数とロードモジュー
ルの対応データによって、制御プログラムのアイドルタ
イムを検出したとき、制御定数の変更を行う。その結果
は、要求元のCRT表示上に反映すると共に、プログラ
ム作成装置内のロードモジュールにも反映する。これに
よって、CRT上から運転法案をモニターしながら、プ
ラントの制御定数を即座にかつ簡便に変更することが可
能となり、プラント制御の調整の効率化が図れる。
In the CRT, the operating bill is displayed on the screen, the operator monitors the state of the plant, and at the same time, the operator's input is accepted and the control constant is designated (for example, a finger touches a position where the constant is present on the screen). ), The control constant input mode is entered, the changed value is read, and the change request and its value are sent to the plant controller. At the time of downloading, the plant controller changes the control constant when the idle time of the control program is detected based on the correspondence data between the load module and the control constant in the operation plan received from the program creating device. The result is reflected on the CRT display of the request source and also on the load module in the program creating apparatus. As a result, it becomes possible to change the plant control constants immediately and easily while monitoring the operation plan from the CRT, and the efficiency of plant control adjustment can be improved.

【0006】[0006]

【実施例】以下、本発明の実施例を説明する。図1は、
本発明の実施例の全体構成を示す。図1において、1は
実際に画面を表示するCRTディスプレィ、2はCRT
ディスプレィ1から設定値を入力したり、モニターする
運転法案を指定するキーボード、3はキーボード2、C
RTディスプレイ1とネットワーク9間の入出力を管理
するCRTコントローラである。以後、CRTディスプ
レィ1、キーボード2、CRTコントローラ3を総称し
てCRT0と呼ぶ。オペレータは、このCRT0からプ
ラント(図示せず)を監視し、プラントに対して操作を
行う。また、このCRT0は、プログラム作成装置8
(後述)において作成されたドキュメントを表示し、モ
ニターすることができる機能を有する。また、4は実際
にプラントを制御するプラントコントローラであり、同
図では、その内部に本発明に関係するソフトウェア上の
構成部分だけを示している。5はプラント制御プログラ
ム本体であるロードモジュール、6はダウンロード時、
プログラム作成装置8からのロードモジュールや管理デ
ータを受信したり、また、定数変更時要求の受信、定数
の書き換え、結果の送信を行う管理プログラム、7は運
転法案上の定数とロードモジュールの対応データ(以
下、インデックス情報と呼ぶ。)である。また、8はプ
ログラム作成装置であり、キーボード10、表示するた
めのディスプレイ11、処理装置12、カスタマイズモ
ジュールスタッカー13から構成される。プログラム作
成装置8は、キーボード10、ディスプレイ11から入
力した運転法案ドキュメントを解析し、プラントコント
ローラ4のロードモジュール14を作成する機能を持
つ。ここで、運転法案は、プラント全体の処理機能を表
現したものである。プラントは、通常、複数のプラント
コントローラ4により運転されるので、運転法案は、プ
ラントコントローラ4単位にわかれ、それぞれは特定の
機能を実現するモジュールの集合である。このモジュー
ル群がカスタマイズモジュールスタッカー13に格納さ
れており、処理装置12は、カスタマイズモジュールス
タッカー13の内容からプラントを制御するためのロー
ドモジュール14とモニター情報15を作成する。この
ロードモジュール14は、プログラム作成装置8からプ
ラントコントローラ4にダウンロードされる。また、9
はネットワークであり、以上のCRT0、プラントコン
トローラ4、プログラム作成装置8をリンケージするた
めの伝送路である。実際には(1)プラントコントロー
ラ4間の制御情報をリンケージし、(2)CRT0から
の操作指令を各プラントコントローラ4に伝送し、
(3)プラントコントローラ4からプラントに関する情
報をCRT0に伝送し、(4)プログラム作成装置8に
入力した運転法案をCRT0に伝送する。これにより、
プラントの状態をモニターすることが可能である。ここ
で、上述したように、プラントを動かすロードモジュー
ル14は、プログラム作成装置8において作成される。
プラントの運転は、プロクラム作成装置8において作成
したロードモジュール14をプラントコントローラ4に
ダウンロードし、実行することにより、開始され、以
降、プラントは、プラントコントローラ4とCRT0と
ネットワーク9により運転される。一方、オペレータ
は、CRTディスプレィ1によりプラントを監視し、こ
のCRTディスプレィ1を通してプラントの状態を判断
し、必要に応じてCRT0のキーボード2等を使って運
転モードの切り替えや設定変更を行なう。オペレータの
行なった操作は、ネットワーク9を通してプラントコン
トローラ4に伝わり、プラントコントローラ4がモード
切り替えや設定変更を行なう。なお、運転中のプラント
ではプログラム作成装置8は運転に関係しない。
EXAMPLES Examples of the present invention will be described below. Figure 1
1 shows an overall configuration of an embodiment of the present invention. In FIG. 1, 1 is a CRT display for actually displaying the screen, and 2 is a CRT.
A keyboard for inputting set values from the display 1 and designating a driving bill to be monitored, 3 is a keyboard 2, C
A CRT controller that manages input / output between the RT display 1 and the network 9. Hereinafter, the CRT display 1, the keyboard 2, and the CRT controller 3 are collectively referred to as CRT0. The operator monitors the plant (not shown) from this CRT 0 and operates the plant. Further, this CRT0 is a program creation device 8
It has a function to display and monitor documents created in (described later). Further, 4 is a plant controller for actually controlling the plant, and in the figure, only the constituent parts on software related to the present invention are shown therein. 5 is a load module that is the main body of the plant control program, 6 is the
A management program that receives the load module and management data from the program creation device 8 and also receives the request for constant change, rewrites the constant, and sends the result, and 7 is the correspondence data between the constant and the load module in the operating plan (Hereinafter referred to as index information). Reference numeral 8 denotes a program creating device, which includes a keyboard 10, a display 11 for displaying, a processing device 12, and a customization module stacker 13. The program creation device 8 has a function of analyzing the operating bill document input from the keyboard 10 and the display 11 and creating the load module 14 of the plant controller 4. Here, the operation bill represents the processing function of the entire plant. Since a plant is normally operated by a plurality of plant controllers 4, the operation bill is divided into plant controller 4 units, and each is a set of modules that realize a specific function. This module group is stored in the customized module stacker 13, and the processing device 12 creates a load module 14 and monitor information 15 for controlling the plant from the contents of the customized module stacker 13. The load module 14 is downloaded from the program creating device 8 to the plant controller 4. Also, 9
Is a network, which is a transmission path for linking the CRT 0, the plant controller 4, and the program creation device 8 described above. Actually, (1) linkage of control information between the plant controllers 4, (2) transmission of an operation command from the CRT 0 to each plant controller 4,
(3) The plant controller 4 transmits information about the plant to the CRT 0, and (4) the operation bill input to the program creation device 8 is transmitted to the CRT 0. This allows
It is possible to monitor the condition of the plant. Here, as described above, the load module 14 that moves the plant is created in the program creation device 8.
The operation of the plant is started by downloading the load module 14 created in the program creating apparatus 8 to the plant controller 4 and executing the load module 14, and thereafter, the plant is operated by the plant controller 4, the CRT 0, and the network 9. On the other hand, the operator monitors the plant by the CRT display 1, judges the state of the plant through the CRT display 1, and switches the operation mode or changes the setting by using the keyboard 2 of the CRT 0 as necessary. The operation performed by the operator is transmitted to the plant controller 4 through the network 9, and the plant controller 4 switches modes and changes settings. Note that the program creation device 8 is not related to the operation in the operating plant.

【0007】次に、制御定数の変更のための準備とし
て、プログラム作成装置8におけるインデックス情報の
作成について、説明する。図2に示すように、運転法案
は、機能毎にモジュールという単位で管理されており、
各モジュールはシートナンバー(SH.NO)とよばれ
る一貫NOを持っている。また、モジュールは、複数ペ
ージで構成され、モジュール内でページを持っている。
運転法案の任意のページは、SH.NOとページの組み
合わせでユニークに決定できる。同図の例では、モジュ
ールのSH.NOは057、ページは02であるとして
いる。図2の(a)は、運転法案の1ページの一部を表
現したものであり、運転法案の1ページは、縦横即ちx
座標、y座標のマトリックスにより管理されている。同
例では、座標x=4、y=3にある信号があり、座標x
=5、y=3ではその信号にある値を加算し、座標x=
6、y=3ではゲインの掛け算を行なう演算ロジックを
示している。ところで、プログラム作成装置8における
プログラム作成は、運転法案を入力することから始ま
る。運転法案に書かれた機能には標準的な機能のものも
あれば、そのプラント特有の機能もある。標準的な機能
であれば、プログラム作成装置8がもつライブラリィを
呼び出し、そのプラント用に入出力信号や定数を指定す
る(カスタマイズする)ことにより、また、プラント特
有の機能であればプログラム作成装置8のキーボード1
0、ディスプレィ11から入力することにより作成し、
必要なモジュールをカスタマイズモジュールスッタカー
13に保存していく。すべてのモジュールの準備が終わ
ると、プログラム作成装置8の処理装置12は、カスタ
マイズモジュールスッタカー13の各モジュール単位に
各シート、各ページのマトリックスを順番に解析し、マ
トリックスの各桝目に書かれたシンボルや信号名を読み
取り、運転法案の絵の情報はプラントコントローラ4の
アセンブラの命令後に変換した後、実アドレスの割りつ
いたロードモジュール14に変換する。この際、ロード
モジュール14の作成と同時にモニター情報15をも作
成する。ここで、モニター情報とは、運転に使われるC
RTディスプレィ1に運転法案を表示するための情報、
即ち、運転法案をCRTディスプレィ1の画面において
モニターするのに必要なデータ、具体的には、運転法案
ドキュメントの各ページに対応して、そのなかで使用さ
れているx座標、y座標の各信号、ロードモジュール内
で使用されているメモリーアドレスの情報である。これ
らの信号および情報を基に運転法案のページに対応して
情報テーブルを作成し、モジュールとこのテーブルとの
インデックスを持つことによって、CRTディスプレィ
1によるモニターが可能となる。本実施例では、ロード
モジュール作成の過程において、モニター情報を作成す
るのと同時に定数に関するデータを作成する。即ち、運
転法案ドキュメントの各ページに対応して各制御定数毎
に、x座標、y座標、ロードモジュール内において位置
づける。図2の(b)は、ロードモジュールを表わして
おり、この例では、(a)のx=5、y=3に対応する
機械語O2D8 D511はロードモジュール上でアド
レス/51AFにある。図2の(c)は、このときのイ
ンデックス情報であり、モジュールのSH.NO、モジ
ュール内におけるページNO、x座標、y座標、ロード
モジュール内のアドレスをインデックステーブルに作成
する。このインデックステーブルの作成が定数変更をプ
ラントコントローラ4内で行うための準備である。ダウ
ンロード時、このインデックステーブルはプラントコン
トローラ4に送られる。
Next, as a preparation for changing the control constant, the creation of index information in the program creating device 8 will be described. As shown in FIG. 2, the operation bill is managed in units of modules for each function,
Each module has a consistent NO called the seat number (SH.NO). A module is composed of multiple pages and has pages within the module.
Any page of the driving bill is SH. It can be uniquely determined by the combination of NO and page. In the example of the figure, the SH. It is assumed that NO is 057 and page is 02. FIG. 2A shows a part of one page of the driving bill, and one page of the driving bill is vertical and horizontal, that is, x.
It is managed by a matrix of coordinates and y coordinates. In the example, there is a signal at coordinate x = 4, y = 3, and coordinate x
= 5, y = 3, add a value to the signal, and coordinate x =
6 and y = 3, the calculation logic for multiplying the gain is shown. By the way, the program creation in the program creation device 8 starts by inputting a driving bill. Some of the functions written in the operation bill are standard functions, while others are specific to the plant. For standard functions, the library of the program creation device 8 is called to specify (customize) input / output signals and constants for the plant, and for functions unique to the plant, the program creation device Keyboard 1 of 8
Created by inputting from 0 and display 11,
The necessary modules are stored in the customized module stacker 13. When all the modules are prepared, the processing unit 12 of the program creation unit 8 sequentially analyzes the matrix of each sheet and each page for each module of the customized module stacker 13, and the symbols written in each matrix of the matrix are analyzed. Or the signal name is read, and the information on the picture of the operation plan is converted after the instruction of the assembler of the plant controller 4, and then converted to the load module 14 to which the real address is assigned. At this time, the monitor information 15 is also created at the same time when the load module 14 is created. Here, the monitor information is C used for driving.
Information for displaying the driving bill on the RT display 1,
That is, the data necessary to monitor the driving bill on the screen of the CRT display 1, specifically, the x-coordinate signal and the y-coordinate signal used therein corresponding to each page of the driving bill document. , Information on the memory address used in the load module. Based on these signals and information, an information table is created corresponding to the operation plan page, and the module and the index of this table are provided so that the CRT display 1 can monitor. In the present embodiment, in the process of creating the load module, the data about the constant is created at the same time as creating the monitor information. That is, the x-coordinate, the y-coordinate, and the load module are positioned for each control constant corresponding to each page of the driving bill document. 2B shows a load module, and in this example, the machine language O2D8 D511 corresponding to x = 5 and y = 3 in (a) is located at address / 51AF on the load module. 2C shows index information at this time, which is the SH. NO, page number in module, x coordinate, y coordinate, and address in load module are created in the index table. The creation of this index table is a preparation for changing the constant in the plant controller 4. At the time of download, this index table is sent to the plant controller 4.

【0008】図3は、定数を変更する場合の情報の流れ
を示す。処理とデータの流れは、以下のようになる。 CRT0からの変更指示を入力する。CRT0に運
転法案を表示し、これをモニターしている状態でCRT
0から変更要求を入力する。具体的には、モニターして
いるCRTディスプレィ1上で変更したい制御定数をタ
ッチする。運転法案上には制御に必要な定数が書かれて
おり、モニター画面上にも同じ定数が表示されている。
定数にタッチすると、CRTディスプレィ1上から定数
を入力するためのカーソルが現われ、CRT0に付属し
たキーボード2から変更したい定数を入力し、最後にリ
ターンキーを押して内容を確定する。 入力した定数は、変更要求とその指令値と言う形で
ネットワーク9を経由してCRT0から該当するプラン
トコントローラ4に伝達される。(プラントコントロー
ラ複数台数でプラントを制御しているため。) プラントコントローラ4では、要求を受信し、管理
プログラム6がダウンロード時にロードモジュール5と
ともに受信したインデックス情報7から、要求された定
数がロードモジュール5内のどの機械命令に対応するか
を決定する。 プラントコントローラ4内において、運転法案上の
定数とロードモジュール5内の機械語との対応が決まっ
たら、管理プログラム6は、プログラムのアイドルタイ
ム、制御プログラムを実行していないタイミング(制御
プログラムは一定周期で実行されるタイマータスクとタ
イマータスクの間で実行されるベースタスクがあるが、
さらに、この間で一旦管理プログラムに制御が戻る。)
を検出し、機械語該当箇所を修正して、制御定数を変更
する。 プラントコントローラ4は、この結果をCRT0と
プログラム作成装置8に通知する。 CRT0は、変更要求に対するアンサーを受け取
り、CRTディスプレィ1上の表示を変更し、表示して
いる運転法案上の数値を書き換える。(また、実施例の
変形として、変更確認をCRT表示上の色を変えること
によって、オペレータに知らせることもできる。) プログラム作成装置8は、この結果を受けて、ま
ず、ロードモジュール14を修正する。これはプラント
コントローラ4内で実行された処理と同じ処理を実行す
ればよい。これを行うのは、何らかのタイミングでダウ
ンロードが行われたとき、調整結果が元に戻るのを防ぐ
ためである。 次に、プログラム作成装置8は、自分自身のカスタ
マイズドスタッカー13内のモジュールの描画情報ファ
イルと、メモリー情報ファイルを修正して、変更モジュ
ール16を生成する。CRT0からプラントコントロー
ラ4に渡された情報を使えば、すぐにモジュール、ペー
ジ、座標を決定できるため、変更は容易である。これは
オンラインで調整した結果をその原本たるモジュールに
施すことによって、調整した結果を運転法案に反映させ
る。この操作を実行しないと、実プラントとドキュメン
トの整合性が取れなくなり、調整した結果が失われてし
まうからである。以上で定数の変更が終了する。
FIG. 3 shows the flow of information when the constant is changed. The processing and data flow is as follows. Input the change instruction from CRT0. Display the operation plan on CRT0 and monitor it while CRT
Input a change request from 0. Specifically, the control constant to be changed is touched on the CRT display 1 being monitored. Constants necessary for control are written on the operating bill, and the same constants are also displayed on the monitor screen.
When the constant is touched, a cursor for inputting the constant appears on the CRT display 1, the constant to be changed is input from the keyboard 2 attached to the CRT 0, and finally the return key is pressed to confirm the contents. The input constant is transmitted from the CRT 0 to the corresponding plant controller 4 via the network 9 in the form of a change request and its command value. (Because the plant is controlled by a plurality of plant controllers.) The plant controller 4 receives the request, and from the index information 7 received together with the load module 5 by the management program 6 at the time of download, the requested constant is the load module 5 To determine which machine instruction in When the correspondence between the constants on the operating bill and the machine language in the load module 5 is determined in the plant controller 4, the management program 6 determines the idle time of the program, the timing at which the control program is not executed (the control program has a fixed cycle). There is a base task which is executed between the timer task and the timer task which are executed in
Further, during this time, control is once returned to the management program. )
Is detected, the relevant part of the machine language is corrected, and the control constant is changed. The plant controller 4 notifies the CRT 0 and the program creating device 8 of this result. The CRT 0 receives the answer to the change request, changes the display on the CRT display 1, and rewrites the displayed numerical value on the operating bill. (Also, as a modification of the embodiment, it is possible to notify the operator of the change confirmation by changing the color on the CRT display.) The program creating device 8 receives the result and firstly modifies the load module 14. .. This may be the same as the processing executed in the plant controller 4. This is done to prevent the adjustment result from returning to the original when the download is performed at some timing. Next, the program creation device 8 modifies the drawing information file of the module in the customized stacker 13 of its own and the memory information file to generate the change module 16. Using the information passed from the CRT0 to the plant controller 4, the module, page, and coordinates can be immediately determined, so that the change is easy. This applies the adjusted results online to the original module to reflect the adjusted results in the operating bill. This is because if this operation is not executed, the consistency between the actual plant and the document will be lost, and the adjustment results will be lost. This is the end of changing the constant.

【0009】図4は、上述した〜段階のプラントコ
ントローラ4の処理のフローチャートを示す。即ち、プ
ラントコントローラ4がCRT0から定数変更要求があ
った時、実行する処理について説明したフローチャート
である。このプログラムは、プラントコントローラ4が
ネットワーク9から伝文を受信したときに起動する。ま
ず、伝文の内容を判別し、定数の変更要求か、または、
その他の要求かを判断する(ステップ20)。定数変更
要求であれば、伝文からモジュール名、ページ指定、座
標xy、設定値を取り出す(ステップ21)。これが異
常であったときは(例えば、実際に無いページを受け取
った場合)、CRT0に異常発生を送信する(ステップ
31)。次に、プラントコントローラ4内に持っている
インデックス情報7を取り出し、ロードモジュール5と
の対応アドレスを求める(ステップ22)。インデック
ス情報7に該当するアドレスが無ければ、異常をCRT
0に送信する(ステップ31)。続いて、設定値の合理
性を判断する。例えば、1Wの定数のところに6563
6以上の(1Wで実現できない値)が設定要求された場
合は、エラーとする(ステップ23)。次に、実際の変
更に移るわけであるが、その前にタイムアウトカンタを
初期化する。これは変更しようとして、できなかった場
合に、永久ループに陥らないためである(ステップ2
4)。続いて、CPU状態、制御プログラムが実行中か
どうかをチェックする(ステップ25)。制御プログラ
ム実行中でないタイミング(アイドル状態)になった
ら、制御プログラムを一旦実行禁止にし(ステップ2
7)、定数の書き換えを行なう。制御プログラムを実行
中に定数を書き換えることは、制御プログラムが変更途
中の定数を使う可能性があるため、以上のように制御プ
ログラムが実行されていないタイミングを捕らえ、変更
中は制御プログラムが実行できないようにしておく必要
がある(ステップ28)。いつまでチェックしてもアイ
ドル状態とならなければ、制御プログラムが実行(RU
N)中であり、チェックの度にタイムアウトカウンタを
カウントアップし(ステップ26)、カウンタが一定値
に達すれば、ステップ25の中でタイムアウトとして処
理を中断する。書き換えが成功すれば、制御プログラム
の実行禁止を解除し、制御プログラムが実行できるよう
にし(ステップ29)、CRT0とプログラム作成装置
8に対し定数変更が正常に終了したことを送信する(ス
テップ30)。
FIG. 4 shows a flowchart of the processing of the plant controller 4 in the above-mentioned steps 1 to 4. That is, it is a flow chart for explaining the processing executed by the plant controller 4 when there is a constant change request from the CRT 0. This program is activated when the plant controller 4 receives a message from the network 9. First, determine the content of the message and request a constant change, or
It is judged whether it is another request (step 20). If it is a constant change request, the module name, page designation, coordinates xy, and set value are extracted from the message (step 21). When this is abnormal (for example, when a page that does not exist actually is received), the abnormality occurrence is transmitted to CRT0 (step 31). Next, the index information 7 held in the plant controller 4 is taken out and the corresponding address with the load module 5 is obtained (step 22). If there is no address that corresponds to the index information 7, the error is CRT.
0 (step 31). Then, the rationality of the set value is judged. For example, 6563 at the constant of 1W
If a setting request of 6 or more (a value that cannot be realized with 1 W) is requested, an error is generated (step 23). Next, the actual change starts, but before that, the timeout counter is initialized. This is because if you try to change it and it is not possible, you will not end up in an endless loop (step 2
4). Then, the CPU status and whether the control program is being executed are checked (step 25). When the timing (idle state) is reached when the control program is not being executed, the control program is temporarily prohibited from execution (step 2
7) Rewrite the constant. Rewriting constants while the control program is running may cause the control program to use constants that are in the process of being modified, so the timing when the control program is not being executed is caught as described above, and the control program cannot be executed while it is being modified. (Step 28). If it does not become idle after checking, the control program executes (RU
N), the time-out counter is incremented each time it is checked (step 26), and if the counter reaches a certain value, the process is interrupted as a time-out in step 25. If the rewriting is successful, the execution prohibition of the control program is released, the control program is allowed to be executed (step 29), and the fact that the constant change is normally completed is transmitted to the CRT 0 and the program creating device 8 (step 30). ..

【0010】図5は、上述した、段階のプログラム
作成装置8の処理のフローチャートを示す。即ち、プラ
ントコントローラ4が定数変更を終了したときのプログ
ラム作成装置8の処理について説明したフローチャート
である。プラントコントローラ4は、プログラム作成装
置8にプラントコントローラ4が受け取った情報を含
め、定数変更の終了を伝える。プログラム作成装置8は
この伝文を受け取り、受信した伝文の内容をチェックす
る(ステップ40から43)。このステップ40から4
3はプラントコントローラ4の処理と同じである。内容
のチェックを終わると、定数変更のカスタマイズモジュ
ールスタッカー13内のモジュールへの反映が可能かど
うかを判断する。即ち、ダウンロードした後、プログラ
ム作成装置8でモジュールの修正を行なった場合(例え
ば、プラントの改造などでプログラムの修正が必要にな
り、これを事前に行なう場合)、変更されたモジュール
に関して、ダウンロードしてプラントコントローラ4が
持っている情報とプログラム作成装置8が持っている情
報が不一致となっているため、変更できない(ステップ
44)。この場合は、プログラム作成装置8のディスプ
レィ11にメッセージを表示し、処理を終了する(ステ
ップ48)。もし、プログラム作成装置8で修正してい
なければ、定数の書き換えを行ない、ロードモジュール
を修正し(ステップ45)、モニター情報を修正し(ス
テップ46)、処理を終了する。
FIG. 5 shows a flowchart of the process of the program creating device 8 at the above-mentioned stage. That is, it is a flowchart for explaining the process of the program creating device 8 when the plant controller 4 finishes changing the constant. The plant controller 4 notifies the program creation device 8 of the end of the constant change, including the information received by the plant controller 4. The program creation device 8 receives this message and checks the content of the received message (steps 40 to 43). Steps 40 to 4
3 is the same as the processing of the plant controller 4. After checking the contents, it is determined whether or not the constant change can be reflected in the module in the customized module stacker 13. That is, if the module is modified by the program creation device 8 after the download (for example, if the program is modified in advance due to plant modification or the like and this is done in advance), the modified module is downloaded. Since the information held by the plant controller 4 and the information held by the program creation device 8 do not match, the information cannot be changed (step 44). In this case, a message is displayed on the display 11 of the program creating device 8 and the process ends (step 48). If it has not been modified by the program creation device 8, the constant is rewritten, the load module is modified (step 45), the monitor information is modified (step 46), and the process is terminated.

【0011】以上説明したように、本実施例によれば、
次のような特徴を有する。即ち、従来のプログラム作成
は、プログラム作成装置8において、ロードモジュール
を作成する場合、運転法案ドキュメントをプログラム作
成装置8の上で作成(専用のエディタを使って入力)す
る。または、標準モジュールスタッカーのなかの汎用モ
ジュールをよりカスタマイズし、カスタマイズスタッカ
ーに格納する。カスタマイズスタッカーのモジュール群
は、コンパイルにより分析されアセンブラソースプログ
ラムに変換される。アセンブラソースは、アセンブラに
より標準アドレスを持ったモジュール単位のオブジェク
トに変換される。オブジェクトは、最後の編集作業によ
って実行可能なロードモジュールに変換される。定数を
運転法案上で変更した場合も以上の流れを経由する。変
換は、以上のような複数の過程を通して行われるため、
多くの処理を必要とする。更に、プログラム作成装置8
においてはモジュールを単位として管理しているため、
1つの定数を変更する場合にも、1モジュール全体に対
してこのような経路を経ざるを得ない。実際の調整の現
場においては、如何に早く、確実に調整を行い、プラン
トを短期間で立ち上げるか問題である。旧プラントのリ
プレース改造などの場合は、特に、如何にライン停止期
間を短くして、生産ラインを立ち上げるかが重要なファ
クターであり、プログラムの作成が停止期間の前に十分
な時間をかけて実行できるのに対して、試運転は限られ
た時間内にしかも実際のハードウエァを動かして実行し
なくてはならない。したがって、この試運転を如何に効
率よく行うかということは、プログラム作成にも増して
重要なことである。これに対し、本実施例は、プログラ
ム作成時にプログラム作成装置8に入力した運転法案ド
キュメントをCRT0上に表示させ、確認しながらプラ
ント制御に必要な制御定数を変更できるため、また、ロ
ードモジュールを直接書き換え、ダウンロードの必要が
ないため、使い勝手がよく(簡便に)、ラインを停止さ
せることなく(迅速に)制御定数の変更が可能であり、
プラント制御の調整を早く実行できる。なお、本実施例
のCRTは表示手段の一例であり、本発明は、CRT以
外にも液晶表示装置等、他の原理による表示手段に適用
できる。
As described above, according to this embodiment,
It has the following features. That is, in the conventional program creation, when creating a load module in the program creation device 8, an operation bill document is created on the program creation device 8 (input using a dedicated editor). Or, customize the general-purpose module in the standard module stacker and store it in the customized stacker. The modules of the customized stacker are analyzed by compilation and converted into an assembler source program. The assembler source is converted by the assembler into objects in module units having standard addresses. The object is converted into an executable load module by the last editing operation. Even if the constant is changed according to the operating bill, the above flow is used. Since the conversion is performed through the above multiple processes,
It requires a lot of processing. Furthermore, the program creation device 8
In, since modules are managed as a unit,
Even when one constant is changed, there is no choice but to go through such a route for one module as a whole. In the field of actual adjustment, it is a problem how quickly and surely the adjustment is performed and the plant is started up in a short period of time. 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 it takes enough time to create the program before the stop period. While it can be executed, 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. On the other hand, in the present embodiment, the operation plan document input to the program creation device 8 at the time of creating the program can be displayed on the CRT 0, and the control constants necessary for plant control can be changed while checking. Since there is no need to rewrite or download, it is easy to use (easy) and the control constant can be changed without stopping the line (quickly).
The plant control can be adjusted quickly. The CRT of this embodiment is an example of the display means, and the present invention can be applied to display means based on other principles such as a liquid crystal display device other than the CRT.

【0012】[0012]

【発明の効果】本発明によれば、プログラム作成時にプ
ログラム作成装置に入力した運転法案ドキュメントをC
RT上に表示させ、確認しながらプラント制御に必要な
制御定数を変更できるため、使い勝手のよいかつ簡便な
定数変更が可能となる。また、プラントコントローラ
は、ダウンロード時に受信した運転法案上の制御定数と
ロードモジュールとの対応を用いて直接ロードモジュー
ルを書き換えるため、変更に時間がかからないこと、ま
た、ダウンロードの必要がないため、一旦CPUを停止
する必要つまり定数変更のためにラインを停止させる必
要がないことから、迅速な定数変更が可能となり、ひい
ては、プラント制御の調整を効率よく実行することがで
きる。さらに、プログラム作成装置にプラントコントロ
ーラから変更した定数を伝送することによって、装置内
のロードモジュールにも同様の修正を施し、原本である
モジュールそのものに対しても調整結果を反映させるこ
とができる。
According to the present invention, the operation plan document input to the program creating device at the time of creating the program is C
Since the control constants required for plant control can be changed while being displayed and displayed on the RT, it is possible to change the constants easily and easily. Further, since the plant controller directly rewrites the load module by using the correspondence between the control constants on the operation plan received at the time of download and the load module, the change does not take time, and since there is no need for downloading, once the CPU Since it is not necessary to stop the line, that is, to stop the line for changing the constant, it is possible to quickly change the constant, and thus it is possible to efficiently execute the plant control adjustment. Furthermore, by transmitting the constants changed from the plant controller to the program creation device, the same modification can be applied to the load module in the device, and the adjustment result can be reflected in the original module itself.

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

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

【図2】本発明のデータの内容説明図FIG. 2 is an explanatory diagram of data contents of the present invention.

【図3】信号処理の説明図FIG. 3 is an explanatory diagram of signal processing.

【図4】プログラム作成のフローチャート[Figure 4] Flowchart of program creation

【図5】プログラム作成のフローチャート[Figure 5] Flowchart of program creation

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

1 CRTディスプレイ 2 キーボード 3 CRTコントローラ 4 プラントコントローラ 5 ロードモジュール 6 管理プログラム 7 インデックス情報 8 プログラム作成装置 9 ネットワーク 13 カスタマイズモジュールスタッカー 14 ロードモジュール 15 モニター情報 1 CRT display 2 keyboard 3 CRT controller 4 plant controller 5 load module 6 management program 7 index information 8 program creation device 9 network 13 customized module stacker 14 load module 15 monitor information

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 プログラム作成装置と、プラントをモニ
ターする操業監視装置(CRT)と、プラントをコント
ロールするプラントコントローラと、これらをリンケー
ジするネットワークからなる制御システムおいて、CR
T上に運転法案を表示し、CRTから変更すべき運転法
案上の制御定数を指定すると共に、その変更値を入力
し、プラントコントローラによって運転法案の制御定数
をリアルタイムに変更することを特徴とする制御プログ
ラム修正方法。
1. A control system comprising a program creation device, an operation monitoring device (CRT) for monitoring a plant, a plant controller for controlling the plant, and a network for linking these, and a CR.
The operating bill is displayed on T, the control constant on the operating bill to be changed is specified from the CRT, the changed value is input, and the control constant of the operating bill is changed in real time by the plant controller. Control program modification method.
【請求項2】 請求項1において、プログラム作成装置
は、プログラム作成時に、運転法案上の制御定数とロー
ドモジュールの対応インデックス情報を同時に作成し、
これをダウンロード時にプラントコントローラに転送し
ておくことを特徴とする制御プログラム修正方法。
2. The program creation device according to claim 1, wherein the program creation device simultaneously creates the control parameter on the operating bill and the corresponding index information of the load module,
A method for modifying a control program, characterized by transferring this to a plant controller when downloading.
【請求項3】 プログラム作成装置と、プラントをモニ
ターする操業監視装置(CRT)と、プラントをコント
ロールするプラントコントローラと、これらをリンケー
ジするネットワークからなる制御システムおいて、プロ
グラム作成装置は、プログラム作成時に、運転法案上の
制御定数とロードモジュールの対応インデックス情報を
同時に作成し、これをダウンロード時にプラントコント
ローラに転送する機能を有し、CRTは、その画面上に
運転法案を表示し、運転法案の制御定数を指定すると共
に変更値を入力する機能を有し、かつ、プラントコント
ローラは、前記インデックス情報に対応して、運転法案
の制御定数を制御プログラムのアイドルタイムに変更す
る機能を有することを特徴とする制御プログラム修正装
置。
3. A control system comprising a program creating device, an operation monitoring device (CRT) for monitoring the plant, a plant controller for controlling the plant, and a network for linking these, wherein the program creating device is , Has the function of simultaneously creating the control constants on the operating bill and the corresponding index information of the load module, and transferring this to the plant controller at the time of download. The CRT displays the operating bill on the screen and controls the operating bill. It has a function of inputting a change value while designating a constant, and the plant controller has a function of changing the control constant of the operating bill to the idle time of the control program in response to the index information. Control program correction device.
【請求項4】 請求項3において、制御定数の変更結果
は、CRTの表示上にかつプログラム作成装置のロード
モジュールに反映することを特徴とする制御プログラム
修正装置。
4. The control program correction device according to claim 3, wherein the result of changing the control constant is reflected on the display of the CRT and in the load module of the program creation device.
JP15573292A 1992-05-22 1992-05-22 Method and device for correcting control program Pending JPH05324304A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15573292A JPH05324304A (en) 1992-05-22 1992-05-22 Method and device for correcting control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15573292A JPH05324304A (en) 1992-05-22 1992-05-22 Method and device for correcting control program

Publications (1)

Publication Number Publication Date
JPH05324304A true JPH05324304A (en) 1993-12-07

Family

ID=15612247

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15573292A Pending JPH05324304A (en) 1992-05-22 1992-05-22 Method and device for correcting control program

Country Status (1)

Country Link
JP (1) JPH05324304A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004001946A1 (en) * 2002-06-19 2003-12-31 Kabushiki Kaisha Yaskawa Denki Motor control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004001946A1 (en) * 2002-06-19 2003-12-31 Kabushiki Kaisha Yaskawa Denki Motor control device
US7023153B2 (en) 2002-06-19 2006-04-04 Kabushiki Kaisha Yaskawa Denki Motor control device

Similar Documents

Publication Publication Date Title
EP3761127B1 (en) Display device, screen generation method, and screen generation program
JP2002268730A (en) Maintenance system for field device
JP4062546B2 (en) Debug device
JPH05324304A (en) Method and device for correcting control program
JP4786164B2 (en) Plant monitoring and control system
JP2009223471A (en) Simulation system
JPH03223901A (en) Semiconductor manufacturing equipment
JP2000163109A (en) Ladder programming device and its method
JPH1063312A (en) Program managing device for controlling plant
JP2537424B2 (en) Control program generator
JP4387288B2 (en) Display device for control, editor device, program, and recording medium
JPH0778215A (en) Executing method for job program
JPH0764614A (en) Program control device and method and program producing device
JP2533372B2 (en) Control program creation method
JP2002055713A (en) Plant control system
JP2006309564A (en) Data generation device, display device for control, program therefor and recording medium
JP2001209412A (en) Simulator for sequence program
JPH07160536A (en) Program test supporting device for interactive system
JPH02230432A (en) Control method for debugging device
JPH11110005A (en) Process simulator for distributed control system
JPH08150581A (en) Robot control device
JPH0619746B2 (en) Information processing equipment
JPH06250836A (en) Device for supporting program development
JPH05241813A (en) Automatic program addition correction system
JPH08211929A (en) Plant supervisory and control device