JPS60229106A - Real time correction type programmable logic controller - Google Patents

Real time correction type programmable logic controller

Info

Publication number
JPS60229106A
JPS60229106A JP8380784A JP8380784A JPS60229106A JP S60229106 A JPS60229106 A JP S60229106A JP 8380784 A JP8380784 A JP 8380784A JP 8380784 A JP8380784 A JP 8380784A JP S60229106 A JPS60229106 A JP S60229106A
Authority
JP
Japan
Prior art keywords
program
plant
modification
programs
modified
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
JP8380784A
Other languages
Japanese (ja)
Inventor
Masaoki Takagi
高木 正興
Hiroto Nonaka
野中 広人
Manabu Araoka
荒岡 学
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
Hitachi Information and Control Systems Inc
Original Assignee
Hitachi Ltd
Hitachi Control Systems Inc
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, Hitachi Control Systems Inc filed Critical Hitachi Ltd
Priority to JP8380784A priority Critical patent/JPS60229106A/en
Publication of JPS60229106A publication Critical patent/JPS60229106A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/056Programming the PLC
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13013Transferring ram to eprom see also prom burning
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/10Plc systems
    • G05B2219/13Plc programming
    • G05B2219/13151Correction of program using grammatical error detection

Abstract

PURPOSE:To correct a sequence program contained in a programmable logic controller during on-line control without giving an evil effect to a plant, by adding a buffer memory which stores and correct programs. CONSTITUTION:Programs 111-11N so far executed are stored in an SPM11. When the program 112 is corrected, an area of the program 112 or a key instruction word is designated. Then a CPU in a programmable logic controller PLC copies the program 112 to a buffer memory 15 for correction and produces a new program 151. This program 151 is corrected on the memory 15 and in an idle period after execution of programs 111-11N. In this case, a program group of the SMP11 including the program 112 is used to control a plant. When the correction of the program 151 is over, this program is executed with operation of a switch 36 set on a setting device 3.

Description

【発明の詳細な説明】 〔発明の利用分野〕 プログラマブルロジックコントローラ(以下、PLCと
略す)を制御装置としてオンライン稼動するプラントに
係り、特に当骸PLc内のシーケンスプログラムの修正
、変更が頻発するプラントを制御するPLOに関する。
[Detailed Description of the Invention] [Field of Application of the Invention] This invention relates to a plant that operates online using a programmable logic controller (hereinafter abbreviated as PLC) as a control device, especially a plant where sequence programs in the relevant PLc are frequently modified or changed. Regarding PLO that controls.

〔発明の背景〕[Background of the invention]

PLOを制御装置としたオンライン制御システムにおい
て、PLC内のシーケンスプログラムの修正を行う場合
、オンライン制御状態のままプログラムを修正すると、
制御対象プラントへ悪影響を及ぼすことが考えられる。
In an online control system using a PLO as a control device, when modifying the sequence program in the PLC, if the program is modified while in the online control state,
It is possible that this may have an adverse effect on the plant to be controlled.

悪影響とは、例えば、対象プラントが暴走したシ、逆に
、停止したシすることである。
An adverse effect is, for example, the target plant going out of control or, conversely, stopping.

従って、従来よシ現在稼動中のプログラムをオンライン
の状態で修正することは、タイマ、カワンタ等の設定値
を質吏するか、あるいは、ある命令語1語を別の命令語
に曹き換えることぐらいに限られていた。設定値の変更
や命令語1語だけの書き換えは、比較的簡単にプラント
への影響を把握できるし、設定値及び命令語を記憶して
いるメモリの書き換えという内部的な処理も、瞬時にし
て行なわれるからである。また当該修正によってプログ
ラム量の増減がないため、各命令語の移動をやらずにす
むからである(詳細は後述)。
Therefore, conventionally, modifying a currently running program while online means changing the settings of timers, counters, etc., or replacing one command word with another. It was limited to about. Changing a set value or rewriting only one instruction word can relatively easily determine the impact on the plant, and the internal process of rewriting the memory that stores the set value and instruction word can be done instantly. Because it is done. Furthermore, since the modification does not increase or decrease the program size, there is no need to move each instruction word (details will be described later).

