JPH0518138B2 - - Google Patents

Info

Publication number
JPH0518138B2
JPH0518138B2 JP59123612A JP12361284A JPH0518138B2 JP H0518138 B2 JPH0518138 B2 JP H0518138B2 JP 59123612 A JP59123612 A JP 59123612A JP 12361284 A JP12361284 A JP 12361284A JP H0518138 B2 JPH0518138 B2 JP H0518138B2
Authority
JP
Japan
Prior art keywords
memory address
stored
calculation
output data
data
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.)
Expired - Lifetime
Application number
JP59123612A
Other languages
Japanese (ja)
Other versions
JPS613243A (en
Inventor
Junichi Ueno
Myuki Awano
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.)
Azbil Corp
Original Assignee
Azbil Corp
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 Azbil Corp filed Critical Azbil Corp
Priority to JP59123612A priority Critical patent/JPS613243A/en
Publication of JPS613243A publication Critical patent/JPS613243A/en
Publication of JPH0518138B2 publication Critical patent/JPH0518138B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、各々が演算機能を有する複数の演算
モジユール(以下、モジユール)を備え、これら
を選択のうえ組み合わせて所望の総合演算を行う
装置の演算状況を変更する演算状況変更方法に関
するものである。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides an apparatus that includes a plurality of calculation modules (hereinafter referred to as modules) each having a calculation function, and performs a desired comprehensive calculation by selecting and combining these modules. The present invention relates to a calculation status changing method for changing the calculation status of .

〔従来の技術〕[Conventional technology]

プロセツサを用いる制御装置等においては、制
御演算用処理プログラムの作成を容易とするため
に、演算機能を分割して標準的なサブルーチン
(モジユール)を多数用意し、これらのサブルー
チンから必要とする機能のサブルーチンを所定の
順序で呼び出して実行し、総合的な演算を行うも
のとしている。この際、実行した各サブルーチン
での各演算結果は出力データとして、ポインタテ
ーブルを参照とし、このポインタテーブルによつ
て指定されるRAM(揮発性メモリ)における各
メモリアドレスに格納するものとしている。ま
た、各サブルーチンの実行に際しては、アクセス
状況指定テーブルを参照とし、このアクセス状況
指定テーブルによつて指定される上記メモリアド
レスに格納されている出力データを入力データと
して使用するものとしている。
In control devices that use processors, in order to facilitate the creation of processing programs for control calculations, the calculation functions are divided into many standard subroutines (modules), and the required functions can be derived from these subroutines. The subroutines are called and executed in a predetermined order to perform comprehensive calculations. At this time, each calculation result in each executed subroutine is stored as output data at each memory address in RAM (volatile memory) specified by the pointer table with reference to the pointer table. Furthermore, when executing each subroutine, the access status specification table is referred to, and the output data stored in the memory address specified by the access status specification table is used as input data.

なお、上述において、制御演算用処理プログラ
ムはROM(非揮発性メモリ)に格納しており、
この制御演算用処理プログラムにより、サブルー
チンの実行順序を定める実行順テーブル、アクセ
ス状況指定テーブル、およびポインタテーブルが
作成される。
In addition, in the above, the processing program for control calculation is stored in ROM (non-volatile memory).
This control calculation processing program creates an execution order table that determines the execution order of subroutines, an access status designation table, and a pointer table.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、このような装置においては、演
算状況として例えば各サブルーチン間の入出力デ
ータの授受状況を変更したい場合、ROMに格納
された制御演算用処理プログラムを変更しなけれ
ばならず、すなわちROMを交換しなければなら
ず、設置現場における変更が不可能であるという
欠点があつた。
However, in such a device, if you want to change the calculation status, for example, the exchange status of input/output data between each subroutine, you have to change the control calculation processing program stored in the ROM, that is, you have to replace the ROM. The disadvantage is that it is impossible to make changes at the installation site.

〔課題を解決するための手段〕[Means to solve the problem]

