JPH02196305A - Program editing system for programmable controller - Google Patents

Program editing system for programmable controller

Info

Publication number
JPH02196305A
JPH02196305A JP1733689A JP1733689A JPH02196305A JP H02196305 A JPH02196305 A JP H02196305A JP 1733689 A JP1733689 A JP 1733689A JP 1733689 A JP1733689 A JP 1733689A JP H02196305 A JPH02196305 A JP H02196305A
Authority
JP
Japan
Prior art keywords
program
address
block
time
addresses
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
JP1733689A
Other languages
Japanese (ja)
Inventor
Masahiko Kitamura
昌彦 北村
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP1733689A priority Critical patent/JPH02196305A/en
Publication of JPH02196305A publication Critical patent/JPH02196305A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the deterioration of the response time of a programmable controller by rewriting only the program that is accordant with the prescribed number of addresses (steps) within a fixed scan time at addition or deletion of programs and performing the adding or deleting operations of all programs in plural scan times. CONSTITUTION:A program (j) is stored in the final address (n+9) of the addresses storing the programs (a)-(j) respectively for each instruction in the present one step. Then the program (j) is rewritten into a rear address (n+10). Hereafter the program (i) of an address (n+8) and the program (h) of an address (n+7) are rewritten into the addresses (n+9) and (n+8) respectively in each step. Then a non-execution instruction (NOP) is written into the head address (n+6) of an unchanged block. Thus the rewriting actions are through in a scan mode. As a result, one scan time is never increased and the deterioration of the response time is avoided for a programmable controller.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明はプログラマブルコントローラのプログラム編集
方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a program editing method for a programmable controller.

[従来の技術] プログラマブルコントローラは演算処理を行う1スキャ
ンタイム内にプログラム実行処理と、プログラムの作成
、編集、読み出し、書き込み(挿入、削除、消去)や、
プログラマブルコントローラのプログラム実行中の動作
モニタなとの処理をプログラミング装置からの通信によ
って行う応答処理とが成され、この応答処理を一般にツ
ールサービスと言い、このツールサービスと、プログラ
ム実行とは時分割的に1スキャンタイム内でおこなわれ
る。つまりプログラムの実行が1サイクル終了後(プロ
グラムの先頭アドレスから最終アドレスまでの一連のプ
ログラムを1回実行しな後)、プログラミング装置から
の通信があればそれに対応したツールサビスを行い、こ
の動作の一巡が1スキヤンで、それに要する時間を1ス
キャンタイムと称している。
[Prior Art] A programmable controller performs program execution processing, program creation, editing, reading, writing (insertion, deletion, erasure), etc. within one scan time for performing arithmetic processing.
A response process is performed to monitor the operation of the programmable controller during program execution through communication from the programming device.This response process is generally called a tool service, and this tool service and program execution are time-shared. This is done within one scan time. In other words, after one cycle of program execution is completed (after the series of programs from the start address to the last address of the program is executed once), if there is communication from the programming device, the corresponding tool service is performed, and this operation completes. is one scan, and the time required for it is called one scan time.

ところでプログラマブルコントローラのプロゲラl\の
編集を行う場合、例えばプログラムの挿入を行う場合に
は、挿入するアドレス以降のプログラムは総て挿入する
プログラムの背後ろへすれるため、プログラムを順次書
き換える操作が必要となる。例えはプログラムの先頭に
挿入する場合には、全プログラムを順次書き換える必要
がある。
By the way, when editing the programmable controller's Progera l\, for example when inserting a program, all programs after the inserted address are moved behind the inserted program, so it is necessary to rewrite the programs one after another. becomes. For example, when inserting it at the beginning of a program, it is necessary to rewrite the entire program in sequence.

