JPS62152002A - Programmable controller - Google Patents

Programmable controller

Info

Publication number
JPS62152002A
JPS62152002A JP60291899A JP29189985A JPS62152002A JP S62152002 A JPS62152002 A JP S62152002A JP 60291899 A JP60291899 A JP 60291899A JP 29189985 A JP29189985 A JP 29189985A JP S62152002 A JPS62152002 A JP S62152002A
Authority
JP
Japan
Prior art keywords
memory
logic
logical
shadow
contents
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
JP60291899A
Other languages
Japanese (ja)
Inventor
Toru Shigeoka
重岡 徹
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.)
Yaskawa Electric Corp
Original Assignee
Yaskawa Electric Manufacturing Co 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 Yaskawa Electric Manufacturing Co Ltd filed Critical Yaskawa Electric Manufacturing Co Ltd
Priority to JP60291899A priority Critical patent/JPS62152002A/en
Publication of JPS62152002A publication Critical patent/JPS62152002A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain the on-line editing of programs at a high speed without giving any effect to a logical decoding operation, by providing a shadow memory to store the same contents as a logic memory and changing the contents of the shadow memory. CONSTITUTION:When a request is received for change of the contents of a logic memory 1, a CPU performs the changing operations to a shadow memory 2 for insertion, addition, deletion, etc. Here a logical decoding part 3 reads out successively the memory 1 for logical decoding processing. When the change is through with the memory 2, an editing end signal 13 is supplied to a read/ write control part 4. Then the part 3 reads out successively the memory 2 for logical decoding processing in the next scan mode. In this case, the data are transferred to the memory 1 from the memory 2 via a data buffer 6. Then the contents of the memory 2 are coincident with those of the memory 1 when the logical decoding processing is through with a single scan. Thus the memory 1 is used again for the logical decoding process at and after the next scan.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は°プログラマブルコントローラに関する。[Detailed description of the invention] [Industrial application field] The present invention relates to a programmable controller.

〔従来の技術〕[Conventional technology]

従来、プログラマブルコントローラは第2図に示すよう
に170サービス、論理解読、通信処理をサイクリック
に行なっている。
Conventionally, a programmable controller cyclically performs 170 services, logic decoding, and communication processing as shown in FIG.

ユーザプログラムの変更等のオンラインでの編集は従来
、次のように行なわれていた。
Online editing, such as changing a user program, has conventionally been performed as follows.

(1)既存のプログラムの間に新たなプログラムを挿入
、追加する場合。
(1) When inserting or adding a new program between existing programs.

■)論理メモリのプログラムが存在する部分の最後のブ
ロックを新たに追加するステップ数だけ後方にずらす。
■) Shift the last block of the part of the logical memory where the program exists backwards by the number of newly added steps.

II )空きができた部分にNOP (無効命令)を書
込む。
II) Write NOP (invalid instruction) to the vacant part.

以上2つの操作をまず行ない、挿入を行なうブロックで
なければさらに次のようにする。
First perform the above two operations, and if the block does not require insertion, proceed as follows.

■)次のブロックを挿入ステップ数だけ後方にずらす。■) Shift the next block backward by the number of insertion steps.

■)空いた部分にNOPを書込む。■) Write NOP in the empty space.

以上m)、rv)の操作を繰り返し、挿入位置に到達し
たら、 ■)新たなプログラムを空いた部分に書込む。
Repeat the operations m) and rv) above, and when the insertion position is reached, 1) write a new program into the empty area.

以上の操作を1スキヤンができるだけ長くならないよう
に数スキャンに分割して行なう。
The above operations are performed by dividing into several scans so that one scan is as long as possible.

(2)既存のプログラムを削除する場合。(2) When deleting an existing program.

既存のプログラムの任意の部分の削除は挿入と逆向きの
データ移動を行なうことにより行なわれる。
Deletion of any part of an existing program is accomplished by moving data in the opposite direction of the insertion.