本発明はこのような課題を解決するためになさ
れたもので、非揮発性メモリに格納された制御演
算用処理プログラムに従い、複数の演算モジユー
ルから必要とする機能の演算モジユールを所定の
順序で呼び出して実行し、各演算モジユールでの
演算結果を出力データとして、これら各出力デー
タの格納先とされる揮発性メモリにおける各メモ
リアドレスを指定する書き替え不能なポインタテ
ーブルを参照とし、このポインタテーブルの指定
する各メモリアドレスに各出力データを格納する
一方、各演算モジユールの実行に際して、これら
各演算モジユールに対し入力データが必要とされ
るものについてその入力データの格納先とされて
いるメモリアドレスを指定する書き替え不能なア
クセス状況指定テーブルを参照とし、このアクセ
ス状況指定テーブルの指定するメモリアドレスに
格納されている出力データを入力データとして使
用するプロセツサを備えた装置において、プロセ
ツサにより転送元メモリアドレスと転送先メモリ
アドレスとを指定した形態で演算状況の変更命令
の供与を受けた場合この変更命令を揮発性メモリ
に格納し、制御演算用処理プログラムに従う各演
算モジユールの実行毎に、その演算モジユールで
の演算結果を出力データとして格納する先のメモ
リアドレスに禁止コードが付加されていないかど
うかをチエツクし、禁止コードが付加されていな
ければそのメモリアドレスへ出力データを格納
し、禁止コードが付加されていればそのメモリア
ドレスへの出力データの格納を中止したうえ、揮
発性メモリにおける変更命令の格納の有無をチエ
ツクし、変更命令が格納されていれば転送元メモ
リアドレスに格納されているデータを読み出し、
この読み出したデータを転送先メモリアドレスへ
禁止コードを付加して格納する動作を反復するよ
うにしたものである。
The present invention was made to solve such problems, and it calls a calculation module with a required function from a plurality of calculation modules in a predetermined order according to a control calculation processing program stored in a non-volatile memory. The calculation results of each calculation module are used as output data, and a non-rewritable pointer table that specifies each memory address in volatile memory where each output data is stored is referenced. While storing each output data in each specified memory address, when executing each calculation module, specify the memory address where the input data is stored for those that require input data for each calculation module. In a device equipped with a processor that uses as input data the output data stored at the memory address specified by this access status specification table, the processor refers to a non-rewritable access status specification table. When an instruction to change the calculation status is received in a form that specifies the transfer destination memory address, this change instruction is stored in volatile memory, and is executed in each calculation module according to the control calculation processing program. Checks whether a prohibition code has been added to the memory address where the calculation result of is to be stored as output data. If no prohibition code has been added, the output data is stored to that memory address, and the prohibition code is not added. If so, stop storing output data to that memory address, check whether a change instruction is stored in volatile memory, and if a change instruction is stored, transfer the data stored at the source memory address. reading,
This operation of storing the read data with a prohibition code added to the transfer destination memory address is repeated.

〔作用〕[Effect]

したがつて、この発明によれば、制御演算用処
理プログラムに従う各演算モジユールの実行毎
に、揮発性メモリに格納されている変更命令に基
づき、この変更命令の指定する転送先メモリアド
レスに格納されているデータが、この変更命令の
指定する転送先メモリアドレスへ禁止コードを付
加したうえ格納される。また、制御演算用処理プ
ログラムに従う各演算モジユールの実行毎に、そ
の演算モジユールの出力データが指定されたメモ
リアドレスへ、禁止コードが付加されてないこと
を前提として格納される。
Therefore, according to the present invention, each time each calculation module is executed according to the control calculation processing program, data is stored in the transfer destination memory address specified by the change instruction, based on the change instruction stored in the volatile memory. The data is stored with a prohibition code added to the transfer destination memory address specified by this change instruction. Furthermore, each time an arithmetic module is executed according to the control arithmetic processing program, the output data of that arithmetic module is stored in a designated memory address on the premise that no prohibition code is added.

このため、演算モジユールの実行に際して、入
力データの格納アドレスとして転送先メモリアド
レスが指定された場合には、転送元メモリアドレ
スが指定されたことと等価となる。
Therefore, when a calculation module is executed, if a transfer destination memory address is specified as the input data storage address, it is equivalent to specifying a transfer source memory address.

〔実施例〕〔Example〕

以下、実施例を示す図によつて本発明の詳細を
説明する。
Hereinafter, details of the present invention will be explained with reference to figures showing examples.

第1図は機能的なブロツク図であり、各々が入
力INおよび出力OUTを有する複数のモジユール
A〜Gがサブルーチンにより構成され、ROM2
2(第6図参照)に格納された制御演算用処理プ
ログラムにより作成されるポインタテーブルTB
1(第2図)および各サブルーチン間の入出力デ
ータのアクセス状況指定テーブルTB2(第3
図)に従い、図示実線により示すとおりの接続が
等価的に行われる。
FIG. 1 is a functional block diagram, in which a plurality of modules A to G each having an input IN and an output OUT are configured by subroutines, and the ROM 2
Pointer table TB created by the control calculation processing program stored in 2 (see Figure 6)
1 (Figure 2) and input/output data access status specification table TB2 (Figure 3) between each subroutine.
(Fig.), the connections shown by the solid lines in the figure are equivalently made.