一般的にプログラムの修正は、プログラムの口シックの
変吏を伴う場合が多く、プラントへ及ぼす影響も把握し
にくい。また、修正したプログラムの各命令語に増減が
生じた場合、修正したプログラムの後にあったプログラ
ムの各命令語を移動しなければならない。そして移動の
途中で当該プログラムが実行されると、プログラムの状
態が不完全なため、プラント等に悪影響を及ばずことは
必至である。そのため一般的なプログラムの修正を行な
う場合は一時的にプラントの稼動を停止させて修正を行
なっていた。つまシブログラムの修正はオンライン制御
の実行中には不可能であるというところに従来方式の問
題点があった。プログラムの1じ正の他の方法としては
、オンライン制御状態にない別のPLCに修正したいプ
ログラムをコヒーシ、修正をほどこした後シミュレーシ
ョンデパックにて修正したプログラムが正常であること
を確認してから、オンライン制御状態にある当該PLC
に短時間で組み込みプラントに再起動をかけるという方
法が考えられる。この方法では、別のPLCが一台必要
となるし、修正したプログラムをオンライン制御状態の
PLCに組み込むときに、一度、プラントの稼動を停止
しなければならないという問題点は未解決である。
Generally, modifying a program often involves making minor changes to the program, and it is difficult to understand the impact it will have on the plant. Furthermore, if there is an increase or decrease in the number of command words in the modified program, each command word in the program following the modified program must be moved. If the program is executed during the move, the state of the program is incomplete, so it is inevitable that it will not adversely affect the plant or the like. For this reason, when modifying a general program, the plant operation has been temporarily halted to make the modification. The problem with the conventional method is that it is impossible to modify the program while online control is being executed. Another way to correct the program is to cohesively transfer the program you want to modify to another PLC that is not in online control, and after making the modifications, use Simulation Depack to confirm that the modified program is normal. , the PLC in online control state
One possible method would be to restart the embedded plant in a short period of time. This method requires another PLC, and the problem that the plant operation must be stopped once the modified program is incorporated into the PLC under online control remains unsolved.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、かかる問題点を解決し、PLC内の現
在稼動中であるシーケンスプログラムを、オンライン制
御中に、プラントへの悪影響を及はすことなく、修正可
能とするものである。
An object of the present invention is to solve such problems and to make it possible to modify a sequence program currently in operation in a PLC during online control without adversely affecting the plant.

〔発明の概要〕[Summary of the invention]

本発明では、オンライン制御実行中にプログラムの修正
を行う場合、その修正したい箇所を、修正用の退避エリ
アに、一旦、退避し、そこでプログラムの修正を可能と
する。プログラムの修正が完了するまで、CPUは、オ
ンライン制御を止めることなく、修正前のプログラムを
、これまでとりシ実行する。そして退避したプログラム
の修正、及び動作の確認が終ったら、CPUの実行を、
修正前のプログラムから、修正後のプログラムへ、瞬時
にして変える手段を提供するものである。修正後のプロ
グラムに不具合が有シ、プラントに異常が生じたら、ま
たもとのプログラムの実行に切換えることも瞬時にして
可能である。
In the present invention, when modifying a program during execution of online control, the part to be modified is temporarily saved in a modification save area, and the program can be modified there. Until the modification of the program is completed, the CPU continues to execute the program before modification without stopping online control. After modifying the saved program and checking its operation, run the CPU.
This provides a means to instantly change from a program before modification to a program after modification. If there is a problem with the modified program or an abnormality occurs in the plant, it is possible to instantly switch back to executing the original program.

〔発明の実施例〕[Embodiments of the invention]