またプログラムの削除を行う場合には削除するアドレス
以降のプログラムは総て削除するプログラムの分、先方
へずれることになり、そのためプログラムを順次書き換
える操作か必要となる。例えばプログラムの先頭を削除
する場合には全プログラムを挿入時と同様に順次書き換
える必要がある。
Furthermore, when deleting a program, all programs after the address to be deleted will be shifted forward by the amount of the program to be deleted, so it is necessary to rewrite the programs one by one. For example, when deleting the beginning of a program, it is necessary to sequentially rewrite the entire program in the same way as when inserting the program.

従来のプログラマブルコントローラではこのようなプロ
グラムの書き換え変更を行う場合に、1スキヤンにおい
て1度の動作で行っていた。
In conventional programmable controllers, such program rewriting and changes are performed once in one scan.

[発明が解決しようとする課題] 従来の方法ではプログラムの挿入箇所や、削除箇所によ
って動作に要する時間にばらつきが出てくること、また
その動作時間の最大値が通常のスキャンタイム(1ms
程度)に比較して無視できない長さになり、プログラマ
ブルコントローラの応答速度が低下するという問題があ
った。
[Problems to be solved by the invention] In the conventional method, the time required for operation varies depending on the insertion point and deletion point of the program, and the maximum value of the operation time is less than the normal scan time (1 ms).
The problem is that the length is not negligible compared to the length of the programmable controller, and the response speed of the programmable controller is reduced.

本発明は上述の問題点に鑑みてスキャンタイムが長くな
らずに、プログラムの編集が行えるプログラマブルコン
トローラのプログラムの編集方式を提供するにある。
SUMMARY OF THE INVENTION In view of the above-mentioned problems, the present invention provides a method for editing a program of a programmable controller, which allows editing of a program without increasing scan time.

[課題を解決する手段] 請求項1記載の発明は1スキャンタイム内にI/Oデー
タの転送やプログラム実行のような実行処理と、プログ
ラミング手段からの応答処理とを時分割で行うプログラ
マフルコントローラにおいて、応答処理としてのプログ
ラムの挿入書き換え時に、応答処理に対して一定の1ス
キャンタイムで割り当てられた一定時間内でプログラム
の書き換えができるアドレス数を予め設定し、現在プロ
グラムが格納されているアドレスの最終アドレスから新
たにプログラムを挿入するアドレスまで上記アドレス数
に対応した数のアドレス毎にブロック化し、1スキャン
タイム内の応答処理時間内で最終アドレス側のブロック
内の最終アドレスから当該ブロック内の先頭アドレスま
でに格納されているプログラムの格納アドレスを順次1
アドレスずつ後方へ変更するとともに変更前の当該ブロ
ックの残っているアドレスに非実行命令を書き込み、こ
のブロック単位のプログラムの格納アドレスの変更処理
を最終ブロックから先頭ブロックに至るまで順次1スキ
ャンタイム毎に行い、先頭ブロックのプログラムの格納
アドレスの変更後に、変更前の先頭アドレスに挿入プロ
グラムを格納することを特徴とする 請求項2記載の発明は1スキャンタイム内にI/Oデー
タの転送やプログラム実行のような実行処理と、プログ
ラミング手段からの応答処理とを時分割で行うプログラ
マブルコントローラにおいて、応答処理としてのプログ
ラムの削除書き換え時に、応答処理に対して一定の1ス
キャンタイムで割り当てられた一定時間内でプロイグラ
ムの書き換えができるアドレス数を予め設定し、削除さ
れるプログラムが格納されているアドレスの最終アドレ
ス以降で、残りのプログラムが格納されているアドレス
の先頭アドレスから最終アドレスまで上記アドレス数の
アドレス毎にブロック化し、1スキャンタイム内の応答
処理時間内で先頭アドレス側のブロック内の先頭アドレ
スから当該ブロック内の最終アドレスまでに格納されて
いるプロゲラl\の格納アドレスを順次1ステツプ毎に
1アドレス先方へ変更するとともに変更後に変更前の当
該ブロックのプログラムが残っているアドレスに非実行
命令を書き込みを行い、このブロック単位のプロゲラl
\の格納アドレスの変更処理を先頭ブロックから最終ブ
ロックに至るまで順次1スキャンタイム毎に行うことを
特徴とする。
[Means for Solving the Problem] The invention according to claim 1 provides a programmer full controller that performs execution processing such as I/O data transfer and program execution and response processing from programming means in a time-sharing manner within one scan time. When inserting and rewriting a program as a response process, the number of addresses where the program can be rewritten within a certain period of time allocated to the response process in one scan time is set in advance, and the address where the program is currently stored is set in advance. From the last address in the block to the address where a new program is inserted, the blocks are divided into addresses corresponding to the number of addresses above, and from the last address in the block on the final address side to the address in the block in question within the response processing time within one scan time. The storage addresses of programs stored up to the first address are sequentially 1
The address is changed backward one by one, and a non-executable instruction is written to the remaining address of the block before the change, and the process of changing the storage address of the program in block units is performed sequentially every scan time from the last block to the first block. The invention according to claim 2 is characterized in that after changing the storage address of the program in the first block, the inserted program is stored at the first address before the change. In a programmable controller that performs execution processing and response processing from the programming means in a time-sharing manner, when a program is deleted or rewritten as response processing, within a fixed time allotted to the response processing by a fixed 1 scan time. Set in advance the number of addresses where the program can be rewritten, and after the last address of the address where the program to be deleted is stored, from the first address of the address where the remaining program is stored to the last address, the above number of addresses will be set. The storage addresses of the progera l\ stored from the first address in the block on the first address side to the last address in the block are sequentially processed one by one at each step within the response processing time within one scan time. At the same time as changing the address to the other side, a non-executable instruction is written to the address where the program of the block before the change remains after the change.
It is characterized in that the process of changing the storage address of \ is performed sequentially every scan time from the first block to the last block.