なお、第2図において、DA1,DA2はサブルー
チンAの出力データ、DBはサブルーチンBの出
力データ、DCはサブルーチンCの出力データ、
DDはサブルーチンDの出力データ、DEはサブル
ーチンEの出力データ、DFはサブルーチンFの
出力データ、DGはサブルーチンGの出力データ
であり、出力データDA1,DA2,DB,DC,DD
DE,DF,DGの格納先とされるRAM23(第6図
参照)におけるメモリアドレスが11−1,11
−2,11−3,11−4,11−5,11−
6,11−7,11−8であることを示してい
る。
In addition, in FIG. 2, D A1 and D A2 are the output data of subroutine A, D B is the output data of subroutine B, D C is the output data of subroutine C,
D D is the output data of subroutine D, D E is the output data of subroutine E, D F is the output data of subroutine F, D G is the output data of subroutine G, and the output data D A1 , D A2 , D B , D C , D D ,
The memory addresses in RAM 23 (see Figure 6) where D E , D F , and D G are stored are 11-1, 11.
-2, 11-3, 11-4, 11-5, 11-
6, 11-7, 11-8.

また、第3図において、IN,IN1,IN2は各サ
ブルーチンの入力端子であり、サブルーチンA〜
Cについては入力端子INへの入力データの必要
がないことを示しており、サブルーチンDについ
てはメモリアドレス11−1に格納されている出
力データDA1を入力端子INへの入力データとし、
サブルーチンEについてはメモリアドレス11−
5,11−3に格納されている出力データDD
DBを入力端子IN1,IN2への入力データとし、サ
ブルーチンFについてはメモリアドレス11−
6,11−2に格納されている出力データDE
DA2を入力端子IN1,IN2への入力データとし、サ
ブルーチンGについてはメモリアドレス11−4
に格納されている出力データDCを入力端子INへ
の入力データとすることを示している。
Also, in Fig. 3, IN, IN 1 , and IN 2 are input terminals of each subroutine, and subroutines A to
For subroutine C, it is shown that there is no need for input data to input terminal IN, and for subroutine D, output data D A1 stored at memory address 11-1 is input data to input terminal IN,
For subroutine E, memory address 11-
Output data D D stored in 5, 11-3,
D B is input data to input terminals IN 1 and IN 2 , and for subroutine F, memory address 11-
Output data D E stored in 6, 11-2,
D A2 is input data to input terminals IN 1 and IN 2 , and subroutine G is input to memory address 11-4.
This indicates that the output data D C stored in is used as the input data to the input terminal IN.

第1図に示した機能ブロツク図において、サブ
ルーチンA〜Gを選択しての総合的な演算は、
CPU21(第6図参照)により、ROM22に格
納された制御演算用処理プログラムにより作成さ
れる実行順テーブルTB3(第4図)に従い、先
に示したポインタテーブルTB1およびアクセス
状況指定テーブルTB2を参照して、次のように
して行われる。
In the functional block diagram shown in Fig. 1, the overall calculation by selecting subroutines A to G is as follows:
The CPU 21 (see Fig. 6) refers to the pointer table TB1 and the access status specification table TB2 shown earlier according to the execution order table TB3 (Fig. 4) created by the control calculation processing program stored in the ROM 22. This is done as follows.

すなわち、CPU21は、制御演算用処理プロ
グラムに従い、実行順テーブルTB3を参照とし
て、先ずサブルーチンAを選択する。そして、こ
のサブルーチンAについて、アクセス状況指定テ
ーブルTB2を参照することにより入力データを
必要としないことを知つたうえ、演算を実行す
る。サブルーチンAでの演算結果である出力デー
タDA1,DA2は、ポインタテーブルTB1を参照し
て、これにより指定されるメモリアドレス11−
1,11−2へ格納する。
That is, the CPU 21 first selects subroutine A according to the control calculation processing program and with reference to the execution order table TB3. Then, regarding this subroutine A, by referring to the access status specification table TB2, it is known that no input data is required, and then the calculation is executed. The output data D A1 and D A2 , which are the calculation results in subroutine A, are stored at the memory address 11-11 specified by the pointer table TB1 with reference to the pointer table TB1.
1, 11-2.

以下、同様にして、CPU21は、制御演算用
処理プログラムに従い、サブルーチンB,C,
D,E,F,Gについて順次演算を行い、その出
力データDB,DC,DD,DE,DF,DGをメモリアド
レス11−3,11−4,11−5,11−6,
11−7,11−8へ格納し、RAM23中に第
5図に示すような演算処理フアイルを得る。
Thereafter, in the same manner, the CPU 21 executes subroutines B, C, and C according to the control calculation processing program.
Operations are performed sequentially on D, E, F, and G, and the output data D B , D C , D D , D E , D F , D G is stored at memory addresses 11-3, 11-4, 11-5, 11- 6,
11-7 and 11-8, and an arithmetic processing file as shown in FIG. 5 is obtained in the RAM 23.