■)削除対象のプログラムは、その後に占かれているプ
ログラムを前方に、削除するステップ数だけ移動するこ
とにより削除される。
(2) The program to be deleted is deleted by moving the subsequently occupied program forward by the number of steps to be deleted.

■)移動により生じた空きの部分にNOPを書込む。(2) Write NOP in the empty space created by the movement.

以上の2つの操作をまず行ない、さらに、最終領域まで ■)削除ステップ数だけプログラムを何方にずらす。Perform the above two operations first, and then proceed to the final area. ■) Shift the program by the number of steps to be deleted.

■)空き部分にNOPを書込む。■) Write NOP in the empty space.

m)、rV)を複数スキャンで行ない、最終領域に到達
したらm)の移動のみとする。
m) and rV) are performed in multiple scans, and when the final area is reached, only m) is moved.

以上にて、削除が完了する。With the above steps, deletion is completed.

〔発明か解決しようとする問題点〕[The problem that the invention attempts to solve]

ト述した従来のガ法は、編集を一度に行なうのではなく
数スキへ・ンに分割して行なうため、完γまでに時間が
かかり、スキャンもやはり長くなり、従って、プログラ
ムの変更処理の応答性はあまり良くないという欠点かあ
る。
In the conventional method mentioned above, editing is not done all at once but divided into several sections, so it takes time to complete the editing process, and the scanning process is also long. The downside is that the responsiveness is not very good.

本発明の目的は、スキャンにU2’Wを及ぼさずに、高
速にプログラムのオンライン編集が可能なプログラマブ
ルコントローラを提供することである。
An object of the present invention is to provide a programmable controller that allows online editing of programs at high speed without affecting U2'W on scanning.

(問題点を解決するための丁段) 本発明のプログラマブルコントローラは、論理メモリと
同一の内容を記憶しているシャドウメモリと、論理メそ
りの内容変更の要求が発生ずると、シャドウメモリに対
して変更操作を行ない、変更操作が完了すると、シャド
ウメモリから論理メモリへデータ転送を行なう毛段と、
シャドウメモリに対する変更操作と並行して論理メモリ
の論理解読を行なうことができ、また、前記データ転送
と並行してシャドウメモリの論理解読を行なうことがで
きる論理解読部を備えたことを特徴とする。
(Part of the solution to the problem) The programmable controller of the present invention has a shadow memory that stores the same contents as the logical memory, and when a request to change the contents of the logical memory occurs, the programmable controller of the present invention stores the same contents as the logical memory. performs a change operation, and when the change operation is completed, transfers data from the shadow memory to the logical memory;
The present invention is characterized by comprising a logic decoding unit capable of decoding the logic of the logical memory in parallel with the modification operation on the shadow memory, and also capable of decoding the logic of the shadow memory in parallel with the data transfer. .

〔作 用〕[For production]

このように、論理メモリと同一の内容を記憶するシャド
ウメモリを備え、このシャドウメモリに対して内容変更
を行なうことにより、論理解読に影習を与えることなく
プログラムの高速なオンライン編集が可能となる。
In this way, by providing a shadow memory that stores the same contents as the logical memory, and making changes to the contents of this shadow memory, it is possible to quickly edit programs online without affecting the logical decoding. .

〔実施例〕〔Example〕

次に1本発明の実施例について図面を参照して説明する
Next, an embodiment of the present invention will be described with reference to the drawings.

第1図は本発明のプログラマブルコントローラの一実施
例を示すブロック図である。
FIG. 1 is a block diagram showing an embodiment of the programmable controller of the present invention.

本実施例では論理メモリ1とは別に同容量で。In this embodiment, it is separate from the logical memory 1 and has the same capacity.