[作用] 而して本発明によればプログラムの挿入或は削除の際に
スキャンタイム内の一定時間内に所定のアドレス数(ス
テップ数)に対応したプログラムのみを書き換えて全プ
ログラムの挿入或は削除を複数のスキャンタイムに分け
るため、1スキヤンタイツ\が長くならす、結果プログ
ラマブルコントローラの応答時間の低下が無い。
[Operation] According to the present invention, when inserting or deleting a program, only the program corresponding to a predetermined number of addresses (number of steps) is rewritten within a certain period of time within the scan time, and all programs are inserted or deleted. Since deletion is divided into multiple scan times, there is no reduction in the response time of the programmable controller, which increases the length of one scan.

[実施例コ 以下本発明を実施例により説明する。[Example code] The present invention will be explained below with reference to Examples.

第1図は請求項1記載の発明に対応するプログム挿入に
かかる実施例の過程を示しており、1スキヤンタイl\
で割り当てられた一定時間内でプローフ イブラムの書き換えができるアドレス数を3スツテツプ
と本実施例では予め設定している。この場合1アドレス
が1命令のプロゲラl\が格納されているとしている。
FIG. 1 shows the process of an embodiment of inserting a program corresponding to the invention as claimed in claim 1.
In this embodiment, the number of addresses at which the proof ram can be rewritten within the fixed time allotted is preset to 3 steps. In this case, it is assumed that one address stores one instruction, Progera l\.

而して新たに1アドレスに格納できるプログラムAをア
ドレスnに挿入する場合にあってはプログラム装置から
プログラム挿入の通信があってからの最初の1スキャン
タイムにおいて、第1図(イ)に示すようにまず、現在
の1ステツプで1命令単位の各プログラムa〜jが格納
されているアドレスの最終アドレスrl+9に格納され
ているプログラムjを後方のアドレスn+/O(図示せ
ず)へ書き換え、以後アドレスn+8のプログラムiを
n+9へ、アドレスn+7のプログラムhをn+8へ夫
々1ステツプずつ書き換える。つまり3ステツプでブロ
ック化されたアドレスのプログラムを書き換えるのであ
る。この書き換え変更後変更される前の当該ブロックの
先頭アドレスn+6に非実行命令(以下NOPと略す)
を書き込んで当該スキャンにおける書き換え動作を終了
させる。
When a new program A that can be stored in one address is inserted into address n, the process shown in FIG. First, in one step, the program j stored at the final address rl+9 of the addresses where the programs a to j of one instruction unit are stored is rewritten to the backward address n+/O (not shown). Thereafter, the program i at address n+8 is rewritten to n+9, and the program h at address n+7 is rewritten to n+8, one step at a time. In other words, the program at the blocked address is rewritten in three steps. A non-executable instruction (hereinafter abbreviated as NOP) is placed at the start address n+6 of the block before being changed after this rewriting change.
is written to end the rewriting operation in the relevant scan.

ここでNOPを書き込むのは、もしNOPが書き込まれ
ていなければ、前に当該アドレスに書き込まれているプ
ログラム、第1図くイ)の場合であればgのプロゲラl
\が残ったままとなり、次のスキャンでプロゲラl\が
実行されると、gのプログラムが2回連続して実行され
、第1図(イ)のプログラムの実行とは異なってしまっ
て不都合が生じる恐れがあるなめである。
The reason for writing NOP here is that if NOP has not been written, the program that was previously written to the address, and in the case of Figure 1 (b), the program g's program l.
\ remains, and when Progera l\ is executed in the next scan, the program g will be executed twice in succession, which will be different from the program execution in Figure 1 (a), which will be inconvenient. This is a lick that may occur.