なお、演算に際して、CPU21は、制御演算
用処理プログラムに従い、アクセス状況指定テー
ブルTB2を参照することにより、サブルーチン
Dについてはメモリアドレス11−1に格納され
ている出力データDA1を入力データとして使用
し、サブルーチンEについてはメモリアドレス1
1−5および11−3に格納されている出力デー
タDDおよびDBを入力データとして使用し、サブ
ルーチンFについてはメモリアドレス11−6お
よび11−2に格納されている出力データDE
よびDA2を入力データとして使用し、サブルーチ
ンGについてはメモリアドレス11−4に格納さ
れている出力データDCを入力データとして使用
する。
In addition, during calculation, the CPU 21 uses the output data D A1 stored at memory address 11-1 as input data for subroutine D by referring to the access status specification table TB2 according to the control calculation processing program. , for subroutine E, memory address 1
Output data D D and D B stored in memory addresses 1-5 and 11-3 are used as input data, and for subroutine F, output data D E and D stored in memory addresses 11-6 and 11-2 are used as input data. A2 is used as input data, and for subroutine G, output data D C stored at memory address 11-4 is used as input data.

以上に対し、今、第1図において、×印の箇所
を切断し、点線により示す接続を追加することに
より、演算状況の変更を行いたいとする。
In contrast to the above, now suppose that in FIG. 1, it is desired to change the calculation situation by cutting off the locations marked with x and adding connections indicated by dotted lines.

この場合、第3図に示したアクセス状況指定テ
ーブルTB2において、サブルーチンFの入力端
子IN1への入力データをメモリアドレス11−6
から11−4へ、すなわち出力データDEからDC
へ代えることが先ず最初に考えられる。しかし、
アクセス状況指定テーブルTB2は、これを作成
する制御演算用処理プログラムがROM22中へ
格納されているため、書き替え不能である。この
アクセス状況指定テーブルTB2を変更するには
ROM22を交換しなければならず、設置現場に
おける変更は不可能である。
In this case, in the access status specification table TB2 shown in FIG .
to 11-4, that is, output data D E to D C
The first thing to consider is to change to but,
The access status specification table TB2 cannot be rewritten because the control calculation processing program for creating it is stored in the ROM 22. To change this access status specification table TB2
The ROM 22 must be replaced and cannot be changed at the installation site.

本実施例では、このような場合、簡単な変更命
令をキーボード29(第6図参照)から入力する
のみで、ROM22を交換することなく、演算状
況の変更を容易に行うことができる。
In this embodiment, in such a case, the calculation status can be easily changed by simply inputting a simple change command from the keyboard 29 (see FIG. 6) without replacing the ROM 22.

以下、キーボード29からの変更命令とその処
理状況について、第6図〜第8図を参照しなが説
明する。
Hereinafter, change commands from the keyboard 29 and their processing status will be explained with reference to FIGS. 6 to 8.

第6図は、制御装置の構成を示すブロツク図で
あり、プロセツサ(以下、CPU)21を中心と
し、ROM22,RAM23、およびインターフ
エイス(以下、I/F)24〜26を周辺に配
し、これらを母線27により接続している。
CPU21は、ROM22へ格納された制御演算用
処理プログラムを実行し、必要とするデータを
RAM23へアクセスしながら制御動作を行い、
I/F24を介する入力および、I/F25を介
する伝送路28からの受信データに基づく制御演
算により制御出力を求め、I/F24を介して制
御信号を送出すると共に、I/F25を介して伝
送路28へ送信データの送信を行う。
FIG. 6 is a block diagram showing the configuration of the control device, with a processor (hereinafter referred to as CPU) 21 at the center, ROM 22, RAM 23, and interfaces (hereinafter referred to as I/F) 24 to 26 arranged around it. These are connected by a bus bar 27.
The CPU 21 executes the control calculation processing program stored in the ROM 22 and generates the necessary data.
Control operations are performed while accessing RAM23,
A control output is obtained by control calculation based on input via I/F 24 and data received from transmission line 28 via I/F 25, and a control signal is sent via I/F 24 and transmitted via I/F 25. The transmission data is transmitted to the line 28.

また、I/F26には、キーボード(以下、
KB)29およびブラウン管表示器(以下、
CRT)30が接続されている。CPU21は、
KB29の操作に応動し、KB29からの後述す
る変更命令をRAM23へ格納のうえ、RAM2
2中の制御演算用処理プログラムを実行し、
CRT30に対するデータの送出を行い、CRT3
0による表示を行う。
In addition, the I/F 26 has a keyboard (hereinafter referred to as
KB) 29 and cathode ray tube display (hereinafter referred to as
CRT) 30 is connected. The CPU21 is
In response to the operation of KB29, a change command from KB29, which will be described later, is stored in RAM23, and then RAM2
Execute the control calculation processing program in 2,
Sends data to CRT30,
Displays 0.

