JPH0212329A - Program execution control method - Google Patents
Program execution control methodInfo
- Publication number
- JPH0212329A JPH0212329A JP16067088A JP16067088A JPH0212329A JP H0212329 A JPH0212329 A JP H0212329A JP 16067088 A JP16067088 A JP 16067088A JP 16067088 A JP16067088 A JP 16067088A JP H0212329 A JPH0212329 A JP H0212329A
- Authority
- JP
- Japan
- Prior art keywords
- stored
- rom
- microcomputer
- program
- memory
- 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
Landscapes
- Stored Programmes (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
この発明は、複数のメモリに個別に記憶される制御プロ
グラムに基づいて周辺機器を制御するマイクロプロセッ
サを有するコンピュータシステムに関するものである。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a computer system having a microprocessor that controls peripheral devices based on control programs individually stored in a plurality of memories.
(従来の技術)
第7図は従来のコンピュータシステムの構成を説明する
ブロック図であり、51はマイクロプロセッサ(例えば
日本電気社製μPDシリーズ)等で構成されるマイクロ
コンピュータで、リードオンリメモリ(ROM)52ま
たはリードオンリメモリ(ROM)53にあらかじめ記
憶された制御プログラムに基づいて入出力端末機器(I
lo)55を総括的に制御する。56はアドレスバスで
、マイクロコンピュータ51から出力されるアドレスを
ROM52.ROM53.RAM54゜入出力端末機器
(Ilo)55等に出力する。57はデータバスで、人
出力データをマイクロコンピュータ51とアドレスバス
56.データバス57を介して接続されるROM52.
ROM53゜RAM54.入出力端末機器(Ilo)5
5間で相互に送受する。(Prior Art) FIG. 7 is a block diagram illustrating the configuration of a conventional computer system, in which 51 is a microcomputer composed of a microprocessor (for example, the μPD series manufactured by NEC Corporation), and a read-only memory (ROM). ) 52 or read-only memory (ROM) 53 based on the control program stored in advance, input/output terminal equipment (I/O
lo) Overall control of 55. Reference numeral 56 denotes an address bus which transfers the address output from the microcomputer 51 to the ROM 52. ROM53. RAM 54° Outputs to input/output terminal equipment (Ilo) 55, etc. Reference numeral 57 denotes a data bus for transmitting human output data to the microcomputer 51 and address bus 56. ROM 52 connected via data bus 57.
ROM53°RAM54. Input/output terminal equipment (Ilo) 5
5 mutually send and receive data.
例えばマイクロコンピュータ51がROM52に格納さ
れた制御プログラムを実行する場合には、アドレスバス
56に対してROM52に割付けられた固有の読出しア
ドレスを出力し、ROM52から読み出される制御プロ
グラムをデータバス57を介して受領し、所定の手順に
従うプログラムを実行し、入出力端末機器(Ilo)5
5b)らのデータを授受したり、所定のデータを入出力
端末機器(Ilo)55に送出する。For example, when the microcomputer 51 executes a control program stored in the ROM 52, it outputs a unique read address assigned to the ROM 52 to the address bus 56, and executes the control program read from the ROM 52 via the data bus 57. The input/output terminal equipment (Ilo) 5 receives the
5b), and sends predetermined data to the input/output terminal device (Ilo) 55.
しかしながら、この種のプログラム実行を可能とするに
は、ROM52.ROM53に格納された制御プログラ
ムの組み合わせが適切でない場合、例えばROM52.
ROM53に共有するアドレスが存在する場合等には、
読み出される制御プログラムが不確定状態となるため、
システムが正常に動作しなくなったり、最悪の場合には
、システムが暴走して、入出力端末機器(I 10 )
55を誤作動させて作業者に不測の事態を屈発させてし
まう等の重大な問題点があった。However, to enable this kind of program execution, the ROM 52. If the combination of control programs stored in the ROM 53 is not appropriate, for example, the combination of control programs stored in the ROM 52.
If there is a shared address in the ROM53,
Since the control program to be read is in an uncertain state,
If the system stops working properly, or in the worst case, the system goes out of control, the input/output terminal equipment (I 10 )
There were serious problems such as erroneous operation of the 55, exposing workers to unexpected situations.
今後、既存のコンピュータシステムに新規のROMが配
設された制御基板を複数セットして、制御機能を拡充し
たり、変更したりする場合には、上記の問題の解決が図
れないと非常にシステムの融通性が低下するとともに、
システム開発コストが非常に重大となり、その改善が待
たれている。In the future, when setting multiple control boards with new ROMs installed in an existing computer system to expand or change control functions, the system will become extremely unstable unless the above problems are solved. As the flexibility of
System development costs have become extremely important, and improvements are awaited.
この発明は、上記の問題点を解決するためになされたも
ので、複数のメモリに固有の識別情報をあらかじめ記憶
させるとともに、各メモリに記憶される制御プログラム
組み合わせ状態を照合判定することにより一1複数のメ
モリから読み出される制御プログラムをシステム異常な
く安全に起動制御できるプログラム実行制御方式を得る
ことを目的とする。This invention was made to solve the above problems, and it is possible to store unique identification information in a plurality of memories in advance, and to compare and determine the combination state of control programs stored in each memory. The purpose of the present invention is to obtain a program execution control method that can safely start and control control programs read from multiple memories without causing system abnormalities.
(課題を解決するための手段〕
この発明に係るプログラム実行制御方式は、各メモリア
クセス発生毎に、各メモリの所定アドレスに記憶された
プログラム識別コードを読み出す識別コード読出し処理
と、この識別コード読出し処理により得られる各プログ
ラム識別コードとを比較して、各メモリに記憶された所
定の制御プログラムとの組合わせ起動適合性を照合判定
する判定処理と、この判定処理による照合結果に基づい
て各メモリに記憶された所定の制御プログラムの一部ま
たは全部の起動を制限するプログラム起動制限処理とか
らなる方式である。(Means for Solving the Problems) The program execution control method according to the present invention includes an identification code reading process of reading out a program identification code stored at a predetermined address of each memory each time a memory access occurs, and A determination process that compares each program identification code obtained through the process and determines the suitability for starting the combination with a predetermined control program stored in each memory, and a This method includes a program startup restriction process that restricts the startup of a part or all of a predetermined control program stored in the computer.
また、判定処理により、各メモリに、記憶された各所定
の制御プログラムとの組み合わせ起動がエラーと判定さ
れた場合に、組み合わせ起動障害報知信号を発生する報
知信号発生処理を加えても良い。Furthermore, a notification signal generation process may be added that generates a combination activation failure notification signal when the combination activation with each predetermined control program stored in each memory is determined to be an error in the determination process.
(作用)
この発明においては、各リードオンリメモリアクセス発
生毎に、各リードオンリメモリの所定アドレスに記憶さ
れたプログラム識別コードを読み出す識別コード読出し
、この識別コード読出し処理により得られる各プログラ
ム識別コードとを比較して、各リードオンリメモリに記
憶された所定の制御プログラムとの組合わせ起動適合性
を照合判定する。そして、この判定処理による照合結果
に基づいて各リードオンリメモリに記憶された所定の制
御プログラムの一部または全部の起動を制限する。その
際、各リードオンリメモリに記憶された各所定の制御プ
ログラムとの組み合わ起動がエラーと判定された場合に
、組み合わせ起動障害報知信号を発生する。(Operation) In the present invention, each read-only memory access is performed by reading out the program identification code stored at a predetermined address in each read-only memory, and each program identification code obtained by this identification code reading process. are compared to determine suitability of combination activation with a predetermined control program stored in each read-only memory. Then, based on the verification result of this determination process, activation of some or all of the predetermined control programs stored in each read-only memory is restricted. At this time, if it is determined that the combination activation with each predetermined control program stored in each read-only memory is an error, a combination activation failure notification signal is generated.
(第1の実施例〕
第1図はこの発明の一実施例を示すプログラム実行制御
方式を適用するハード構成図であり、10はマイクロコ
ンピュータで、第lROM11または第2ROM12に
格納された制御プログラムに基づいて入出力端末機器(
Ilo)14を総括的に制御する。10aはメモリで、
第3図に示す制御手順が記憶されている。16はアドレ
スバスで、マイクロコンピュータ10から出力されるア
ドレスを第lROM11.第2ROM12.RAM13
.入出力端末機器(Ilo)14等に出力する。なお、
第1 ROM 11または第2ROM12の所定アドレ
スには格納される制御プログラムを識別するための固有
のプログラム識別コードがあらかじめ書き込まれている
。(First Embodiment) FIG. 1 is a hardware configuration diagram to which a program execution control method is applied, showing an embodiment of the present invention. 10 is a microcomputer, and the control program stored in the first ROM 11 or the second ROM 12 is Based on input/output terminal equipment (
Ilo) 14 is generally controlled. 10a is memory,
The control procedure shown in FIG. 3 is stored. 16 is an address bus which transfers the address output from the microcomputer 10 to the first ROM 11. 2nd ROM12. RAM13
.. Output to input/output terminal equipment (Ilo) 14, etc. In addition,
A unique program identification code for identifying the stored control program is written in advance at a predetermined address in the first ROM 11 or the second ROM 12.
17はデータバスで、入出力データをマイクロコンピュ
ータ1Qとアドレスバス16.データバス17を介して
接続される第lROM11.第2ROM12.RAM1
3.入出力端末機器(Ilo)14間で相互に送受する
。15は障害報知信号発生器で、各所定の制御プログラ
ムとの組み合わせ起動がエラーと判定された場合に、第
lROM11および第2ROM12に記憶された所定の
制御プログラムの一部または全部の起動を制限する障害
報知信号を発生する。17 is a data bus, which transfers input/output data to the microcomputer 1Q and the address bus 16. The first ROM 11 . connected via the data bus 17 . 2nd ROM12. RAM1
3. Mutual transmission and reception is performed between the input/output terminal equipment (Ilo) 14. Reference numeral 15 denotes a failure notification signal generator, which limits the activation of part or all of the predetermined control programs stored in the first ROM 11 and the second ROM 12 when activation in combination with each predetermined control program is determined to be an error. Generates a fault notification signal.
第2図はこの発明の一実施例を示すプログラム実行制御
方式を説明するフローチャートである。FIG. 2 is a flowchart illustrating a program execution control method showing an embodiment of the present invention.
なお、(1)〜(7)は各ステップを示す。また、この
実施例においては、ROMの数を2としている画、その
数には限定されない。Note that (1) to (7) indicate each step. Further, in this embodiment, the number of ROMs is not limited to two.
以下、ROMの数が「2」の場合の処理について詳細に
説明する。The process when the number of ROMs is "2" will be described in detail below.
先ず、マイクロコンピュータ10のCPUがメモリ10
aの内容に基づいて使用するROMの数が「2」以上か
どうかを判断しく1) Noの場合にはステップ(5
)に進み、YESの場合はマイクロコンピュータ1oが
第lROM11をアクセスして、第lROM11の所定
エリアに識別データが設定されているかどうかを判断し
く2)、YESならば同様にマイクロコンピュータ10
が第2ROM12をアクセスして、第2ROM12の所
定エリアに識別データが設定されているかどうかを判断
しく3)、YESならばマイクロコンピュータ10が第
lROM11の所定エリアに記憶されたプログラム識別
コードおよび第2ROM12の所定エリアに記憶された
プログラム識別コードとを読み出し、第lROM11と
第2ROM12に格納されているプログラムの組み合わ
せ起動がエラー起動となるかどうかを判断しく4)、N
oならば容筒1ROMIIまたは第2ROM12に記憶
された制御プログラムに基づいて通常のプログラム実行
処理を実行する通常処理ルーチンを行う(5)。First, the CPU of the microcomputer 10 is connected to the memory 10.
Based on the contents of a, judge whether the number of ROMs to be used is "2" or more (1). If no, proceed to step (5).
), if YES, the microcomputer 1o accesses the first ROM 11 and determines whether the identification data is set in a predetermined area of the first ROM 11 (2); if YES, the microcomputer 1o
accesses the second ROM 12 to determine whether identification data is set in a predetermined area of the second ROM 12 (3), and if YES, the microcomputer 10 accesses the program identification code stored in the predetermined area of the first ROM 11 and the second ROM 12. read out the program identification code stored in a predetermined area of
If o, a normal processing routine is executed to execute normal program execution processing based on the control program stored in the first ROM II or the second ROM 12 (5).
一方、ステップ(2) 、 (3)の判断でNOおよび
ステップ(4)でYESの場合は、障害報知信号発生器
15を起動させ(6) マイクロコンピュータ10に
よるシステム処理を強制終了する障害報知信号を出力し
て、終了処理ルーチンを実行しく7)、処理を終了する
。なお、上記実施例において、実施例の制御手順をメモ
リ10aに記憶する場合について説明したが、第lRO
M11、第2ROM12あるいはRAM13の何れかに
記憶させる構成であっても良い。On the other hand, if the determinations in steps (2) and (3) are NO and the determination in step (4) is YES, the failure notification signal generator 15 is activated (6) and a failure notification signal is sent to forcibly terminate the system processing by the microcomputer 10. is output, the termination processing routine is executed (7), and the processing is terminated. In the above embodiment, the case where the control procedure of the embodiment is stored in the memory 10a has been described, but the first RO
The configuration may be such that the information is stored in either the M11, the second ROM 12, or the RAM 13.
(第2の実施例〕
第3図はこの発明の他の実施例を示すプログラム実行制
御方式を適用するハード構成図であり、20はマスター
マイクロコンピュータユニットで、マイクロコンピュー
タ21.第4図(a)に示す制御手順を記憶しているR
OM21a、第lROM22.第2ROM23.RAM
24.入出力端末機器(Ilo)25.障害報知信号発
生器26等から構成され、マイクロコンピュータ21に
アドレスバス35.データバス36を介してマイクロコ
ンピュータ21.第1 ROM22.第2ROM23.
RAM24.入出力端末機器(Ilo)25.障害報知
信号発生器26が接続されている。30はスレーブマイ
クロコンピュータユニットで、通信ライン40.41を
介してマスターマイクロコンピュータユニット20との
データ処理が相互に行えるように構成されている。(Second Embodiment) FIG. 3 is a hardware configuration diagram to which a program execution control method is applied showing another embodiment of the present invention, in which 20 is a master microcomputer unit, a microcomputer 21. ) has stored the control procedure shown in
OM21a, first ROM22. 2nd ROM23. RAM
24. Input/output terminal equipment (Ilo)25. The microcomputer 21 is connected to an address bus 35. The microcomputer 21 . 1st ROM22. 2nd ROM23.
RAM24. Input/output terminal equipment (Ilo)25. A fault notification signal generator 26 is connected. Reference numeral 30 denotes a slave microcomputer unit, which is configured so as to be able to perform data processing with the master microcomputer unit 20 via communication lines 40 and 41.
なお、スレーブマイクロコンピュータユニット30は、
マイクロコンピュータ31.第4図(b)に示す制御手
順を記憶しているROM31a 、ROM32.RAM
33.入出力端末機器(Ilo)34等から構成され、
ROM321.:格納された制御プログラムに基づいて
入出力端末機W(Ilo)34をコントロールする。ま
た、上記憶1 ROM22.第2ROM23.ROM3
2には固有のプログラム識別コードデータが所定アドレ
スにあらかじめ記憶されている。Note that the slave microcomputer unit 30 is
Microcomputer 31. ROM 31a, ROM 32. which stores the control procedure shown in FIG. 4(b). RAM
33. Consists of input/output terminal equipment (Ilo) 34, etc.
ROM321. :Controls the input/output terminal W (Ilo) 34 based on the stored control program. In addition, upper memory 1 ROM22. 2nd ROM23. ROM3
2 has unique program identification code data stored in advance at a predetermined address.
第4図(a)、(b)はこの発明の他の実施例を示すプ
ログラム実行制御方式を説明するフローチャートである
。なお、(1)〜(10)、 (11)〜(18)は
各ステップを示す。特に各ステップ(1)〜(10)は
マスターマイクロコンピュータユニット20のマイクロ
コンピュータ21が実行する処理手順に対応し、各ステ
ップ(11)〜(18)はスレーブマイクロコンピュー
タユニット3oにおけるマイクロコンピュータ31が処
理する手順に対応する。FIGS. 4(a) and 4(b) are flowcharts illustrating a program execution control system showing another embodiment of the present invention. Note that (1) to (10) and (11) to (18) indicate each step. In particular, each step (1) to (10) corresponds to a processing procedure executed by the microcomputer 21 of the master microcomputer unit 20, and each step (11) to (18) is processed by the microcomputer 31 of the slave microcomputer unit 3o. Corresponds to the procedure to be followed.
[マスク側]
先ず、マイクロコンピュータ21は、ROM21aの内
容に基づいて通信ライン41を介してスレーブマイクロ
コンピュータユニット3oで使用するROM32の識別
データ情報を受信するのを待機しく1)、マイクロコン
ピュータ21内のCPUで受信記憶(マイクロコンピュ
ータ21内の内部メモリに記憶される)し、マイクロコ
ンピュータ21が第lROM22をアクセスして、第l
ROM22の所定エリアに識別データが設定されている
かどうかを判断しく2)、YESならばマイクロコンピ
ュータ21が第1 ROM22をアクセスして、第2R
OM23の所定エリアに識別データが設定されているか
どうかを判断しく3) 、Y ESならば通信ライン4
1を介して受信した識別データ情報が識別データかどう
かを判断しく4) 、YESならばマイクロコンピュー
タ21が第2ROM23の所定エリアに記憶されたプロ
グラム識別コードおよび第2ROM23の所定エリアに
記憶されたプログラム識別コードおよび受信した識別デ
ータとを読み出し、第1 ROM22.第2ROM23
.ROM32に格納されているプログラムの組み合わせ
起動がエラー起動となるかどうかをROM2Ia内に設
けられる組み合わせテーブルを参照するかCPU内に取
り込んだ識別情報とをつき合わせて判断しく5)、No
ならばマスターマイクロコンピュータユニット20のマ
イクロコンピュータ21が通信ライン40を介してスレ
ーブマイクロコンピュータユニット3oにおけるマイク
ロコンピュータ31に対して処理継続を許可する信号を
送出する処理継続ルーチンを実行しく6)、通常処理ル
ーチンを実行する(7)
一方、ステップ(2)〜(4)の判断でNOおよびステ
ップ(5)の判断でYESの場合は、マスターマイクロ
コンピュータユニット2oのマイクロコンピュータ21
が通信ライン40を介してスレーブマイクロコンピュー
タユニット30におけるマイクロコンピュータ31に対
して処理を強制終了する終了送信ルーチンを実行する(
8)。[Mask Side] First, the microcomputer 21 waits to receive identification data information of the ROM 32 used by the slave microcomputer unit 3o via the communication line 41 based on the contents of the ROM 21a. The CPU receives and stores the data (stored in the internal memory within the microcomputer 21), and the microcomputer 21 accesses the first ROM 22 to receive the first data.
It is determined whether identification data is set in a predetermined area of the ROM 22 (2). If YES, the microcomputer 21 accesses the first ROM 22 and reads the second R
Determine whether identification data is set in the predetermined area of OM23 (3), if YES, communication line 4
4) If YES, the microcomputer 21 selects the program identification code stored in the predetermined area of the second ROM 23 and the program stored in the predetermined area of the second ROM 23. The identification code and the received identification data are read out and stored in the first ROM 22. 2nd ROM23
.. Determine whether starting a combination of programs stored in the ROM 32 results in an error startup by referring to the combination table provided in the ROM 2Ia or by comparing it with the identification information imported into the CPU5), No.
If so, the microcomputer 21 of the master microcomputer unit 20 should execute a processing continuation routine in which the microcomputer 21 of the master microcomputer unit 20 sends a signal to the microcomputer 31 of the slave microcomputer unit 3o via the communication line 40 to permit processing to continue 6). Execute the routine (7) On the other hand, if the determination in steps (2) to (4) is NO and the determination in step (5) is YES, the microcomputer 21 of the master microcomputer unit 2o
executes a termination transmission routine to forcibly terminate processing to the microcomputer 31 in the slave microcomputer unit 30 via the communication line 40 (
8).
次いで、障害報知信号発生器26を起動させ(9)
マイクロコンピュータ21によるシステム処理を強制終
了する障害報知信号を出力して、終了処理ルーチンを実
行しく10)、処理を終了する。Next, activate the failure notification signal generator 26 (9)
A failure notification signal for forcibly terminating the system processing by the microcomputer 21 is output, and the termination processing routine is executed (10), thereby terminating the processing.
[スレーブ側]
先ず、マイクロコンピュータ31がROM31aに記憶
されている手順に従ってROM32をアクセスして識別
データが設定されているかどうかを判断しく11)、Y
ESならば識別データを識別データ情報としてRAM3
3に設定しく12)、ステップ(14)以降に進み、N
Oならば未設定情報を識別データとしてRAM33に設
定する(13)。[Slave side] First, the microcomputer 31 accesses the ROM 32 according to the procedure stored in the ROM 31a and determines whether or not identification data is set11), Y
If it is ES, the identification data is stored in RAM3 as identification data information.
Set it to 3 (12), proceed to step (14) and onwards, and
If O, the unset information is set in the RAM 33 as identification data (13).
次いで、通信ライン41を介してマスターマイクロコン
ピュータユニット20のマイクロコンピュータ21にR
AM33の識別データ情報を送信する送信ルーチンを実
行する(14) 。Next, R is sent to the microcomputer 21 of the master microcomputer unit 20 via the communication line 41.
A transmission routine for transmitting identification data information of AM33 is executed (14).
次いで、マスターマイクロコンピュータユニット20の
マイクロコンピュータ21からの以後の処理指示を受信
するのを待機しく15)、受信したら、受は取った指示
が処理の継続指示であるかどうかを判断しく16)、Y
ESならば上述した通常の処理ルーチンを行い(17)
、Noならば終了処理ルーチンを行い(18)、マイク
ロコンピュータ31の処理を強制終了して、処理を終了
する。なお、上記実施例ではROM21a 、ROM3
1aに制御手順を記憶させる場合について説明したが、
上記制御手順は別のROM、RAM等に記憶させる構成
であっても差し支えない。Next, the receiver waits to receive a subsequent processing instruction from the microcomputer 21 of the master microcomputer unit 20 (15), and upon receipt, the receiver judges whether the received instruction is an instruction to continue processing (16), Y
If it is ES, perform the normal processing routine described above (17)
, if No, the termination processing routine is executed (18), the processing of the microcomputer 31 is forcibly terminated, and the processing is terminated. In addition, in the above embodiment, ROM21a and ROM3
Although we have explained the case where the control procedure is stored in 1a,
The above control procedure may be stored in a separate ROM, RAM, or the like.
〔第3の実施例)
第5図はこの発明のさらに他の実施例を示すプログラム
実行制御方式を適用するハード構成図であり、第3図と
同一のものには同じ符合を付しである。[Third Embodiment] FIG. 5 is a hardware configuration diagram to which a program execution control method is applied, showing still another embodiment of the present invention, and the same components as in FIG. 3 are given the same reference numerals. .
この図において、29はリセット信号で、信号ライン4
1を介して受信したROM32に記憶される識別データ
が第1 ROM22.第2ROM23に記憶される識別
データとの比較照合結果に応じてマイクロコンピュータ
31による処理を強制終了させる場合に、マイクロコン
ピュータ21より独立したリセットラインを介して出力
される。In this figure, 29 is a reset signal, and signal line 4
The identification data stored in the ROM 32 received via the first ROM 22. When the processing by the microcomputer 31 is forcibly terminated in accordance with the comparison result with the identification data stored in the second ROM 23, it is outputted from the microcomputer 21 via an independent reset line.
第6図(a)、(b)はこの発明の他の実施例を示すプ
ログラム実行制御方式を説明するフローチャートである
。なお、(1)〜(9) 、 (11)〜(15)は
各ステップを示す。特に各ステップ(1)〜(9)はマ
スターマイクロコンピュータユニット20のマイクロコ
ンピュータ21が実行する処理手順に対応し、各ステッ
プ(11)〜(15)はスレーブマイクロコンピュータ
ユニット30におけるマイクロコンピュータ31が処理
する手順に対応する。FIGS. 6(a) and 6(b) are flowcharts illustrating a program execution control system showing another embodiment of the present invention. Note that (1) to (9) and (11) to (15) indicate each step. In particular, each step (1) to (9) corresponds to a processing procedure executed by the microcomputer 21 of the master microcomputer unit 20, and each step (11) to (15) is processed by the microcomputer 31 of the slave microcomputer unit 30. Corresponds to the procedure to be followed.
[マスタ側]
先ず、マイクロコンピュータ21は通信ライン41を介
してスレーブマイクロコンピュータユニット30で使用
するROM32の識別データ情報を受信するのを待機し
く1)、受信したらマイクロコンピュータ21が第lR
OM22をアクセスして、第1 ROM22の所定エリ
アに識別データが設定されているかどうかを判断しく2
)、YESならばマイクロコンピュータ21がilRO
M22をアクセスして、第2ROM23の所定エリアに
識別データが設定されているかどうかを判断しく3)
YESならば通信ライン41を介して受信した識別
データ情報が識別データかどうかを判断しく4)、YE
Sならばマイクロコンピュータ21が第2ROM23の
所定エリアに記憶されたプログラム識別コードおよび第
2ROM23の所定エリアに記憶されたプログラム識別
コードおよび受信した識別データとを読み出し、第1
ROM22、第2ROM23.ROM32に格納されて
いるプログラムの組み合わせ起動がエラー起動となるか
どうかを判断しく5)、Noならば通常処理ルーチンを
実行する(6)。[Master side] First, the microcomputer 21 waits to receive the identification data information of the ROM 32 used by the slave microcomputer unit 30 via the communication line 41 (1), and when it receives it, the microcomputer 21 switches to the first R.
Access the OM22 and determine whether identification data is set in a predetermined area of the first ROM22.
), if YES, the microcomputer 21 is ilRO
Access M22 and determine whether identification data is set in a predetermined area of the second ROM23 3)
If YES, determine whether the identification data information received via the communication line 41 is identification data 4), YES
If S, the microcomputer 21 reads out the program identification code stored in a predetermined area of the second ROM 23, the program identification code stored in a predetermined area of the second ROM 23, and the received identification data, and
ROM22, second ROM23. It is determined whether starting the combination of programs stored in the ROM 32 results in an error starting (5), and if no, the normal processing routine is executed (6).
一方、ステップ(2)〜(4)の判断でNOおよびステ
ップ(5)の判断でYESの場合は、マスターマイクロ
コンピュータユニット20のマイクロコンピュータ21
がリセット信号29をHレベル状態としく7)、スレー
ブコンピュータユニット30におけるマイクロコンピュ
ータ31に対して処理を強制終了する終了送信ルーチン
を実行させる。On the other hand, if the determination in steps (2) to (4) is NO and the determination in step (5) is YES, the microcomputer 21 of the master microcomputer unit 20
sets the reset signal 29 to the H level state (7) and causes the microcomputer 31 in the slave computer unit 30 to execute a termination transmission routine for forcibly terminating the process.
次いで、障害報知信号発生器26を起動させ(8)、マ
イクロコンピュータ21によるシステム処理を強制終了
する障害報知信号を出力して、終了処理ルーチンを実行
しく9)、処理を終了する。Next, the failure notification signal generator 26 is activated (8), a failure notification signal for forcibly terminating the system processing by the microcomputer 21 is outputted, and the termination processing routine is executed (9), thereby terminating the process.
[スレーブ側コ
先ず、マイクロコンピュータ31がROM32をアクセ
スして識別データが設定されているかどうかを判断しく
11)、YESならば識別データを識別データ情報とし
て設定しく12)、ステップ(14)以降に進み、NO
ならば未設定情報を識別データとして設定する(13)
。[Slave side: First, the microcomputer 31 accesses the ROM 32 to determine whether or not identification data is set (11). If YES, the identification data is set as identification data information (12), and steps (14) and thereafter are performed. Go ahead, NO
If so, set the unset information as identification data (13)
.
次いで、通信ライン41を介してマスターマイクロコン
ピュータユニット2oのマイクロコンピュータ21に識
別データ情報を送信する送信ルーチンを実行する(14
)。次いで、上述した通常の処理ルーチンを行う(15
)。Next, a transmission routine for transmitting identification data information to the microcomputer 21 of the master microcomputer unit 2o via the communication line 41 is executed (14).
). Next, the normal processing routine described above is performed (15
).
なお、上記実施例ではマイクロコンピュータとROMと
が独立したハード構成となる場合にこの発明を適用する
場合について説明したが、ROM内蔵型のマイクロプロ
セッサ等にもこの発明を適用できることは言うまでもな
いし、また、プログラムはROMでなくても、光ディス
ク(例えばCDROM等を含む)やフロッピーディスク
等の記憶媒体であっても良い。In the above embodiment, the present invention is applied to a case where the microcomputer and the ROM have an independent hardware configuration, but it goes without saying that the present invention can also be applied to a microprocessor with a built-in ROM. The program does not have to be a ROM, but may be a storage medium such as an optical disk (including, for example, a CDROM) or a floppy disk.
以上説明したように、この発明は各メモリアクセス発生
毎に、各メモリの所定アドレスに記憶されたプログラム
識別コードを読み出す識別コード読出し処理と、この識
別コード読出し処理により得られる各プログラム識別コ
ードとを比較して、各メモリに記憶された所定の制御プ
ログラムとの組合わせ起動適合性を照合判定する判定処
理と、この判定処理による照合結果に基づいて各メモリ
に記憶された所定の制御プログラムの一部または全部の
起動を制限するプログラム起動制限処理を実行するので
、複数のメモリからなるコンピュータシステムが構築さ
れた場合に、常に各メモリ間との適合状態が判定された
後に、各メモリ内に格納された制御プログラムが実行さ
れるため、各制御プログラムの暴走を未然に防止できる
とともに、各制御プログラムにより制御される周辺機器
の誤作動を防止でき、信頼性の高いシステムを安価なコ
ストで構築できる。As explained above, the present invention includes an identification code reading process for reading out a program identification code stored at a predetermined address in each memory each time a memory access occurs, and each program identification code obtained by this identification code reading process. A determination process that compares and determines the compatibility of the combination activation with a predetermined control program stored in each memory, and one of the predetermined control programs stored in each memory based on the verification result of this determination process. Since program startup restriction processing is executed to restrict the startup of some or all of the programs, when a computer system consisting of multiple memories is constructed, the compatibility between each memory is always determined before the data is stored in each memory. Since the specified control programs are executed, it is possible to prevent each control program from running out of control, and also to prevent malfunctions of peripheral devices controlled by each control program, making it possible to build a highly reliable system at a low cost. .
また、判定!A埋により、各メモリ1に記憶された各所
定の制御プログラムとの組み合わせ起動がエラーと判定
された場合に、組み合わせ起動障害報知信号を発生する
報知信号発生処理を実行することにより、複数のメモリ
からなるコンピュータシステムにおいて、起動不能をプ
ログラム実行前に報知でき、システム異常発生状態を確
認できる等の優れた効果を奏する。Also, judgment! By executing a notification signal generation process that generates a combination activation failure notification signal when combination activation with each predetermined control program stored in each memory 1 is determined to be an error due to the In a computer system consisting of the following, it is possible to notify that the program cannot be started before the program is executed, and it has excellent effects such as being able to confirm the occurrence of system abnormality.
第1図はこの発明の一実施例を示すプログラム実行制御
方式を適用するハード構成図、第2図はこの発明の一実
施例を示すプログラム実行制御方式を説明するフローチ
ャート、第3図はこの発明の他の実施例を示すプログラ
ム実行制御方式を適用するハード構成図、第4図(a)
、(b)はこの発明の他の実施例を示すプログラム実行
制御方式を説明するフローチャート、第5図はこの発明
のさらに他の実施例を示すプログラム実行制御方式を適
用するハード構成図、第6図(a)。
(b)はこの発明の他の実施例を示すプログラム実行制
御方式を説明するフローチャート、第7図は従来のコン
ピュータシステムの構成を説明するブロック図である。
図中、10はマイクロコンピュータ、11は第lROM
、12は第2ROM、13はRAM。
14は入出力端末機器、15は障害報知信号発生器、1
6はアドレスバス、17はデータバスである。
第1図
第2図
第
図
(a)
第
図
第
図
(a)
第
図
(b)Fig. 1 is a hardware configuration diagram to which a program execution control method is applied, showing an embodiment of the present invention, Fig. 2 is a flowchart explaining the program execution control method showing an embodiment of the invention, and Fig. 3 is a diagram of the invention. FIG. 4(a) is a hardware configuration diagram to which a program execution control method is applied showing another embodiment of
, (b) is a flowchart explaining a program execution control method showing another embodiment of the present invention, FIG. 5 is a hardware configuration diagram to which a program execution control method is applied showing still another embodiment of the invention, Figure (a). (b) is a flowchart illustrating a program execution control method showing another embodiment of the present invention, and FIG. 7 is a block diagram illustrating the configuration of a conventional computer system. In the figure, 10 is a microcomputer, 11 is the first ROM
, 12 is a second ROM, and 13 is a RAM. 14 is an input/output terminal device, 15 is a failure notification signal generator, 1
6 is an address bus, and 17 is a data bus. Figure 1 Figure 2 Figure (a) Figure (a) Figure (b)
Claims (2)
リを複数有し、これらのメモリに記憶された前記所定の
制御プログラムに基づいて周辺機器をマイクロコンピュ
ータが制御するコンピュータシステムにおいて、各メモ
リアクセス発生毎に、各メモリの所定アドレスに記憶さ
れたプログラム識別コードを読み出す識別コード読出し
処理と、この識別コード読出し処理により得られる各プ
ログラム識別コードとを比較して、各メモリに記憶され
た前記所定の制御プログラムとの組合わせ起動適合性を
照合判定する判定処理と、この判定処理による照合結果
に基づいて各メモリに記憶された前記所定の制御プログ
ラムの一部または全部の起動を制限するプログラム起動
制限処理とからなることを特徴とするプログラム実行制
御方式。(1) In a computer system that has a plurality of memories in which predetermined control programs are stored in advance, and in which a microcomputer controls peripheral devices based on the predetermined control programs stored in these memories, each time a memory access occurs, , an identification code reading process of reading out a program identification code stored at a predetermined address of each memory, and each program identification code obtained by this identification code reading process are compared to identify the predetermined control program stored in each memory. and a program activation restriction process that restricts activation of some or all of the predetermined control programs stored in each memory based on the verification result of this determination process. A program execution control method characterized by:
制御プログラムとの組み合わ起動がエラーと判定された
場合に、組み合わせ起動障害報知信号を発生する報知信
号発生処理を具備したことを特徴とする請求項(1)記
載のプログラム実行制御方式。(2) The feature includes a notification signal generation process that generates a combination activation failure notification signal when the combination activation with each predetermined control program stored in each memory is determined to be an error. The program execution control method according to claim (1).
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16067088A JPH0212329A (en) | 1988-06-30 | 1988-06-30 | Program execution control method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP16067088A JPH0212329A (en) | 1988-06-30 | 1988-06-30 | Program execution control method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0212329A true JPH0212329A (en) | 1990-01-17 |
Family
ID=15719943
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP16067088A Pending JPH0212329A (en) | 1988-06-30 | 1988-06-30 | Program execution control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0212329A (en) |
-
1988
- 1988-06-30 JP JP16067088A patent/JPH0212329A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6150354B2 (en) | ||
| US4918599A (en) | Interrupt control system | |
| JP2001333137A (en) | Self-operation communication control device and self-operation communication control method | |
| JPH0212329A (en) | Program execution control method | |
| US5140593A (en) | Method of checking test program in duplex processing apparatus | |
| JP3642594B2 (en) | Development support equipment | |
| US5303352A (en) | Dual connector port for bus master card | |
| US5577257A (en) | Information processing apparatus | |
| JP2800540B2 (en) | Panel monitoring method | |
| JP2983221B2 (en) | Memory configuration setting method | |
| JPH0535603A (en) | ROM configuration matching method | |
| JP2973724B2 (en) | Interrupt control method | |
| JPH07230412A (en) | Preventing misuse of shared files between multiple systems | |
| JPS6013494B2 (en) | Self-diagnosis method | |
| JP3324484B2 (en) | File sharing system, exclusive control method, recording medium recording exclusive control processing program | |
| JPH03288205A (en) | Programmable controller system | |
| JPS6154553A (en) | Channel start control system | |
| JP3211267B2 (en) | Access control method | |
| JPS62203239A (en) | Test system for information processor | |
| JP3088197B2 (en) | Multiplex communication device | |
| JPS6156540B2 (en) | ||
| JPH022180B2 (en) | ||
| JPS5833737A (en) | Reset controlling system | |
| JPS63163943A (en) | Control method for writing into memory | |
| JPS60140958A (en) | Line control system |