(1)従来例について 第1図は従来のPLC及びプログラミング装置(以下、
PSEと略す)のおおまかな構成を示したものである。
(1) Conventional example Figure 1 shows a conventional PLC and programming device (hereinafter referred to as
This figure shows the rough configuration of the PSE (abbreviated as PSE).

PLClooIは、処理装置(以下、CPUと略す)8
、プロセス入出力制御装置(以下、PIOCE と略す
)9と、プロセス入出力装置(以下、PI3と略す)1
0、シーケンスプログラム格納用メモリ(以下、8PM
と略す)11、データバス12、アドレスバス13、デ
ータ送受信装置7とから成シ立っている。また、PIO
CE9は、バッファメモリ90を内蔵し、CPU8から
アクセス可能となっている。
PLClooI is a processing device (hereinafter abbreviated as CPU) 8
, a process input/output control device (hereinafter abbreviated as PIOCE) 9, and a process input/output device (hereinafter abbreviated as PI3) 1
0, Sequence program storage memory (hereinafter referred to as 8PM
) 11, a data bus 12, an address bus 13, and a data transmitting/receiving device 7. Also, PIO
The CE9 has a built-in buffer memory 90, which can be accessed from the CPU8.

このメモリ90を制御対象のプラント40と、PIOI
Oを介し連結させ、プラント40と、PICloolと
の入出力データの受け渡しに利用したり、あるいは、プ
ラントと切シ離してプラントからの入出力データのかわ
シに、PSElooOから直接、人がデータを入力する
ことも可能である。ここで人が入力するデータは、プラ
ント擬似入力データとして、シーケンスプログラムのシ
ミュレーションデバッグに利用することもできる。
This memory 90 is connected to the plant 40 to be controlled and the PIOI
It can be connected via PSElooO and used to exchange input/output data between the plant 40 and PIClooO, or it can be disconnected from the plant and used to transfer input/output data from the plant directly from PSElooO. It is also possible to input. The data input by humans here can also be used as plant pseudo input data for simulation debugging of sequence programs.

更に、このメモリはCPUB内の各種入出力データ一時
記憶用として瀬極的に活用される。
Furthermore, this memory is used for temporary storage of various input/output data within the CPUB.

さてPLClooIと通信回線13を介して接続される
P8E1000は、ファームウェア1、データ送受信装
9t2、設定器3、CR’r4、表示作業用メモリ14
、データバス5、アドレスバス6とから成っている。ま
た、設定器3にはシーケンスプログラムの、回路作成修
正モードA311、回路読出しモード33312、入出
力設定モードC313、シミュレーションデバッグモー
ドD314、出力状態変化表示モードE315、などの
処理モード切シ換えボタン31、シーケンスプログラム
の命令語であって、分岐を指定する分岐ボタン32、接
点かコイルかを指定する接点ボタン33、接点番号を指
定する接点番号ボタン34、接点のオンオフ状態を設定
する接点動差ボタン35、が設置されている。またファ
ームウェア1には第2図のフローチャートに示す動作を
するソフトウェアがROM化されて入っている。
Now, P8E1000 connected to PLClooI via communication line 13 includes firmware 1, data transmitter/receiver 9t2, setting device 3, CR'r4, and display work memory 14.
, a data bus 5, and an address bus 6. The setting device 3 also includes processing mode switching buttons 31 for the sequence program, such as circuit creation correction mode A311, circuit readout mode 33312, input/output setting mode C313, simulation debugging mode D314, output state change display mode E315, etc. A branch button 32 that specifies a branch, which is a command word of a sequence program, a contact button 33 that specifies whether it is a contact or a coil, a contact number button 34 that specifies a contact number, and a contact difference button 35 that sets the on/off state of the contact. , has been installed. Further, the firmware 1 includes software that operates as shown in the flowchart of FIG. 2 in the form of a ROM.

従来のPLCにおけるシーケンスプログラムの修正方法
を説明する。第1図に示したようなPLCloolが、
特定のプラントのオンライン制御を行なっているとする
。そしてSPMII内のシーケンスプログラムに修正の
必要が生じたとする。この場合オペレータはまず、P8
E1000の設定器3にある処理モード切シ換えボタン
31の中から、プログラム作成修正のボタンA311を
選択し押下する。するとファームウェア1内のソフトウ
ェアはPLClooIのプラント制御状態を見て、もし
、オンライン制御の実行中ならばプログラム修正のオペ
レーションの受付けを不可とする。それは第2図が示す
とおりである。このためオペレータはプラントを一端、
稼動停止させ、第3図に示すように、PIOCE9 と
PIOIOとの接続を切り離し、PLClooIのオン
ライン制御状態を解除せねばならない。そして解除した
後で、プログラムの修正が可能となる。その後プログラ
ムの修正が終わったら、設定器3上のモード切り換えボ
タン31のシミュレーションのボタン314を押し、修
正したプログラムが正常なことを確認してから初めて、
PIOCE9 とPIOIOとを接続し、プラントに再
起動をかけ、PLClooIによるプラントのオンライ
ン制御を開始させる。
A method for modifying a sequence program in a conventional PLC will be explained. PLClool as shown in Figure 1 is
Assume that you are performing online control of a specific plant. Assume that it becomes necessary to modify the sequence program in SPMII. In this case, the operator first
From among the processing mode switching buttons 31 on the setting device 3 of the E1000, select and press the program creation/correction button A311. Then, the software in the firmware 1 looks at the plant control status of PLClooI, and if online control is in progress, it will not be able to accept any program modification operations. This is as shown in Figure 2. For this reason, operators must
The operation must be stopped, the connection between PIOCE9 and PIOIO must be disconnected, and the online control state of PLClooI must be released, as shown in FIG. After the release, the program can be modified. After that, when you have finished modifying the program, press the simulation button 314 of the mode switching button 31 on the setting device 3, and only after confirming that the modified program is normal.
Connect PIOCE9 and PIOIO, restart the plant, and start online control of the plant by PLClooI.

ここで、大きな問題点が提起される。つまり現在稼動中
の7−ケンスプログラムを修正する場合、その修正のオ
ペレーション中はプラントの稼動が停止していなければ
ならない点である。プラントの稼動が一時的に停止する
ようなプラントなら対処できるが、年中無体で常に稼動
状態にあるプラントに対しては従来方式では対処できな
いのである。また一時的に停止するプラントにしても、
対話方式で人が行なうプログラムの修正と、シミュレー
ションデバッグには通常、数分〜数時間の時間が必要で
、それだけの時間が十分に与えられるプラントに限り、
従来方式で対処可能ということになる。
A major problem is raised here. In other words, when modifying a 7-can program that is currently in operation, the plant must be stopped during the modification operation. This can be dealt with if the plant's operation is temporarily stopped, but conventional methods cannot deal with plants that are intangible and constantly in operation all year round. Also, even if the plant is temporarily shut down,
Interactive program modification and simulation debugging usually require several minutes to several hours, and only in plants where there is sufficient time for this.
This means that it can be handled using conventional methods.

本発明は、かかる問題を解決すべく成された。The present invention was made to solve this problem.

ここで説明を容易にするために、PLOが制御対象とす
るプラントの類別を定義しておく。まず、年中無体で常
に稼動状態を保っているプラント類をPlとする。次に
一時的に停止することはあるが、その停止時間でプログ
ラム修正が可能となるほどの時間ではないプラント類t
P2とする。最後に、プラントの停止時間が、プログラ
ムを修正するのに十分であるようなプラント類をP3と
する。このように類別すると、従来方式でプログラム修
正が可能なプラントは、P3に属するものに限られるこ
とになる。本発明はP3に属するプラントだけでなく、
Pl及びP2に属するプラントの制御を行なうシーケン
スプログラム修正、言いかえれば、オンライン制御中の
プログラム修正を可能にしようというものである。
Here, for ease of explanation, the types of plants to be controlled by PLO will be defined. First, let Pl be plants that are intangible and always in operation all year round. Next, plants may be stopped temporarily, but the stoppage time is not long enough to make program corrections possible.
Let it be P2. Finally, let P3 be a plant whose stop time is sufficient to modify the program. When categorized in this way, plants whose programs can be modified using the conventional method are limited to those belonging to P3. The present invention applies not only to plants belonging to P3, but also to plants belonging to P3.
The purpose is to make it possible to modify the sequence program that controls the plants belonging to P1 and P2, in other words, to make it possible to modify the program during online control.

そのための手段として、本発明では、第4図で示すよう
に、従来のPLCに、新たなプログラム修正用のバッフ
ァメモリ15を有するPLCl 001、及び、1シ正
中のプログラムと既存する修正前のプログラムの、実行
を切#)換える実行切り換えスイッチ36を有するPS
Eを使用する。
As a means for that purpose, in the present invention, as shown in FIG. A PS having an execution changeover switch 36 for switching the execution of
Use E.

またプログラム修正用のバッファメモリ15は、増設が
可能である。
Further, the buffer memory 15 for program correction can be expanded.

(2) 本発明の実施例 これから本発明を実施例をあげて詳細に説明する。第5
図はプログラム修正用バッファメモリ15と、実行切シ
換えスイッチ36がどのように利用されるかを示してい
る。8PM11には既に作成済で、それまで実行されて
きたプログラム111〜11Nがあり、今、その中の1
12のプログラムに修正の必要が生じたとする。その場
合オペレータがPSEによって修正したいプログラム1
12のエリアもしくは代表される命令語を指定すると、
PLClooIのCPU8は、112を修正用のバッフ
ァメモリ15にコピーして、新たにプログラム151を
作る。そしてコピーしたプログラム151の修正が、修
正用バッファメモリ15上で開始可能となる。コピー修
正などの処理は、CPU8がSPMII内のプログラム
111〜11Nt−実行し終えて(つまり1スキヤンの
処理を終えて)次のスキャン周期起動がかかるまでの空
き時間で行なえる(通常、PLCのスキャン周期起動は
10m秒〜100m秒毎である)。あるいは修正専用の
処理装置を別に設けて処理させることも可能である。
(2) Examples of the present invention The present invention will now be described in detail by way of examples. Fifth
The figure shows how the program modification buffer memory 15 and the execution changeover switch 36 are used. 8PM11 has programs 111 to 11N that have already been created and have been executed up to that point, and one of them is currently running.
Suppose that 12 programs need to be modified. In that case, program 1 that the operator would like to modify using PSE
If you specify the 12 areas or representative command words,
The CPU 8 of PLClooI copies 112 to the correction buffer memory 15 and creates a new program 151. Modification of the copied program 151 can then be started on the modification buffer memory 15. Processing such as copy correction can be performed in the free time until the CPU 8 finishes executing the programs 111 to 11Nt in the SPMII (that is, finishes one scan process) and starts the next scan cycle (usually when the PLC is running). Scan cycle activation is every 10 msec to 100 msec). Alternatively, it is also possible to provide a separate processing device exclusively for correction.