このようにして順次スキャン毎にブロック毎にプログラ
ムの格納アドレスの変更を第1図(イ)〜(ハ)のよう
に行い、最終的に先頭ブロックの変更が行われた際に、
従前にaのプログラムが格納されていたアドレスnに挿
入プログラムAを第1図(ニ)に示すように格納し、プ
ログラム挿入動作が完了する。
In this way, the program storage address is changed for each block in each sequential scan as shown in Figure 1 (A) to (C), and when the first block is finally changed,
The insertion program A is stored at address n where program a was previously stored as shown in FIG. 1(d), and the program insertion operation is completed.

尚プログラマブルコントローラによっては1ステツプ・
が1命令でなく複数ステップで1命令を構成している場
合には、機械的にアドレス数だけでブロック化を図れば
、1スキヤンで書き換えられたプログラムが1命令を完
結していない場合が生して次の演算処理で命令実行がで
きない場合か生しるので、この場合は1スキヤンでアド
レスの変更を行うブロックのアドレス数を命令単位若1
−<は完結した命令ブロック単位に斤うように定めれば
良い。第2図はプロフラノ、■〕1、(P21.P22
)(F’31. P 32)というように格納アドレス
数が貢なってアドレス変更に要するステップ数か夫11
プログラムで異なる場合の変更手順を示し、第2図(イ
)ではアドレス3にプロクラムP】を挿入する状況を示
しており、この場合まず1スキヤンでアドレス変更を行
うブロックのアドレス数はプログラム(P 31+ P
 :12)に対応して設定され、このアドレス数に応し
たステップ数によってプログラム(P ’ll+ P 
:12>の格納アドレスを変更し、その変更前のプロフ
ラノ\の先頭アドレス3にプログラムPiを第2図(ロ
)に示す挿入する。この場合挿入完了か]スキャン内で
終わるため、NOPの書き込みを行う必要が無いのであ
る。
Depending on the programmable controller, one step
If one instruction consists of multiple steps rather than one instruction, if you mechanically create blocks based only on the number of addresses, there may be cases where a program rewritten in one scan does not complete one instruction. In this case, the number of addresses of the block whose addresses are to be changed in one scan is reduced by one instruction per scan.
-< may be determined for each completed instruction block. Figure 2 shows Profurano, ■〕1, (P21.P22
) (F'31.P32), the number of steps required to change the address depends on the number of stored addresses.
Figure 2 (a) shows a situation where program P] is inserted into address 3. In this case, the number of addresses of the block whose address is changed in one scan is 31+P
:12), and the program (P 'll + P
:12> is changed, and the program Pi shown in FIG. 2 (b) is inserted into the starting address 3 of Profurano\ before the change. In this case, is the insertion completed?] Since the process ends within the scan, there is no need to write NOP.