KB29からの変更命令は次のようにして与え
る。
The change command from KB29 is given as follows.

第1図において、×印の箇所を切断し、点線に
より示す接続を追加したいものとした場合、サブ
ルーチンFの演算に際し、出力データDEに代え
て出力データDCを入力端子IN1への入力データと
すればよいことが分かる。すなわち、第5図に示
した演算処理フアイルにおいて、メモリアドレス
11−6へ出力データDCが格納されていれば、
第3図に示したアクセス状況指定テーブルTB2
を参照とするサブルーチンFの演算に際し、入力
端子IN1への入力データが出力データDCとされ
る。
In Fig. 1, if you want to cut the part marked with an x and add the connection shown by the dotted line, when calculating subroutine F, input the output data D C to the input terminal IN 1 instead of the output data D E. It turns out that it is sufficient to use it as data. That is, in the arithmetic processing file shown in FIG. 5, if output data D C is stored in memory address 11-6,
Access status specification table TB2 shown in Figure 3
In the calculation of subroutine F with reference to , input data to input terminal IN 1 is used as output data D C .

そこで、本実施例においては、転送元メモリア
ドレスをメモリアドレス11−4とし、転送先メ
モリアドレスを11−6とし、これらを指定した
形態でKB29より変更命令を与える。CPU21
は、この変更命令を変更命令テーブルTB4(第
7図)として、RAM23に格納する。
Therefore, in this embodiment, the transfer source memory address is set to memory address 11-4, the transfer destination memory address is set to 11-6, and the KB 29 provides a change command in a form specifying these addresses. CPU21
stores this change instruction in the RAM 23 as a change instruction table TB4 (FIG. 7).

第8図はROM22中の制御演算用処理プログ
ラムの要部フローチヤートである。CPU21は、
制御演算用処理プログラムに従い、実行順テーブ
ルTB3を参照として、先ずサブルーチンAを選
択する。そして、このサブルーチンAについて、
アクセス状況指定テーブルTB2を参照すること
により入力データを必要としないことを知つたう
え、演算を実行する(ステツプ101)。そして、サ
ブルーチンAでの演算結果を出力データDA1
DA2として得、ポインタテーブルTB1を参照し
て、出力データDA1,DA2の格納先としてメモリ
アドレス11−1,11−2を知る。そして、こ
のメモリアドレス11−1,11−2に禁止コー
ドが付加されていないかどうかをチエツクする
(ステツプ102)。この場合、禁止コードは付加さ
れておらず、これによりステツプ103へ進み、メ
モリアドレス11−1,11−2へ出力データ
DA1,DA2を格納する。
FIG. 8 is a flowchart of the main part of the control calculation processing program in the ROM 22. The CPU21 is
According to the control calculation processing program, subroutine A is first selected with reference to execution order table TB3. And regarding this subroutine A,
By referring to the access status specification table TB2, it is learned that no input data is required, and then the calculation is executed (step 101). Then, the calculation result in subroutine A is output data D A1 ,
It obtains the data as D A2 and refers to the pointer table TB1 to learn memory addresses 11-1 and 11-2 as the storage destinations for the output data D A1 and D A2 . Then, it is checked whether or not a prohibition code is added to these memory addresses 11-1 and 11-2 (step 102). In this case, no prohibition code is added, and the process proceeds to step 103 where the output data is sent to memory addresses 11-1 and 11-2.
Store D A1 and D A2 .

そして、CPU21は、制御演算用処理プログ
ラムに従い、RAM23へアクセスし、「変更命
令あり?」のYESに応じ(ステツプ111)、変更
命令テーブルTB4より「FROM」の示すメモリ
アドレス11−4に格納されているデータを読み
出し(ステツプ112)、この読み出した格納データ
を「TO」の示すメモリアドレス11−6へ禁止
コードを付加した格納する(ステツプ113)。以下
同様にして、CPU21は、制御演算用処理プロ
グラムに従つて、ステツプ101以降の動作をサブ
ルーチンB〜Gについて反復する。
Then, the CPU 21 accesses the RAM 23 in accordance with the control calculation processing program, and in response to YES in the question "Is there a modification command?" (step 111), the CPU 21 stores the modification command table TB4 at the memory address 11-4 indicated by "FROM". The read data is read out (step 112), and the read stored data is stored with a prohibition code added to the memory address 11-6 indicated by "TO" (step 113). Similarly, the CPU 21 repeats the operations from step 101 onward for subroutines B to G in accordance with the control calculation processing program.

