JPS6041133A - Correcting method of control program - Google Patents
Correcting method of control programInfo
- Publication number
- JPS6041133A JPS6041133A JP14875583A JP14875583A JPS6041133A JP S6041133 A JPS6041133 A JP S6041133A JP 14875583 A JP14875583 A JP 14875583A JP 14875583 A JP14875583 A JP 14875583A JP S6041133 A JPS6041133 A JP S6041133A
- Authority
- JP
- Japan
- Prior art keywords
- program
- control
- read
- memory
- control program
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
Abstract
Description
【発明の詳細な説明】
〔発明の属する技術分野の説明〕
本発明は、リード・オンリ・メモリに格納された制御プ
ログラムによシ制御されるプログラム制御装置に関し、
特に、該プログラム制御装置における前記制御プログラ
ムの修正方式に関するものである。[Description of the technical field to which the invention pertains] The present invention relates to a program control device controlled by a control program stored in a read-only memory.
In particular, the present invention relates to a method for modifying the control program in the program control device.
従来、制御プログラムがリード・オンリ・メモリに格納
されたプログラム制御装置においては、該制御プログラ
ムに対する修正の必要性が生じても、リード・オンリ・
メモリの交換等を行なわない限り、容易にこれを修正す
ることは不可能であった。Conventionally, in a program control device in which a control program is stored in a read-only memory, even if it becomes necessary to modify the control program, the read-only memory
This cannot be easily corrected without replacing the memory or the like.
本発明の目的は、リード・オンリ・メモリに格納された
制御プログラムにより制御されるプログラム制御装置に
おいて、前記制御プログラムを構成する各プログラム要
素のエントリを登録するエントリ・テーブルと、修正後
のプログラム要素を格納するための領域とを、前記プロ
グラム制御装置のリード・ライト・メモリ内に設定する
ことにより、前記制御プログラムの修正を容易に実現可
能とした制御プログラム修正方式を提供することにある
。An object of the present invention is to provide a program control device controlled by a control program stored in a read-only memory, an entry table for registering entries for each program element constituting the control program, and a modified program element. An object of the present invention is to provide a control program modification method that makes it possible to easily modify the control program by setting an area for storing the program in the read/write memory of the program control device.
本発明によれば、リード・オンリ・メモリに格納された
制御プログラムにより制御されるプログラム制御装置に
おける制御プログラム修正方式において、該制御プログ
ラムがプログラム修正時の修正単位となるプログラム要
素に分割され、各プログラム要素のエントリが、前記プ
ログラム制御装置のリード・ライト・メモリ内に設けら
れたエントリ・テーブルに登録され。According to the present invention, in a control program modification method in a program control device controlled by a control program stored in a read-only memory, the control program is divided into program elements serving as modification units when modifying the program, and each Entries of program elements are registered in an entry table provided in a read/write memory of the program control device.
前記プログラム制御装置は、各プログラム要素に制御が
渡される場合には、該エントリ・テーブルに従って制御
が渡されるような制御方式をとり、該プログラム要素の
1個または複数個に対して修正の必要が生じた際には、
修正後のプログラム要素を前記リード・ライト・メモリ
内に設けられた制御プログラム格納領域に格納し。When control is passed to each program element, the program control device adopts a control method in which control is passed according to the entry table, and determines whether one or more of the program elements need to be modified. When it occurs,
The modified program element is stored in a control program storage area provided in the read/write memory.
同時に、前記エントリ・テーブル内のエントリの中で修
正が必要と々つだプログラム要素に対応するエントリを
、前記リード・ライト・メモリに格納された修正後のプ
ログラム要素のエンドすを示すよう書き換えることによ
り、前記制御プログラムの修正を行なうことを特徴とす
る制御プログラム修正方式が得られる。At the same time, among the entries in the entry table, the entry corresponding to the program element that requires modification is rewritten to indicate the end of the modified program element stored in the read/write memory. Accordingly, a control program modification method characterized in that the control program is modified is obtained.
次に本発明について図面を参照して詳細に説明する。 Next, the present invention will be explained in detail with reference to the drawings.
第1図を参照すると1通信回線7によりホストデータ処
理装置品に接続された9本発明の一実施例のプログラム
制御による入出力端末装置が、示されている。本実施例
のプログラム制御入出力端末装置は、中央処理装置1と
、リード・オンリ・メモリ2と、リード・ライト・メモ
リ3と、入出力制御部4と9通信制御部5とを有する。Referring to FIG. 1, nine program-controlled input/output terminals according to one embodiment of the present invention are shown connected by one communication line 7 to a host data processing device. The program controlled input/output terminal device of this embodiment includes a central processing unit 1, a read-only memory 2, a read/write memory 3, and input/output control sections 4 and 9 and a communication control section 5.
中央処理装置1は、リード・オンリ・メモリ2に格納さ
れている制御プログラムを実行するとともに、リード・
ライト・メモリ3に格納されている制御プログラムを実
行することも可能である。入出力制御部4ば、キーボー
ド、 CRTディスプレイ等の入出力装置の制御を司る
。通信制御部5は7通信回線7を介して行なわれる。The central processing unit 1 executes a control program stored in a read-only memory 2 and also performs read/write operations.
It is also possible to execute a control program stored in the write memory 3. The input/output control section 4 controls input/output devices such as a keyboard and a CRT display. The communication control unit 5 is operated via seven communication lines 7.
ホスト・データ処理装置6とのデータ入出力制御を司る
。これら、入出力制御部4及び通信制御部5は、リード
・オンリ・メモリ2又はリード・ライト・メモリ6に格
納された制御プログラムによシ制御されるものとする。Controls data input/output with the host data processing device 6. It is assumed that these input/output control section 4 and communication control section 5 are controlled by a control program stored in read-only memory 2 or read-write memory 6.
第2図には第1図のリード・オンリ・メモリ2の構成が
示されておJ、11,12.13等は。FIG. 2 shows the configuration of the read-only memory 2 of FIG. 1, with J, 11, 12, 13, etc.
それぞれリード・オンリ・メモリ2に格納されている制
御プログラムのプログラム要素である。Each of these is a program element of a control program stored in the read-only memory 2.
第6図には第1図のリード・ライト・メモリ3の構成が
示されている。リード・ライト・メモリ6は、プログラ
ム制御時の作業エリア32゜エントリ・テーブル31及
び制御プログラム格納領域66より構成されている。該
エントリ・テーブル31内に存在するエントリ・アドレ
ス・格納エリア21 、22.23には、それぞれ該プ
ログラム要素11.12.13のエントリ・アドレスが
格納されている。FIG. 6 shows the configuration of the read/write memory 3 of FIG. 1. The read/write memory 6 is composed of a work area 32° entry table 31 during program control, and a control program storage area 66. The entry address storage areas 21 and 22.23 in the entry table 31 store the entry addresses of the program elements 11, 12, and 13, respectively.
本人出力端末装置は、リード・オンリ・メモリ2の各プ
ログラム要素に制御が渡される場合には、リード・ライ
ト・メモリ6のエントリ・テーブル31に従って制御が
渡されるような制御方式をとっている。The principal output terminal device employs a control system in which control is passed to each program element in the read-only memory 2 in accordance with the entry table 31 in the read-write memory 6.
以上の様なプログラム制御入出力端末装置において、該
プログラム要素12に対する修正の必要性が生じたと仮
定する。該プログラム要素12は、リード・オンリ・メ
モリ2に格納されているため、内容を修正することは従
来技術では不可能であった。ところが1本人出力端末装
置では、該プログラム要素12を修正した結果生成され
たプログラム要素24を、リード・ライト・メモリ6内
の制御プログラム格納領域63に格納し、かつ、該プロ
グラム要素12に対するエントリ・アドレス格納エリア
22を該プログラム要素24におけるエンドす・アドレ
スに変更することにより、容易に制御プログラム修正が
実現できる。Assume that in the program-controlled input/output terminal device as described above, it becomes necessary to modify the program element 12. Since the program element 12 is stored in the read-only memory 2, it was impossible to modify the contents in the prior art. However, in the single-person output terminal device, the program element 24 generated as a result of modifying the program element 12 is stored in the control program storage area 63 in the read/write memory 6, and the entry for the program element 12 is stored in the control program storage area 63 in the read/write memory 6. By changing the address storage area 22 to the end address of the program element 24, the control program can be easily modified.
なお、前記プログラム要素24の格納及びエントリ・ア
ドレス格納エリア22の変更は、一般には7通信回線7
及び通信制御部5を介して。Incidentally, the storage of the program element 24 and the change of the entry address storage area 22 are generally carried out through the 7 communication lines 7.
and via the communication control unit 5.
ホスト・データ処理装置乙の指示により行なわれる。This is done according to instructions from host data processing device B.
本発明には以上説明したように、リード・オンリ・メモ
リに格納された制御プログラムにより制御されるプログ
ラム制御装置において、前記制御プログラムのエンドす
・テーブル及び修正後の制御プログラム格納領域を、前
記プログラム制御装置のリード・ライト・メモリ内に設
けることにより、前記制御プログラムを容易に修正する
ことができるという効果がある。As explained above, the present invention provides a program control device controlled by a control program stored in a read-only memory, in which an end table of the control program and a modified control program storage area are stored in the program. By providing it in the read/write memory of the control device, there is an advantage that the control program can be easily modified.
第1図は本発明を適用したプログラム制御式入出力端末
装置の構成図、第2図は第1図の入出力端末装置内のリ
ード・オンリ・メモリの構成図、第3図は第1図の入出
力端末装置内のリード・ライト・メモリの構成図である
。
1・・中央処理装置、2・・・リード・オンリ・メモリ
、3・・・リード・ライト・メモリ、4・・入出力制御
部、5・・通信制御部、6 ・ホスト・データ処理装置
、7・・・通信回線、11,12.13・・プログラム
要素、61・・・エンドす・テーブル、32・・・作業
エリア、66・・制御プログラム格納領域。
21 、22.23・・・それぞれプログラム要素11
.12゜16に対するエントリ・アドレス・格納エリア
。
24・・・プログラム要素12を修正した後のプログラ
ム要素。
第1図
第2図 第3図FIG. 1 is a block diagram of a program-controlled input/output terminal device to which the present invention is applied, FIG. 2 is a block diagram of a read-only memory in the input/output terminal device of FIG. 1, and FIG. 3 is a block diagram of a read-only memory in the input/output terminal device of FIG. 2 is a configuration diagram of a read/write memory in the input/output terminal device of FIG. 1... Central processing unit, 2... Read-only memory, 3... Read/write memory, 4... Input/output control section, 5... Communication control section, 6. Host data processing device, 7... Communication line, 11, 12. 13... Program element, 61... End table, 32... Work area, 66... Control program storage area. 21, 22, 23... each program element 11
.. Entry/address/storage area for 12°16. 24...Program element after modifying program element 12. Figure 1 Figure 2 Figure 3
Claims (1)
ムにより制御されるプログラム制御装置における制御プ
ログラム修正方式において、該制御プログラムを構成す
る各プログラム要素のエントリーが、前記プログラム制
御装置のリード・ライト・メモリ内に設けられたエンド
す・テーブルに登録され、前記プログラム制御装置は、
各プログラム要素に制御が渡される場合には、該エント
リー・テーブルに従い制御が渡されるようになされてお
シ、該プログラム要素の一個または複数個に対して修正
の必要が生じた際には、修正後のプログラム要素を前記
リード・ライト・メモリ内に設けられた制御プログラム
格納領域に格納し、かつ、前記エン) IJ−・テーブ
ル内のエントリの中で修正が必要となったプログラム要
素に対応するエントリを、前記リード・ライト・メモリ
に格納された修正後のプログラム要素のエントリを示す
ように書き換えることにより、前記制御プログラムの修
正を行なうことを特徴とする制御プログラム修正方式。1. In a control program modification method in a program control device controlled by a control program stored in a read-only memory, entries for each program element constituting the control program are stored in the read-write memory of the program control device. The program control device is registered in an end table provided in the program control device.
When control is passed to each program element, control is passed according to the entry table, and when it is necessary to modify one or more of the program elements, the Store the subsequent program element in the control program storage area provided in the read/write memory, and correspond to the program element that needs to be modified among the entries in the IJ-table. A control program modification method characterized in that the control program is modified by rewriting an entry to indicate an entry of a modified program element stored in the read/write memory.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14875583A JPS6041133A (en) | 1983-08-16 | 1983-08-16 | Correcting method of control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14875583A JPS6041133A (en) | 1983-08-16 | 1983-08-16 | Correcting method of control program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS6041133A true JPS6041133A (en) | 1985-03-04 |
Family
ID=15459905
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14875583A Pending JPS6041133A (en) | 1983-08-16 | 1983-08-16 | Correcting method of control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6041133A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01136237A (en) * | 1987-11-24 | 1989-05-29 | Nec Corp | Communication control equipment |
| JPH03265030A (en) * | 1990-03-15 | 1991-11-26 | Oki Farm Wear Syst:Kk | Computer loading device |
-
1983
- 1983-08-16 JP JP14875583A patent/JPS6041133A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH01136237A (en) * | 1987-11-24 | 1989-05-29 | Nec Corp | Communication control equipment |
| JPH03265030A (en) * | 1990-03-15 | 1991-11-26 | Oki Farm Wear Syst:Kk | Computer loading device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5600807A (en) | Programmable controller capable of updating a user program during operation by switching between user program memories | |
| JPH0237600A (en) | Testing of read-only-memory and device for executing the same | |
| JPS6041133A (en) | Correcting method of control program | |
| JPS63249206A (en) | Programmable controller | |
| JPH021014A (en) | Portable computer | |
| JPH082727Y2 (en) | Programmable sequencer | |
| JPS6345603A (en) | Program storing system for programmable controller | |
| JPH03246602A (en) | Programmable controller | |
| JPH01100800A (en) | Memory control system | |
| JPS63213200A (en) | System for changing mask rom | |
| JP2573391B2 (en) | Programmable controller | |
| JPH0498527A (en) | Programmable controller | |
| JPH05282232A (en) | Device control mechanism | |
| JPH03269650A (en) | Buffer storage | |
| JPS61281332A (en) | Digital level controlling circuit | |
| JPS5878203A (en) | Programmable controller | |
| JPS60169906A (en) | Programmable controller | |
| JPS60262244A (en) | Data processor | |
| JPS61112237A (en) | Data processor | |
| JPS6144339B2 (en) | ||
| JPH03184136A (en) | Address trace circuit | |
| JPH01207841A (en) | Condition history storage device | |
| JPS6261133A (en) | Memory access control device | |
| JPS6391762A (en) | Memory type control circuit | |
| JPH01266642A (en) | Memory controller |