第3図は]スキャン内にお()る変更できるアドレス数
を完結した命令フロック単位に対応して設定した場合を
示し、順次各スキャン毎に命令ブロックE〜Bの格納ア
ドレスを第2図(イ)〜(ハ)のように変更して、最終
的にプロフラノ\Aと、プログラムBとの間にプロフラ
ノ\Fを挿入している。
Figure 3 shows a case in which the number of addresses that can be changed within a scan is set corresponding to a completed instruction block unit, and the storage addresses of instruction blocks E to B are sequentially set for each scan as shown in Figure 2 (). By making changes as shown in (a) to (c), Profurano\F is finally inserted between Profurano\A and Program B.

勿論1スキヤンでのアドレス変更時におけるプログラム
重複箇所にはNOPを入れている。
Of course, NOPs are inserted at program duplication locations when changing addresses in one scan.

第4図は請求項2記載の発明に対応するプロクム削除に
かかる実施例の過程を示しており、1スキャンタイムで
割り当てられた一定時間内でブロイクラムの書き換えか
てきるアドレス数を3スツデツプと本実施例では予め設
定している。この場合1アドレスが1命令のプログラム
が格納されているとしている。
FIG. 4 shows the process of an embodiment of program deletion corresponding to the invention as claimed in claim 2, in which the number of addresses that can be used to rewrite the block diagram within a fixed time allotted for one scan time is 3 steps. In the embodiment, it is set in advance. In this case, it is assumed that one address stores a program of one instruction.

而してプログラムaを削除するにあってはプログラム装
置からプロクラl\挿大の通信かあってからの最初の1
スキャンタイムにおいて、第4図(イ)に示すようにま
す、現在の1ステツプで1命令単位の各プロクラム1〕
〜dが格納されているアドレスの先頭アドレスn +1
に格納されているプロクラムbを先方のアドレスr1へ
書き換え、以後アドレスn+2のプログラムCをr1+
1へ、アドレスn −1−3のプログラムdをn +’
2へ夫々]ステップずつ書き換える。つまり3スデツプ
でブロック化されたアドレスのプログラムを書き換える
のである。変更される前の当該ブロックの最終アドレス
r+’+3に非実行命令(以下NOPと略ず)を書き込
んで当該スキャンにおける書き換え動作を終了さぜる。
Therefore, when deleting program a, the first step after there is a communication from the programming device to the program
At the scan time, as shown in Figure 4 (a), each program 1 in the unit of one instruction in the current one step]
Start address n + 1 of the address where ~d is stored
Rewrite the program b stored in the address r1 to the other party's address r1, and then rewrite the program C at address n+2 to r1+.
1, program d at address n -1-3 to n +'
2 respectively] Rewrite step by step. In other words, the program is rewritten in blocks of addresses in three steps. A non-executable instruction (hereinafter abbreviated as NOP) is written to the final address r+'+3 of the block before being changed, thereby ending the rewrite operation in the scan.

ここてNOPを書き込むのは、挿入時と同様な理由であ
る。
The reason for writing NOP here is the same as when inserting.