今、CPU21が、制御演算用処理プログラム
に従い、実行順テーブルTB3を参照として、サ
ブルーチンA,B,C,Dでの演算を終え、サブ
ルーチンEの実行過程に入つたとする。CPU2
1は、制御演算用処理プログラムに従い、このサ
ブルーチンEについて、アクセス状況指定テーブ
ルTB2を参照することにより、メモリアドレス
11−5および11−3に格納されている出力デ
ータDDおよびDBを使用し、演算を実行する(ス
テツプ101)。そして、サブルーチンEでの演算結
果を出力データDEとして得、ポインタテーブル
TB1を参照して、出力データDEの格納先として
メモリアドレス11−6を知る。そして、このメ
モリアドレス11−6に禁止コードが付加されて
いないかどうかをチエツクする(ステツプ102)。
この場合、禁止コードが付加されており、これに
よりステツプ104へ進み、メモリアドレス11−
6への出力データDEの格納を中止する。
Now, assume that the CPU 21 has finished the calculations in subroutines A, B, C, and D, and has started the process of executing subroutine E, referring to the execution order table TB3 in accordance with the control calculation processing program. CPU2
1 uses the output data D D and D B stored in memory addresses 11-5 and 11-3 for this subroutine E according to the control calculation processing program by referring to the access status specification table TB2. , executes the calculation (step 101). Then, the calculation result in subroutine E is obtained as output data D E , and the pointer table is
Referring to TB1, memory address 11-6 is known as the storage destination of output data DE . Then, it is checked whether a prohibition code has been added to this memory address 11-6 (step 102).
In this case, a prohibition code has been added, which causes the process to proceed to step 104 and memory address 11-1.
Stop storing the output data DE to 6.

そして、CPU21は、制御演算用処理プログ
ラムに従い、RAM23へアクセスし、「変更命
令あり?」のYESに応じ(ステツプ111)、変更
命令テーブルTB4より「FROM」の示すメモリ
アドレス11−4に格納されているデータ(出力
データDC)を読み出し、この読み出した出力デ
ータDCを「TO」の示すメモリアドレス11−6
へ禁止コードを付加して格納する(ステツプ
113)。すなわち、変更命令の指定する転送元メモ
リアドレス11−4に格納されている出力データ
DCを、変更命令の指定する転送先メモリアドレ
ス11−6へ転写する。
Then, the CPU 21 accesses the RAM 23 in accordance with the control calculation processing program, and in response to YES in the question "Is there a modification command?" (step 111), the CPU 21 stores the modification command table TB4 at the memory address 11-4 indicated by "FROM". Read the data (output data D C ) that is being read out, and transfer this read output data D C to memory address 11-6 indicated by
Add a prohibition code to the file and store it (step
113). In other words, the output data stored in the transfer source memory address 11-4 specified by the change instruction
D C is transferred to the transfer destination memory address 11-6 specified by the change instruction.

したがつて、サブルーチンFの実行過程では、
アクセス状況指定テーブルTB2を参照とするサ
ブルーチンFの演算に際して、メモリアドレス1
1−6の格納データすなわち出力データDCが使
用され、この結果として第1図に破線で示した演
算状況の変更が行われるものとなる。
Therefore, in the execution process of subroutine F,
When calculating subroutine F that refers to access status specification table TB2, memory address 1
The stored data 1-6, that is, the output data D C is used, and as a result, the calculation situation is changed as indicated by the broken line in FIG.

第9図にステツプ101以降の動作をサブルーチ
ンA〜Gについて反復することにより得られる
RAM23中の演算処理フアイルを示す。
Figure 9 shows the results obtained by repeating the operations from step 101 onwards for subroutines A to G.
The calculation processing file in RAM23 is shown.

以上説明したように、本実施例によれば、簡単
な変更命令をKB29から入力するのみにより、
総合的な演算状況の変更が行われ、制御条件の変
化等に対し、ROM22を交換することなく、装
置の設置現場において容易に対処することが自在
となる。
As explained above, according to this embodiment, by simply inputting a simple change command from KB29,
The overall calculation situation is changed, and changes in control conditions can be easily dealt with at the site where the device is installed, without replacing the ROM 22.

なお、第9図において、禁止コードはメモリア
ドレス11−1〜11−8の上位または下位ビツ
トを充当すればよく、論理値の「0」または
「1」を禁止コード×を示すものとして用いれば
よい。なお、この禁止コードは、全く別個のエリ
アへ対応して設けてもよい。
In addition, in FIG. 9, the upper or lower bits of memory addresses 11-1 to 11-8 may be used as the prohibition code, and the logical value "0" or "1" may be used to indicate the prohibition code x. good. Note that this prohibition code may be provided corresponding to a completely separate area.

ただし、第9図のメモリアドレス11−1〜1
1−8は、サブルーチンの数および出力数に応じ
て設ければよく、これらのビツト数はデータおよ
び禁止コード×のビツト構成にしたがつて定めれ
ばよい。
However, memory addresses 11-1 to 1 in FIG.
1-8 may be provided according to the number of subroutines and the number of outputs, and the number of these bits may be determined according to the bit configuration of the data and the inhibition code x.