修正用バックアメモリ15上でプログラム151の修正
が行なわれている間、プラントに対する制御は今までど
うシ修正前のプログラム112を含んだSPMII内の
プログラム群で成される。このため対話型でプログラム
151の修正を行なう場合、時間の制限は全くない。た
だしPSEloooのファームウェア1の中で回路作成
修正のモードは、オンライン制御中は選択不可としてい
るが(第2図)、本発明においては、かかる動作チェッ
クは無くさなければならない。
While the program 151 is being modified on the modification backup memory 15, the plant is controlled by a group of programs in the SPMII including the program 112 before the modification. Therefore, when modifying the program 151 interactively, there is no time limit at all. However, in the firmware 1 of PSElooo, the circuit creation/modification mode cannot be selected during online control (FIG. 2), but in the present invention, such an operation check must be eliminated.

プログラム151の修正が終了した後PSE1000の
設定器3上にある実行切り換えスイッチ36により、修
正前のプログラム112の実行から修正後のプログラム
151の実行へ切り換える。
After the modification of the program 151 is completed, the execution changeover switch 36 on the setting device 3 of the PSE 1000 is used to switch from execution of the program 112 before modification to execution of the program 151 after modification.

(第5図の36’eaからbに回転させる。)。この結
果、オンラインで制御を行なっているプログラム111
〜11Nの実行において、処理が112のところへ来た
ら、112のかわりに修正を終えたプログラム151が
実行される。この過程を次に述べる。
(Rotate from 36'ea to b in Figure 5). As a result, the program 111 that is controlling online
When the process reaches 112 in the execution of steps 11N to 11N, the modified program 151 is executed instead of 112. This process will be described next.

CPU8の処理がプログラム111の処理を終えた時に
、プログラムカウンタに修正したプログラム151の先
頭アドレスをセットするだけで上記の修正が実行可能と
なる。結果的にCPU8は処理がプログラム111を終
了すると、プログラム151ヘジヤンプして処理を続行
していく。そして、プログラム151を最後まで実行し
終えると、再度同様にプログラムカウンタを操作し、処
理をSPMIIのプロクラム実行にもどす。第5図の例
では、プログラム113を実行することになる。このよ
うにして修正前のプログラム112から修正後のプログ
ラム151へ処理の実行を移すことが可能となる。プロ
グラムカウンタの操作方法としては、ジャンプ命令を使
ったシ、飛び先、もどり先アドレス格納メモリを使う等
が考えられる。
When the CPU 8 finishes processing the program 111, the above modification can be executed simply by setting the start address of the modified program 151 in the program counter. As a result, when the CPU 8 finishes processing the program 111, it jumps to the program 151 and continues processing. When the program 151 has been executed to the end, the program counter is operated in the same manner again to return the process to SPMII program execution. In the example of FIG. 5, program 113 will be executed. In this way, it is possible to transfer the execution of processing from the program 112 before modification to the program 151 after modification. Possible methods of operating the program counter include using a jump instruction, jump destination address, and return destination address storage memory.

もし修正したプログラムに不具合があり、プラントに異
常が少しでも見られたら、すぐに実行切シ換えスイッチ
36をもとにもどす(第5図でbからaへ)操作で、プ
ラントの制御は修正前のプログラムで行なわれる。つま
シ第5図において、修正用バッファメモリ15上の修正
済プログラム151へ、実行を移さないで、もとのプロ
グラム111〜IINで制御を行なうのである。不具合
のあった修正済プログラム151は再度、修正可能であ
る。このようにしてプログラムの修正とデバッグを同時
に進行させていくことができる。
If there is a problem with the modified program and even the slightest abnormality is observed in the plant, immediately return the execution selector switch 36 to its original state (from b to a in Figure 5) to correct the plant control. This is done in the previous program. In FIG. 5, the execution is not transferred to the modified program 151 on the modification buffer memory 15, but control is performed using the original programs 111 to IIN. The modified program 151 that has a problem can be modified again. In this way, program modification and debugging can proceed at the same time.

−瞬たシとも制御対象の異常をさけたい場合は、新たに
PIOCE16(第6図)を設け、設定器の実行切シ換
えスイッチ36を「シミュレーション」のモードCにセ
ットし、プロセス擬似入力データを入力して、シミュレ
ーションデバッグ全行なう。
- If you want to avoid instantaneous abnormalities in the controlled object, install a new PIOCE 16 (Fig. 6), set the execution selector switch 36 of the setting device to "simulation" mode C, and process pseudo input data. Enter and perform all simulation debugging.

これらの処理はすべてCPU8のオンライン制御処理の
空き時間に行う。シミュレーションデバッグが終了し、
修正したプログラムが正常であると確認された後、実行
切り換えスイッチ36を「修正プログラム実行」のモー
ドbにセットすれば、前述のような、修正したプログラ
ム151を実行しこの制御が開始される。このようにし
てオンライン制御中におけるプログラムの修正、及び、
その修正したプログラムによる制御への推移が成される
All of these processes are performed during the idle time of the online control process of the CPU 8. Simulation debugging is finished,
After it is confirmed that the modified program is normal, if the execution changeover switch 36 is set to the "modified program execution" mode b, the modified program 151 as described above is executed and this control is started. In this way, the program can be modified during online control, and
A transition to control by the modified program is made.

次に移動処理について述べる。修正前のプログラム11
2(第5図)が不賛となったにもかかわらず、82M1
1上に残存しエリアが無駄となる。
Next, the movement process will be described. Program 11 before modification
2 (Figure 5) was not well received, 82M1
1 and the area is wasted.

これを無くすために新たに実行される修正用バッファメ
モリ15上の151のプログラムを、不要となった8P
M11上の112のプログラムのエリアに移動すること
が必要である。しかし、修正前のプログラムと修正後の
プロクラムとの容量が異なり、格納エリアの大きさに差
が生じている場合は、既存プログラムの移動が必要とな
る(第7図)。プログラム112の修正により修正後の
プログラム115の容量がR18の分だけ増した場合、
既存プログラム113〜11Nを、Rだけ後に移動させ
なければならない。この移動処理中はプログラムの実行
が不可能なため、プラントの稼動を一時、停止する必要
がある(所要時間=θ〜数秒)。一時的に稼動停止時間
があるプラント類P2.P3については、その停止時間
に移動処理を行うことができる。
In order to eliminate this, 151 programs on the correction buffer memory 15 that are newly executed are replaced with 8 programs that are no longer needed.
It is necessary to move to the area of 112 programs on M11. However, if the capacity of the program before modification and the program after modification are different, and there is a difference in the storage area size, it is necessary to move the existing program (FIG. 7). If the capacity of the modified program 115 increases by R18 due to modification of the program 112,
Existing programs 113-11N must be moved by R later. Since the program cannot be executed during this moving process, it is necessary to temporarily stop the operation of the plant (required time = θ~several seconds). Plants with temporary downtime P2. Regarding P3, movement processing can be performed during the stop time.

移動処理は第8図のような処理フローのプログラムを第
1図のファームウェア1に追加することにより行う。具
体的には第2図のEの処理ブロックの後に挿入する。ま
た設定器3(第9図)のモード切り換えボタン中に新た
にF3161設けて、このボタンの押下により移動処理
を開始させる。
The movement process is performed by adding a program with a processing flow as shown in FIG. 8 to the firmware 1 shown in FIG. Specifically, it is inserted after the processing block E in FIG. Additionally, F3161 is newly provided in the mode switching button of the setting device 3 (FIG. 9), and movement processing is started by pressing this button.

これによシブラント類P2.P3について対処できる。This results in siblants P2. P3 can be dealt with.

また常に稼動状態にあるプラント類P1については、こ
の移動処理を行なわないで修正済のプログラム151は
修正用バッファメモリ15上に残しておく(第5図「修
正プログラム固定実行」のモードd)。修正前のプログ
ラム112の先頭にジャンプ命令がセットされ、CPU
の処理が常にそのアドレスに来たら修正後のプログラム
151を実行するようになる(第10図)。その後、実
行切り換えスイッチを第5図a「通常実行」のモードに
切り換えても、ジャンプ命令が挿入されているため、無
条件に修正後のプログラム151を実行する。別のプロ
グラムの修正が必要になったら、修正用バッファメモリ
15の空エリアを使用して、前述と同様に修正が可能で
ある。この種のプログラム修正を行ない修正用バッファ
メモリ15が満杯になった場合はメモリを増設すればよ
い。
For plants P1 that are always in operation, this moving process is not performed, and the modified programs 151 are left in the modification buffer memory 15 (mode d of "modified program fixed execution" in FIG. 5). A jump instruction is set at the beginning of the program 112 before modification, and the CPU
When the process always reaches that address, the modified program 151 is executed (FIG. 10). Thereafter, even if the execution switch is switched to the "normal execution" mode shown in FIG. 5a, the modified program 151 is executed unconditionally because the jump instruction has been inserted. If it becomes necessary to modify another program, the modification can be made in the same manner as described above using the empty area of the modification buffer memory 15. If this type of program modification is performed and the modification buffer memory 15 becomes full, more memory may be added.

〔発明の効果〕〔Effect of the invention〕

オンライン制御中に制御プログラムの修正が可能である
PLOを提供することにより、制御対象の稼動停止を回
避できる。
By providing a PLO that allows modification of the control program during online control, it is possible to avoid stopping the operation of the controlled object.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図と、第3図は従来のPLO及びPSEk、第2図
は、PSE内のファームウェアの動作を、第4図は、本
発明のPLC及びPSEの構成を、第5図は、プログラ
ムの修正及び実行の様子を、第6図は、修正プログラム
のデバッグの方法を、第7図は、修正プログラムの移動
処理の仕様を、第8図は、PSEファームウェアへの追
加分を、第9図は、設定器を、第10図は修正プログラ
ム固定実行の仕様を、それぞれ示した図である。 1000・・・PSE、1001・・・PLC,1・・
・ファームウェア、2・・・データ送受信装置、3・・
・設定器、36・・・実行切シ換えスイッチ、15・・
・修正用バッファメモリ。 代理人 弁理士 高橋明夫 第 7 図 弔と図 第q図
Figures 1 and 3 show the conventional PLO and PSEk, Figure 2 shows the operation of the firmware in the PSE, Figure 4 shows the configuration of the PLC and PSE of the present invention, and Figure 5 shows the program. Figure 6 shows the modification and execution process, Figure 7 shows the process for moving the modified program, Figure 8 shows the additions to the PSE firmware, and Figure 9 shows how to debug the modified program. 1 is a diagram showing a setting device, and FIG. 10 is a diagram showing specifications for fixed execution of a modification program. 1000...PSE, 1001...PLC, 1...
・Firmware, 2...Data transmitting/receiving device, 3...
- Setting device, 36... Execution selector switch, 15...
-Buffer memory for correction. Agent Patent Attorney Akio Takahashi No. 7 Condolences and Diagram Q

Claims (1)

【特許請求の範囲】 1、 プロセスのシーケンスを処理するCPUと、該プ
ロセスを対象とした入出力装置と、これらの間に設けら
れ該シーケンスの入出力データを記憶するバッファメモ
リ及び該シーケンスのプログラムを記憶しておくメモリ
とを有するプログラマブルロジックコントローラにおい
て、 プログラムの格納と修正を行うためバッファメモリを設
けたことを特徴とするリアルタイム修正型プログラマブ
ルロジックコントローラ。
[Claims] 1. A CPU that processes a process sequence, an input/output device for the process, a buffer memory provided between these for storing input/output data of the sequence, and a program for the sequence. What is claimed is: 1. A real-time modification programmable logic controller comprising a memory for storing programs, the programmable logic controller having a buffer memory for storing and modifying programs.
JP8380784A 1984-04-27 1984-04-27 Real time correction type programmable logic controller Pending JPS60229106A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8380784A JPS60229106A (en) 1984-04-27 1984-04-27 Real time correction type programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8380784A JPS60229106A (en) 1984-04-27 1984-04-27 Real time correction type programmable logic controller

Publications (1)

Publication Number Publication Date
JPS60229106A true JPS60229106A (en) 1985-11-14

Family

ID=13812936

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8380784A Pending JPS60229106A (en) 1984-04-27 1984-04-27 Real time correction type programmable logic controller

Country Status (1)

Country Link
JP (1) JPS60229106A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1989005003A1 (en) * 1987-11-19 1989-06-01 Fanuc Ltd Method of editing a program for pc
JPH02100103A (en) * 1988-10-07 1990-04-12 Fuji Electric Co Ltd Programmable controller
JPH02130633A (en) * 1988-11-11 1990-05-18 Fuji Electric Co Ltd On-line editing method for program
US5544046A (en) * 1991-09-17 1996-08-06 Mitsubishi Denki Kabushiki Kaisha Numerical control unit
JP2003131710A (en) * 2001-10-26 2003-05-09 Digital Electronics Corp Programmable display unit
JP2009076072A (en) * 2007-09-18 2009-04-09 Fisher Rosemount Syst Inc Method and device for upgrading and providing control redundancy in process plant
JP2017097516A (en) * 2015-11-20 2017-06-01 東芝三菱電機産業システム株式会社 Debug support system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1989005003A1 (en) * 1987-11-19 1989-06-01 Fanuc Ltd Method of editing a program for pc
JPH02100103A (en) * 1988-10-07 1990-04-12 Fuji Electric Co Ltd Programmable controller
JPH02130633A (en) * 1988-11-11 1990-05-18 Fuji Electric Co Ltd On-line editing method for program
US5544046A (en) * 1991-09-17 1996-08-06 Mitsubishi Denki Kabushiki Kaisha Numerical control unit
JP2003131710A (en) * 2001-10-26 2003-05-09 Digital Electronics Corp Programmable display unit
JP2009076072A (en) * 2007-09-18 2009-04-09 Fisher Rosemount Syst Inc Method and device for upgrading and providing control redundancy in process plant
JP2017097516A (en) * 2015-11-20 2017-06-01 東芝三菱電機産業システム株式会社 Debug support system

Similar Documents

Publication Publication Date Title
CN105912356B (en) A kind of optical module firmware program on-line upgrading method for supporting version rollback
CN101395577A (en) Method for evaluating, an automation system, and a controller
US4718007A (en) Power control method and apparatus for data processing systems
JPS60229106A (en) Real time correction type programmable logic controller
US20050216792A1 (en) Debug system
JPH0390904A (en) Sequence controller
CN109483536B (en) Additional axis adding method and device for robot, storage medium and robot
JP2002251291A (en) Control method, control program, memory cell and controller for technical process inside vehicle
JP3573891B2 (en) Power system protection control system
JP2837455B2 (en) Distributed control device and program test method thereof
JP2581019B2 (en) How to debug sequence programs
JPH05282163A (en) Information processor
JP2004348178A (en) Program writing method
JPH04373036A (en) Software testing device for computer system
JP3201113B2 (en) Production management device
JPH11265209A (en) Sequence control method and device therefor
JP2539264B2 (en) Sequence controller
JPH10133727A (en) Method and device for controlling nc machine tool
JPS6295651A (en) Program loading system
JPH05241889A (en) Step execution system of machine instruction
JPH1091478A (en) Agent managing method
JPH0736703A (en) Down-loading method
JPH07210378A (en) Software exchange method for multiprocessor system
JPH10171660A (en) Data communication device
CN117032043A (en) Industrial control restarting method and system