このようにして順次スキャン毎にブロック毎にプロクラ
ムの格納アドレスの変更を第4図(イ)〜(ハ)のよう
に行い、最終的に最終ブロックの変更か行われた際に、
従前にjのプロクラl\が格納されていたアドレスn 
−t−9に第4図(ニ)に示すようにNOPを書き込ん
でプロフラノ\削除動作か完了する。
In this way, the program storage address is changed for each block in each sequential scan as shown in Figure 4 (A) to (C), and when the final block is finally changed,
Address n where j's program l\ was previously stored
- Write NOP in t-9 as shown in FIG. 4(d) to complete the profurano\ deletion operation.

尚プログラマブルコントローラによっては1ステツプか
1命令でなく複数ステップで1命令を構成している場合
には、機械的にアドレス数たけてプロ・ツク化を図れば
、1スキヤンで書き換えられ1ま たプログラムが1命令を完結していない場合が生して次
の演算処理で命令実行ができない場合が生しるので、こ
の場合は1スキヤンでアドレスの変更を行うブロックの
アドレス数を命令単位若しくは完結した命令ブロック単
位に合うように定めれば良い。第5図はプログラムP1
、(P25. P22>(P:11. P32) 、 
 (P41. P42)というように格納アドレス数が
異なってアドレス変更に要するステップ数が夫々プログ
ラムで異なる場合の変更手順を示しており、第5図(イ
)におけるアドレス1,2に格納されているプログラム
(P21.P、2)を削除する状況を示しており、この
場合まず1スキヤンでアドレス変更を行うブロックのア
ドレス数は2プログラム<P31. P)2) 、  
(P、1゜P、2)に対応して設定され、このアドレス
数に応じたステップ数によってプログラム(P31. 
P 32)(P41,42)の格納アドレスを順次繰り
上げて変更してプログラム(P21. P22)を削除
する。
Depending on the programmable controller, if one instruction is composed of multiple steps instead of one step or one instruction, if you mechanically increase the number of addresses and create a program, it will be rewritten in one scan and the program will be rewritten once. In some cases, one instruction is not completed and the instruction cannot be executed in the next calculation process. It may be determined to suit each block. Figure 5 shows program P1
, (P25. P22>(P:11. P32) ,
(P41. P42) shows the change procedure when the number of stored addresses is different and the number of steps required to change the address is different for each program. This shows a situation where a program (P21.P, 2) is deleted, and in this case, the number of addresses of the block whose addresses are changed in one scan is 2 programs < P31. P)2),
(P, 1°P, 2), and the program (P31.
P32) The storage address of (P41, 42) is incremented and changed in sequence, and the program (P21. P22) is deleted.