また、第1図および第6図の構成は、状況に応
じた選定が任意であり、CRT30として他の表
示器を用いてもよく、制御演算のみならず、各種
のデータ処理に適用できる等、種々の変形が自在
である。
In addition, the configurations shown in FIGS. 1 and 6 can be arbitrarily selected depending on the situation, and other display devices may be used as the CRT 30, and can be applied not only to control calculations but also to various data processing, etc. Various modifications are possible.

また、本実施例においては、モジユールとして
ソフト的なサブルーチンを例にとつて説明した
が、ハード的な演算モジユールへの適用も可能で
あることは言うまでもない。
Furthermore, although this embodiment has been described using a software subroutine as an example of a module, it goes without saying that the present invention can also be applied to a hardware calculation module.

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

以上説明したことから明らかなように本発明に
よれば、非揮発性メモリに格納された制御演算用
処理プログラムを変更することなく、簡単な操作
により、モジユール相互間の等価的な接続変更が
自在となり、総合演算状況を容易に変更すること
ができるため、各種の演算機能を有する装置にお
いて顕著な効果が得られる。
As is clear from the above explanation, according to the present invention, equivalent connections between modules can be freely changed by simple operations without changing the control calculation processing program stored in the non-volatile memory. Since the overall calculation status can be easily changed, remarkable effects can be obtained in devices having various calculation functions.

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

図は本発明の実施例を示し、第1図は機能的な
ブロツク図、第2図はROMに格納されたプログ
ラムにより作成されるポインタテーブルを示す
図、第3図はこのプログラムにより作成されるア
クセス状況指定テーブルを示す図、第4図はこの
プログラムにより作成される実行順テーブルを示
す図、第5図はRAMにおける演算処理フアイル
(演算状況変更前)を示す図、第6図は制御装置
の構成を示すブロツク図、第7図はRAMに格納
される変更命令テーブルを示す図、第8図は
ROMに格納された制御演算用処理プログラムの
要部フローチヤート、第9図はRAMにおける演
算処理フアイル(演算状況変更後)を示す図であ
る。 A〜G……サブルーチン(モジユール)、11
−1〜11−8……メモリアドレス、21……
CPU、22……ROM(非揮発性メモリ)、23…
…RAM(揮発性メモリ)、24〜26……I/
F、29……KB、DA〜DG……出力データ、×…
…禁止コード、TB1……ポインタテーブル、
TB2……アクセス状況指定テーブル、TB3…
…実行順テーブル、TB4……変更命令テーブ
ル。
The figures show an embodiment of the present invention; Fig. 1 is a functional block diagram, Fig. 2 is a diagram showing a pointer table created by a program stored in ROM, and Fig. 3 is a diagram showing a pointer table created by this program. Figure 4 is a diagram showing the access status specification table, Figure 4 is a diagram showing the execution order table created by this program, Figure 5 is a diagram showing the calculation processing file in RAM (before the calculation status is changed), and Figure 6 is the control device. Figure 7 is a block diagram showing the configuration of
FIG. 9, which is a flowchart of the main part of the control calculation processing program stored in the ROM, is a diagram showing the calculation processing file in the RAM (after the calculation status has been changed). A to G...subroutine (module), 11
-1 to 11-8...Memory address, 21...
CPU, 22...ROM (non-volatile memory), 23...
...RAM (volatile memory), 24-26...I/
F, 29...KB, D A ~ D G ... Output data, ×...
...Prohibition code, TB1...Pointer table,
TB2...Access status specification table, TB3...
...Execution order table, TB4...Change instruction table.

Claims (1)