通常状態で論理メモリ1の内容と同じ内容を記憶してい
るシャドウメモリ2を備えている。データバッファ5に
はシャドウメモリ2から読出されたデータまたは不図示
のCPuからのデータが保持される。データバッファ6
にはデータ21が保持される。データバッファ7には論
理メモリlから読出されたデータあるいはデータバッフ
76に保持されているデータ21が保持される。リード
/ライト制御部4は通常は論理解読部3からのリード信
号11またはライト信号12により論理メモリ1にリー
ド信号17またはライト信号18を出力し、また、CP
Oからのリード信号9またはライト(3号10よりシャ
ドウメモリ2に対しリード信号15またはライト信号I
6を出力するが、CPuから編集完了信号13が人力す
るとリード信号15およびライト信号!8を出力すると
ともにデータバッファ6をイネーブル状態にし、また、
論理解読部3よりスキャン完了信号14が人力するとリ
ード信号17の出力を停正する。論理メモリ1には論理
解読部3よりアドレス信号I9が与えられ、シャドウメ
モリ2にはアドレスバッファ8を介してアドレス信号1
9またはCPUからのアドレス信号20が与えら九る。
A shadow memory 2 is provided which stores the same contents as the logical memory 1 in a normal state. The data buffer 5 holds data read from the shadow memory 2 or data from a CPU (not shown). data buffer 6
Data 21 is held in . The data buffer 7 holds the data read from the logic memory I or the data 21 held in the data buffer 76. The read/write controller 4 normally outputs a read signal 17 or a write signal 18 to the logic memory 1 in response to a read signal 11 or a write signal 12 from the logic decoder 3, and also outputs a read signal 17 or a write signal 18 to the logic memory 1.
Read signal 9 or write from O (read signal 15 or write signal I to shadow memory 2 from No. 3 10)
6, but when the editing completion signal 13 is output manually from the CPU, the read signal 15 and the write signal! 8 and enables the data buffer 6, and
When the scan completion signal 14 is manually output from the logic decoder 3, the output of the read signal 17 is stopped. The logic memory 1 is given the address signal I9 from the logic decoder 3, and the shadow memory 2 is given the address signal I9 through the address buffer 8.
9 or an address signal 20 from the CPU is applied.

通常状態では、論理解読部3は論理メモリ1を逐次読出
し、論理解読を行なっている。ここで、論理メモリ1の
内容変更の要求が発生すると、CPuはシャドウメモリ
2に対し、挿入、追加および削除等の変更操作を行なう
。この時、同時に、論理解読部3は2埋メモリ1を遂次
読出し、通常時と同様に論理解読処理を行なっている。
In the normal state, the logic decoder 3 sequentially reads the logic memory 1 and performs logic decoding. Here, when a request to change the contents of the logical memory 1 occurs, the CPU performs changing operations such as insertion, addition, and deletion on the shadow memory 2. At this time, at the same time, the logic decoding section 3 successively reads out the 2-fill memory 1 and performs the logic decoding process in the same way as in normal times.

シャドウメモリ2に対する変更操作は、論理解読のスキ
ャンで中断されることなく連続している。シャドウメモ
リ2に対しての変更が完了すると、編集完了信号13が
リード/ライト制御部4に入力して次のスキャンは、論
理解読部3はシャドウメモリ2を逐次読出し、論理解読
を行なう。この時、同時に、シャドウメモリ2から論理
メモリ1へのデータの転送がデータバッファ6を介して
行なわれる。これによりこの1スキヤンの論理解読が完
ですると、シャドウメモリ2の内容と論理メモリ1の内
容が同じになる。従って、この次のスキャンからは再び
論理メモリ1を用いて論理解読を行なう。
Modification operations on the shadow memory 2 are continuous without being interrupted by logic decoding scans. When the changes to the shadow memory 2 are completed, an edit completion signal 13 is input to the read/write control section 4, and in the next scan, the logic decoding section 3 sequentially reads the shadow memory 2 and performs logic decoding. At this time, data is simultaneously transferred from the shadow memory 2 to the logic memory 1 via the data buffer 6. As a result, when the logical decoding of this one scan is completed, the contents of the shadow memory 2 and the contents of the logical memory 1 become the same. Therefore, from this next scan, the logic memory 1 is used again to perform logic decoding.

なお、シャドウメモリ2から論理メモリ1へのデータの
転送は、論理解読部3がシャドウメモリ2を読出すサイ
クルにて行なわれる。この動作を詳しく説明すると次の
ようになる。
Note that data is transferred from the shadow memory 2 to the logic memory 1 in the cycle in which the logic decoder 3 reads the shadow memory 2. This operation will be explained in detail as follows.

(1) C11Uはシャドウメモリ2に対しての変更か
完了したら次のスキャンの論理解読か始まる直1■「に
編東完r信号13をリード/ライト制御部4にパルス状
に出力する。
(1) When the change to the shadow memory 2 is completed, the C11U outputs the edit completion r signal 13 in the form of a pulse to the read/write control unit 4 immediately before the logical decoding of the next scan begins.

■リード/ライト;b制御部4は編集完r信号13を保
持する。
(2) Read/Write: The b control section 4 holds the edit completion r signal 13.

■この状態で論理解読部3からリードイエ号11がリー
ド/ライト制御部4に与えられるとり一ド/ライト制御
部4はシャドウメモリ2に対しリード信号15を、また
論理メモリ1に対してはライト信号18を出力する。ま
た、同時にシャドウメモリ2へのアドレスはアドレスバ
ッファ8が切り換えられることにより論理解読部3から
出力されているアドレス19、即ち論理メモリ1へのア
ドレス19と同一となっている。
■In this state, the read/write control unit 4 receives the read signal 11 from the logic decoding unit 3, and the read/write control unit 4 sends the read signal 15 to the shadow memory 2, and the write signal 15 to the logic memory 1. A signal 18 is output. At the same time, the address to the shadow memory 2 becomes the same as the address 19 output from the logic decoder 3, ie, the address 19 to the logic memory 1, by switching the address buffer 8.

従って、シャドウメモリ2から読出されたデータ21は
データバッファ6を介して論理解読部3へ入力されると
同時に、論理メモリ1へ書込まれる。
Therefore, the data 21 read from the shadow memory 2 is input to the logic decoder 3 via the data buffer 6 and simultaneously written to the logic memory 1.

なお、上記の転送処理が行なわれるスキャン以外では、
論理メモリ1とシャドウメモリ2は完全に切り離されて
いる。
In addition, for scans other than those in which the above transfer process is performed,
Logical memory 1 and shadow memory 2 are completely separated.

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

以上説明したよう本発明は、論理メモリと同一の内容を
記憶するシャドウメモリを備え、このシャドウメモリに
対して内容変更を行なうことにより、論理解読にまった
く影響を与えることなくプログラムの変更を行なうこと
ができ、さらに遂次読出解読形で、かつ可変プログラム
栄位形の場合でサブルーチン使用の練成をとるとオンラ
イン変更が不可能であったものが可能となる効果がある
As explained above, the present invention includes a shadow memory that stores the same contents as the logical memory, and by changing the contents of the shadow memory, the program can be changed without affecting the logical decoding at all. Moreover, if you practice using subroutines in the case of sequential reading/decoding type and variable program ascending type, it will be possible to make online changes that were previously impossible.

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

第1図は本発明のプログラマブルコントローラの一実施
例を示すブロック図、第2図はプログラマブルコントロ
ーラの処理を示すフローチャートである。 1・・・論理メモリ、   2・・・シャドウメモリ2
3・・・論理解読部、 4・・・リート/ライト;しj外部、 5.6.7−・・データバッファ、 8・・・アドレスバッファ。
FIG. 1 is a block diagram showing an embodiment of the programmable controller of the present invention, and FIG. 2 is a flowchart showing the processing of the programmable controller. 1...Logic memory, 2...Shadow memory 2
3...Logic decoding unit, 4...Read/write; outside, 5.6.7-...data buffer, 8...address buffer.

Claims (1)

【特許請求の範囲】 プログラマブルコントローラにおいて、 論理メモリと同一の内容を記憶しているシャドウメモリ
と、 論理メモリの内容変更の要求が発生するとシャドウメモ
リに対して変更操作を行ない、変更操作が完了すると、
シャドウメモリから論理メモリへデータ転送を行なう手
段と、 シャドウメモリに対する変更操作と並行して論理メモリ
の論理解読を行なうことができ、また、前記データ転送
と並行してシャドウメモリの論理解読を行なうことがで
きる論理解読部を備えたことを特徴とするプログラマブ
ルコントローラ。
[Claims] In a programmable controller, there is a shadow memory that stores the same contents as the logical memory, and when a request to change the contents of the logical memory occurs, a change operation is performed on the shadow memory, and when the change operation is completed, ,
A means for transferring data from a shadow memory to a logical memory, a means for performing logical decoding of the logical memory in parallel with a change operation to the shadow memory, and a means for performing logical decoding of the shadow memory in parallel with the data transfer. A programmable controller characterized by being equipped with a logic decoding section that can perform the following functions.
JP60291899A 1985-12-26 1985-12-26 Programmable controller Pending JPS62152002A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60291899A JPS62152002A (en) 1985-12-26 1985-12-26 Programmable controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60291899A JPS62152002A (en) 1985-12-26 1985-12-26 Programmable controller

Publications (1)

Publication Number Publication Date
JPS62152002A true JPS62152002A (en) 1987-07-07

Family

ID=17774897

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60291899A Pending JPS62152002A (en) 1985-12-26 1985-12-26 Programmable controller

Country Status (1)

Country Link
JP (1) JPS62152002A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0315321A2 (en) * 1987-11-06 1989-05-10 International Business Machines Corporation Multiprocessor system with multiple memories
WO1989005003A1 (en) * 1987-11-19 1989-06-01 Fanuc Ltd Method of editing a program for pc
JP2008509583A (en) * 2004-08-05 2008-03-27 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method and apparatus for accessing data in message memory of communication module

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0315321A2 (en) * 1987-11-06 1989-05-10 International Business Machines Corporation Multiprocessor system with multiple memories
WO1989005003A1 (en) * 1987-11-19 1989-06-01 Fanuc Ltd Method of editing a program for pc
JP2008509583A (en) * 2004-08-05 2008-03-27 ローベルト ボッシュ ゲゼルシャフト ミット ベシュレンクテル ハフツング Method and apparatus for accessing data in message memory of communication module

Similar Documents

Publication Publication Date Title
US4956785A (en) Numerical control method with a parallel processing function
JPS62152002A (en) Programmable controller
JPH11191297A (en) High speed rewritable memory device using nonvolatile memory and method of rewriting data in said memory device
JPH06103460B2 (en) Program transfer method
JP2861053B2 (en) Image processing device
JPH0224721A (en) Program controller
JPH0736373A (en) Programmable controller
JPS6217873A (en) Image processing system
JPS6244359B2 (en)
JPH01131936A (en) Memory data editing system
JP2621631B2 (en) Programmable controller
JPS6022776B2 (en) Data input/output method and device
JPS5919376B2 (en) Buffer memory control method
JP2982129B2 (en) Micro program controller
JPH01255889A (en) Image memory interface circuit
JPH06274658A (en) Continuous filter processing execution control method for data driving information processor
JPS5938827A (en) Microprocessor ipl system
JPS60198663A (en) Control system and circuit for data transfer
JPS6097439A (en) Microprocessor circuit
JPH03144731A (en) Data input control device
JPH02238763A (en) Controller
JPH0326177A (en) Compression and expansion controller for image data
JPS61280194A (en) Holding memory control system
JPH02148122A (en) Magnetic disk controller
JPS60163167A (en) Memory controller