第6図は1スキヤン内における変更できるアドレス数を
完結した命令ブロック単位に対応して設定した場合を示
し、順次各スキャン毎に命令ブロックB−Eの格納アド
レスを第6図くイ)〜(ハ〉のように変更している。勿
論アドレス変更時におけるプログラム重複箇所には第6
図(ニ)に示すようにNOPを入れている。
Figure 6 shows the case where the number of addresses that can be changed within one scan is set corresponding to each completed instruction block, and the storage addresses of instruction blocks B to E are sequentially changed for each scan in Figure 6 (A) to (A) to (A). Of course, when the address is changed, the program overlaps with the 6th
As shown in Figure (d), NOP is inserted.

[発明の効果] 本発明によればプログラムの挿入或は削除の際にスキャ
ンタイム内の一定時間内に所定のアドレス数(ステップ
数)に対応したプログラムのみを書き換えて全プログラ
ムの挿入或は削除を複数のスキャンタイムに分けるため
、1スキャンタイムが長くならず、結果プログラマブル
コントローラの応答時間の低下が無いという効果を奏す
る。
[Effects of the Invention] According to the present invention, when inserting or deleting a program, only the program corresponding to a predetermined number of addresses (number of steps) is rewritten within a certain period of time within the scan time, and all programs can be inserted or deleted. Since it is divided into a plurality of scan times, one scan time does not become long, and as a result, there is an effect that the response time of the programmable controller does not decrease.

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

第1図は請求項1記載の発明の一実施例の説明図、第2
図は本発明の別の実施例の説明図、第3図は本発明の他
の実施例の説明図、第4図は請求項1記載の発明の一実
施例の説明図、第5図は本発明の別の実施例の説明図、
第6図は本発明の他の実施例の説明図である。 0−へn寸 0−へrQぐ0
FIG. 1 is an explanatory diagram of one embodiment of the invention as claimed in claim 1, and FIG.
FIG. 3 is an explanatory diagram of another embodiment of the present invention, FIG. 4 is an explanatory diagram of one embodiment of the invention according to claim 1, and FIG. 5 is an explanatory diagram of another embodiment of the invention. An explanatory diagram of another embodiment of the present invention,
FIG. 6 is an explanatory diagram of another embodiment of the present invention. 0-to n dimension 0-to rQgu 0

Claims (2)

【特許請求の範囲】[Claims] (1)1スキャンタイム内にI/Oデータの転送やプロ
グラム実行のような実行処理と、プログラミング手段か
らの応答処理とを時分割で行うプログラマブルコントロ
ーラにおいて、応答処理としてのプログラムの挿入書き
換え時に、応答処理に対して一定の1スキャンタイムで
割り当てられた一定時間内でプログラムの書き換えがで
きるアドレス数を予め設定し、現在プログラムが格納さ
れているアドレスの最終アドレスから新たにプログラム
を挿入するアドレスまで上記アドレス数に対応した数の
アドレス毎にブロック化し、1スキャンタイム内の応答
処理時間内で最終アドレス側のブロック内の最終アドレ
スから当該ブロック内の先頭アドレスまでに格納されて
いるプログラムの格納アドレスを順次1アドレスずつ後
方へ変更するとともに変更前の当該ブロックのプログラ
ムが残っているアドレスに非実行命令を書き込み、この
ブロック単位のプログラムの格納アドレスの変更処理を
最終ブロックから先頭ブロックに至るまで順次1スキャ
ンタイム毎に行い、先頭ブロックのプログラムの格納ア
ドレスの変更後に、変更前の先頭アドレスに挿入プログ
ラムを格納することを特徴とするプログラマブルコント
ローラのプログラム編集方式。
(1) In a programmable controller that performs execution processing, such as I/O data transfer and program execution, and response processing from programming means in a time-sharing manner within one scan time, when inserting and rewriting a program as response processing, The number of addresses at which the program can be rewritten within a certain period of time allocated to one scan time for response processing is set in advance, from the last address where the program is currently stored to the address where a new program is to be inserted. The storage address of the program is divided into blocks for each number of addresses corresponding to the number of addresses above, and is stored from the final address in the block on the final address side to the first address in the block within the response processing time within one scan time. is sequentially changed backward one address at a time, and a non-executable instruction is written to the address where the program of the block before the change remains, and the process of changing the storage address of the program in this block is performed sequentially from the last block to the first block. A program editing method for a programmable controller, which is performed every scan time, and after changing the storage address of a program in a first block, an inserted program is stored at the first address before the change.
(2)1スキャンタイム内にI/Oデータの転送やプロ
グラム実行のような実行処理と、プログラミング手段か
らの応答処理とを時分割で行うプログラマブルコントロ
ーラにおいて、応答処理としてのプログラムの削除書き
換え時に、応答処理に対して一定の1スキャンタイムで
割り当てられた一定時間内でプロイグラムの書き換えが
できるアドレス数を予め設定し、削除されるプログラム
が格納されているアドレスの最終アドレス以降で、残り
のプログラムが格納されているアドレスの先頭アドレス
から最終アドレスまで上記アドレス数のアドレス毎にブ
ロック化し、1スキャンタイム内の応答処理時間内で先
頭アドレス側のブロック内の先頭アドレスから当該ブロ
ック内の最終アドレスまでに格納されているプログラム
の格納アドレスを順次1ステップ毎に1アドレス先方へ
変更するとともに変更後に変更前の当該ブロックのプロ
グラムが残っているアドレスに非実行命令を書き込みを
行い、このブロック単位のプログラムの格納アドレスの
変更処理を先頭ブロックから最終ブロックに至るまで順
次1スキャンタイム毎に行うことを特徴とするプログラ
マブルコントローラのプログラム編集方式。
(2) In a programmable controller that performs execution processing such as I/O data transfer and program execution and response processing from programming means in a time-sharing manner within one scan time, when deleting or rewriting a program as response processing, The number of addresses at which the program can be rewritten within a fixed time allocated to one scan time for response processing is set in advance, and the remaining programs are rewritten after the last address where the program to be deleted is stored. The stored addresses are divided into blocks from the first address to the last address for each address of the above number of addresses, and from the first address in the block on the first address side to the last address in the block within the response processing time within one scan time. The storage address of the stored program is sequentially changed one address at a time, and a non-executable instruction is written to the address where the program of the block before the change remains after the change, and the program of this block unit is changed. A program editing method for a programmable controller characterized in that storage address change processing is sequentially performed every scan time from the first block to the last block.
JP1733689A 1989-01-26 1989-01-26 Program editing system for programmable controller Pending JPH02196305A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1733689A JPH02196305A (en) 1989-01-26 1989-01-26 Program editing system for programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1733689A JPH02196305A (en) 1989-01-26 1989-01-26 Program editing system for programmable controller

Publications (1)

Publication Number Publication Date
JPH02196305A true JPH02196305A (en) 1990-08-02

Family

ID=11941209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1733689A Pending JPH02196305A (en) 1989-01-26 1989-01-26 Program editing system for programmable controller

Country Status (1)

Country Link
JP (1) JPH02196305A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009223589A (en) * 2008-03-15 2009-10-01 Omron Corp Development support device for control program
US20100174387A1 (en) * 2008-12-26 2010-07-08 Omron Corporation Programmable controller

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6184705A (en) * 1984-10-01 1986-04-30 Yaskawa Electric Mfg Co Ltd User's program modifying method of programmable controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6184705A (en) * 1984-10-01 1986-04-30 Yaskawa Electric Mfg Co Ltd User's program modifying method of programmable controller

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009223589A (en) * 2008-03-15 2009-10-01 Omron Corp Development support device for control program
US20100174387A1 (en) * 2008-12-26 2010-07-08 Omron Corporation Programmable controller
US8346378B2 (en) * 2008-12-26 2013-01-01 Omron Corporation Programmable controller

Similar Documents

Publication Publication Date Title
JPH01270164A (en) Simulation system
JPH02196305A (en) Program editing system for programmable controller
JP4571355B2 (en) Control method, control program, memory element, control device for technical process in vehicle
JP2621631B2 (en) Programmable controller
JPS60136810A (en) Programmable controller
JPS60237503A (en) High-speed processing system of sequence controller
JPH11305954A (en) Semiconductor memory device and reloading control method therefor
JP3207333B2 (en) Programmable controller
JP3328714B2 (en) Programmable controller
JP2002278774A (en) Method and device for generating instruction word in controlling function unit in processor
JPH11259308A (en) Programmable controller
JPH01169504A (en) Programmable controller
JP2000250753A (en) Digital signal processor
JPH04104345A (en) Write control system for partial rewrite data of main storage device with ecc mechanism
JPS5927303A (en) Program correcting device
JPS63314660A (en) Cache test system
JPH04236604A (en) Robot controller
JPH06274658A (en) Continuous filter processing execution control method for data driving information processor
JPH0272430A (en) Arithmetic processor
JPS60186893A (en) Display unit
JPS63276629A (en) Sorting system for record in file
JPS62182904A (en) Programmable controller
JPS6120907B2 (en)
JPS615338A (en) Restoration system of screen editing data
JPH0816809A (en) Drawing system