【特許請求の範囲】 1 非揮発性メモリに格納された制御演算用処理
プログラムに従い、複数の演算モジユールから必
要とする機能の演算モジユールを所定の順序で呼
び出して実行し、各演算モジユールでの演算結果
を出力データとして、これら各出力データの格納
先とされる揮発性メモリにおける各メモリアドレ
スを指定する書き替え不能なポインタテーブルを
参照とし、このポインタテーブルの指定する各メ
モリアドレスに前記各出力データを格納する一
方、 前記各演算モジユールの実行に際して、これら
各演算モジユールに対し入力データが必要とされ
るものについてその入力データの格納先とされて
いる前記メモリアドレスを指定する書き替え不能
なアクセス状況指定テーブルを参照とし、このア
クセス状況指定テーブルの指定する前記メモリア
ドレスに格納されている出力データを入力データ
として使用する プロセツサを備えた装置において、 前記プロセツサは、 転送元メモリアドレスと転送先メモリアドレス
とを指定した形態で演算状況の変更命令の供与を
受けた場合この変更命令を前記揮発性メモリに格
納し、 前記制御演算用処理プログラムに従う前記各演
算モジユールの実行毎に、 その演算モジユールでの演算結果を出力データ
として格納する先の前記メモリアドレスに禁止コ
ードが付加されていないかどうかをチエツクし、
禁止コードが付加されていなければそのメモリア
ドレスへ出力データを格納し、禁止コードが付加
されていればそのメモリアドレスへの出力データ
の格納を中止したうえ、 前記揮発性メモリにおける変更命令の格納の有
無をチエツクし、変更命令が格納されていれば前
記転送元メモリアドレスに格納されているデータ
を読み出し、この読み出したデータを前記転送先
メモリアドレスへ前記禁止コードを付加して格納
する動作を反復する ことを特徴とした演算状況変更方法。
[Scope of Claims] 1. According to a control calculation processing program stored in a non-volatile memory, calculation modules with required functions from a plurality of calculation modules are called and executed in a predetermined order, and calculations in each calculation module are executed. Using the results as output data, refer to a non-rewritable pointer table that specifies each memory address in the volatile memory where each of these output data is stored, and store each of the output data at each memory address specified by this pointer table. and an unrewritable access status that specifies the memory address where input data is stored for each calculation module that requires input data when executing each calculation module. In an apparatus equipped with a processor that refers to a specified table and uses output data stored at the memory address specified by this access status specification table as input data, the processor has a transfer source memory address and a transfer destination memory address. When a command to change the calculation status is received in a format specifying the above, the change command is stored in the volatile memory, and each time the calculation module is executed according to the control calculation processing program, the calculation status in the calculation module is changed. Checks whether a prohibition code is added to the memory address where the calculation result is to be stored as output data,
If no prohibition code is added, output data is stored in that memory address, and if a prohibition code is added, storage of output data to that memory address is stopped, and storage of the change instruction in the volatile memory is stopped. Check the existence of the change command, and if a change instruction is stored, read the data stored in the transfer source memory address, and repeat the operation of storing the read data in the transfer destination memory address with the prohibition code added. A calculation status change method characterized by:
JP59123612A 1984-06-18 1984-06-18 Varying method of arithmetic state Granted JPS613243A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59123612A JPS613243A (en) 1984-06-18 1984-06-18 Varying method of arithmetic state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59123612A JPS613243A (en) 1984-06-18 1984-06-18 Varying method of arithmetic state

Publications (2)

Publication Number Publication Date
JPS613243A JPS613243A (en) 1986-01-09
JPH0518138B2 true JPH0518138B2 (en) 1993-03-11

Family

ID=14864906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59123612A Granted JPS613243A (en) 1984-06-18 1984-06-18 Varying method of arithmetic state

Country Status (1)

Country Link
JP (1) JPS613243A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2574933B2 (en) * 1990-07-27 1997-01-22 株式会社日立製作所 Program creation device
WO1996015952A1 (en) 1994-11-17 1996-05-30 Yoshino Kogyosho Co., Ltd. Container equipped with bubble injection pump
US8843913B2 (en) * 2007-06-05 2014-09-23 Intel Corporation Dynamic linking and loading of post-processing kernels

Also Published As

Publication number Publication date
JPS613243A (en) 1986-01-09

Similar Documents

Publication Publication Date Title
JPH10187449A (en) Object-oriented programming device, object-oriented programming support device, component creation device, object-oriented program storage medium, program storage medium for object-oriented programming, component storage medium, and inter-object network display method
US20010021985A1 (en) Software Debugging
JPH0518138B2 (en)
JPS5941209B2 (en) Bi-programmable electronic accounting system
JP2005108082A (en) Device driver interface method
EP0480657B1 (en) Information processing apparatus
CA2056829A1 (en) Programmable controller processor for concurrently executing multiple user programs
JPH022448A (en) Terminal emulator
JPH0821009B2 (en) CHANNEL CONTROLLER INITIALIZATION METHOD AND SYSTEM FOR THE INITIALIZATION
JP3316779B2 (en) Sequence controller
JP2918570B2 (en) Central processing unit
JP3130798B2 (en) Bus transfer device
JPH01217536A (en) Heterogeneous language mixed program processing controller
US5680646A (en) Input/output control system
JP2507314B2 (en) Linkage Convenience Method
JPH10312307A (en) Emulator applied to computer system
JPH0795296B2 (en) Information sharing processing method in data processing system
JP3428253B2 (en) Sequencer
JP3024410B2 (en) Programmable controller
JPS6238746B2 (en)
JP2862369B2 (en) Image display control device
JPH03113628A (en) Input/output control system for terminal
JPS61121153A (en) Inter-processor communication control system
JPS62203256A (en) Peripheral equipment of computer system
EP0280523A2 (en) Computer system conversion apparatus