JPS63310044A - Controller - Google Patents

Controller

Info

Publication number
JPS63310044A
JPS63310044A JP62145250A JP14525087A JPS63310044A JP S63310044 A JPS63310044 A JP S63310044A JP 62145250 A JP62145250 A JP 62145250A JP 14525087 A JP14525087 A JP 14525087A JP S63310044 A JPS63310044 A JP S63310044A
Authority
JP
Japan
Prior art keywords
data
program
control program
limit
stored
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
JP62145250A
Other languages
Japanese (ja)
Inventor
Masayuki Uchiumi
内海 雅行
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP62145250A priority Critical patent/JPS63310044A/en
Publication of JPS63310044A publication Critical patent/JPS63310044A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize or predict the replacement/adjustment of a hardware equipment by managing the number of times of start of software. CONSTITUTION:After a system is raised, a CPU 5 reads data 11 of the number of execution times and data 12 of the number of limit times stored in a magnetic disk 3, displays a message of it on a CRT display device 1 if the data 11 exceeds the data 12 to complete the execution of the control program. When the data 11 does not exceed the data 12, the control program stored in a memory 6 is executed and the data 11 stored in the magnetic disk 3 is updated to complete the processing. Thus, the user can grasp the deterioration or wear of an electronic equipment controlled by the CPU 5 before the limit.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、中央処理装置(cpu)が記憶媒体に格納
された制御プログラムに基づいて接続さっるハード機器
をプログラム制御する制御装置に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a control device in which a central processing unit (CPU) programmatically controls connected hardware devices based on a control program stored in a storage medium. be.

(従来の技術) 近年、電子技術の進歩により、あらゆる分野においてC
PUが搭載された電子機器が数多く製品化されている。
(Conventional technology) In recent years, with the advancement of electronic technology, C
Many electronic devices equipped with PU have been commercialized.

このような電子機器においては、cPUは外部記憶装置
まけたROMチップ等の記憶媒体に記憶された制御プロ
グラムを読み出し、各ハード機器の入出力を制御するよ
うに構成されている。
In such electronic devices, the cPU is configured to read a control program stored in a storage medium such as a ROM chip in an external storage device and control input and output of each hardware device.

特に処理するデータの重要度等から上記記憶媒体に格納
されたソフトウェア(制御プログラム)の実行を制限し
、不必要なオペレータからのアクセスでは所望のプログ
ラムが実行しないように管理されたシステムも開発され
ている。
In particular, a system has been developed that restricts the execution of the software (control program) stored on the storage medium due to the importance of the data to be processed, and prevents the desired program from being executed due to unnecessary operator access. ing.

このようなシステムでは、通常ファイル管理ブロックに
ソフトウェア実行に関するフラッグを有し、ユーザID
コードとの対応関係を判定して、そのユーザが要求され
るソフトウェアの実行を許容できる相手であるかどうか
を識別させ、特定のユーザに特定のプログラム実行を制
限させている。
Such systems usually have a flag related to software execution in the file management block, and a user ID.
By determining the correspondence with the code, it is determined whether the user is allowed to execute the requested software, and execution of a specific program is restricted to a specific user.

(発明が解決しようとする問題点) ところが、上記のようにソフトウェアの実行を制限して
も、そのソフトウェアの実起動回数に基づくハード機器
の劣化状態までは判定できないため、使用または耐用に
より劣化し交換時期に到達したハード機器の状態は何ら
考慮されずに、上記ソフトウェアにより起動され酷使さ
れて行く、このため、ハード機器としは非常にエラーが
発生し易い状態でソフトウェアが起動されずけてしまい
重大なシステムエラーを誘発してしまう重大な問題点が
あった。
(Problem to be Solved by the Invention) However, even if the execution of software is restricted as described above, it is not possible to determine the state of deterioration of the hardware based on the number of times the software is actually activated. The condition of the hardware device that has reached the time of replacement is not taken into account, and the software is started up and abused, and as a result, the software is not started up in a state where errors are very likely to occur for hardware devices. There was a serious problem that caused a serious system error.

この発明は、上記の問題点を解消するためになされたも
ので、ソフトウェアの起動回数を管理することにより、
そのソフトウェアの起動を制限できる制御装置を得るこ
とを目的とする。
This invention was made to solve the above problems, and by managing the number of times the software is started,
The purpose of this invention is to obtain a control device that can restrict the activation of the software.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係る制御装置は、制御プログラムおよびこの
制御プログラムの起動制限回数を記憶するプログラム記
憶手段と、プロセッサにより順次起動されるに制御プロ
グラムの実行回数を順次更新記憶するプログラム起動回
数記憶手段とを設けたものである。
The control device according to the present invention includes a program storage means for storing a control program and a limit number of times the control program is started, and a program start-up number storage means for sequentially updating and storing the number of times the control program is executed when the control program is sequentially started by the processor. It was established.

(作用) この発明においては、プロセッサによる制御プログラム
起・勅毎に、プログラム起動回数記憶手段に更新記憶さ
れた実行回数とプログラム記憶手段に記憶される起動制
限回数を参照比較して制御プログラムの起動を制御する
(Operation) In the present invention, each time the processor starts the control program, the number of executions updated and stored in the program startup number storage means and the limited number of startups stored in the program storage means are referenced and compared to start the control program. control.

〔実施例〕〔Example〕

第1図はこの発明の一実施例を示す制御装置の構成を説
明するブロック図であり、1はCRTディスプレイで、
キーボード2から入力されたデータやプログラム実行結
果等を表示する。キーボード2はCPU5が処理するデ
ータおよびコマンドを入力する。3はこの発明のプログ
ラム記憶手段となる磁気ディスクで、後述する第3図、
第5図に示す制御手順および実行する制御プログラム。
FIG. 1 is a block diagram illustrating the configuration of a control device showing an embodiment of the present invention, in which 1 is a CRT display;
Displays data input from the keyboard 2, program execution results, etc. The keyboard 2 inputs data and commands to be processed by the CPU 5. 3 is a magnetic disk serving as a program storage means of the present invention, as shown in FIG.
The control procedure shown in FIG. 5 and the control program to be executed.

データが書き換え可能に記憶されている。4はフロッピ
ーディスク装置で、所定の汎用ソフトウェアが格納され
ている。5はマイクロプロセッサとなるCPUで、磁気
ディスク3に順次更新しながら格納される実行回数デー
タとあらかじめ設定された起動制限回数データとを制御
プログラム起動毎に参照して比較し、制御プログラムの
実行を制限する。6はメモリで、CPU5が実行する制
御プログラム、データを格納し、ワークメモリとして機
能する。
Data is stored in a rewritable manner. 4 is a floppy disk device in which predetermined general-purpose software is stored. Reference numeral 5 denotes a CPU serving as a microprocessor, which refers to and compares the execution count data sequentially updated and stored in the magnetic disk 3 with the start limit count data set in advance each time the control program is started, and controls the execution of the control program. Restrict. A memory 6 stores control programs and data executed by the CPU 5, and functions as a work memory.

第2図は第1図に示した磁気ディスク3のメモリ空間を
説明する模式図であり、第1図と同一のものには同じ符
号を付しである。
FIG. 2 is a schematic diagram illustrating the memory space of the magnetic disk 3 shown in FIG. 1, and the same parts as in FIG. 1 are given the same reference numerals.

この図において、11は実行回数データで、CPU5に
よる制御プログラム実行毎に順次更新される。12は起
動制限回数(制限回数)データで、制御プログラムに制
御される電子機器の種別に応じて任意、かつ書き換え可
能に記憶されている。13は制御プログラムで、CPU
5のシステム立ち上げ毎に、メモリ6上に読み出される
In this figure, 11 is execution count data, which is sequentially updated every time the CPU 5 executes the control program. Reference numeral 12 indicates start-up limit number of times (limited number of times) data, which is arbitrarily and rewritably stored depending on the type of electronic device controlled by the control program. 13 is a control program, which is a CPU
The data is read out onto the memory 6 every time the system is started up.

この図から分かるように、実行回数データ11、制限回
数データ12は磁気ディスク3の先頭アドレスから順次
格納されている。
As can be seen from this figure, the execution count data 11 and the limit count data 12 are stored sequentially from the top address of the magnetic disk 3.

次に第3図を参照しながらこの発明によるプログラム起
動制御動作について説明する。
Next, the program startup control operation according to the present invention will be explained with reference to FIG.

第3図はこの発明によるプログラム起動制御手順を説明
するフローチャートである。なお、(1)〜(4)は各
ステップを示す。
FIG. 3 is a flowchart illustrating a program startup control procedure according to the present invention. Note that (1) to (4) indicate each step.

CPU5はシステムが立ち上げられると、磁気ディスク
3に格納された実行回数データ11と制限回数データ1
2とを読み出し、実行回数データ11が制限回数データ
12を越えたかどうかを判断しく1)、YESならばC
RTディスプレイ1にその旨をメツセージ表示しく2)
、制御プログラムの処理を実行せずに処理を終了する。
When the system is started, the CPU 5 reads the execution count data 11 and the limit count data 1 stored in the magnetic disk 3.
2) and judge whether the execution count data 11 exceeds the limit count data 12 (1), and if YES, C
Please display a message to that effect on RT Display 1 2)
, the process ends without executing the control program process.

一方、ステップ(1)の判断で、Noならばメモリ6に
格納された制御プログラムを実行しく3)、磁気ディス
ク3に記憶されている実行回数データ11を「1」更新
して(4)、処理を終了する。
On the other hand, if the judgment in step (1) is No, the control program stored in the memory 6 is executed (3), the execution count data 11 stored in the magnetic disk 3 is updated to "1" (4), Finish the process.

なお、上記実施例では磁気ディスク3に制限回数データ
12が1つ記憶される場合について説明したが、第4図
に示すように複数格納して、段階的に制御プログラムの
起動を制御してもよい。
In the above embodiment, a case has been described in which one piece of limit number data 12 is stored in the magnetic disk 3, but it is also possible to store a plurality of pieces of data 12 and control the startup of the control program in stages as shown in FIG. good.

第4図は第1図に示した磁気ディスク3のメモリ空間を
説明する模式図であり、第2図と同一のものには同じ符
号を付しである。
FIG. 4 is a schematic diagram illustrating the memory space of the magnetic disk 3 shown in FIG. 1, and the same parts as in FIG. 2 are given the same reference numerals.

この図において、12aは第1制限回数データで、第1
制限回数データ12aは第2制限回数データ12bより
小さいデータであり、第1制限回数データ12aを越え
る値に実行回数データ11が更新された場合に、実行回
数データ11が第2制限回数データ12bと参照比較さ
れる。
In this figure, 12a is the first limit number of times data;
The limited number of times data 12a is smaller than the second limited number of times data 12b, and when the number of executions data 11 is updated to a value exceeding the first limited number of times data 12a, the number of executions data 11 is changed to the second limited number of times data 12b. Compared by reference.

第5図はこの発明の他のプログラム起動制御手順を説明
するフローチャートである。なお、(1)〜(5)は各
ステップを示す。
FIG. 5 is a flowchart illustrating another program startup control procedure of the present invention. Note that (1) to (5) indicate each step.

CPU5はシステムが立ち上げられると、磁気ディスク
3に格納された実行回数データ11と第1制限回数デー
タ12aとを読臥出し、実行回数データ11が第1制限
回数データ12aを越えたかどうかを判断しく1)、Y
ESならば実行回数データ11が第2制限回数データ1
2bを越えたかどうかを判断しく2)、NOならばCR
Tディスプレイ1にその旨(設定された制限回数に到達
する旨)を表示しく3)、ステップ(4)に進む。
When the system is started, the CPU 5 reads out the execution count data 11 and the first limit count data 12a stored in the magnetic disk 3, and determines whether the execution count data 11 exceeds the first limit count data 12a. Shiku1), Y
If it is ES, the execution count data 11 is the second limit count data 1
Please judge whether it exceeds 2b2), if NO, CR
Display that fact (that the set limit number of times has been reached) on the T-display 1 (3), and proceed to step (4).

一方、ステップ(2)の判断で、NOならばCPU5に
よる制御プログラム実行回数が第2制限回数データ12
bを越えたものと判定し、制御プログラムの処理を実行
せずに処理を終了する。
On the other hand, if the determination in step (2) is NO, the number of times the control program is executed by the CPU 5 is determined by the second limit number data 12.
It is determined that the value exceeds b, and the process is terminated without executing the process of the control program.

一方、ステップ(1)の判断で、Noならばメモリ6に
格納された制御プログラムを実行しく4)、磁気ディス
ク3に記憶されている実行回数データ11を「1」更新
上て(5)、処理を終了する。
On the other hand, if the determination in step (1) is No, the control program stored in the memory 6 is executed (4), the execution count data 11 stored in the magnetic disk 3 is updated to "1" (5), Finish the process.

これにより、ユーザに対してCPU5に制御される電子
機器の劣化、消耗をプログラム起動回数限界に到達する
前に把握でき、本来のプログラム制限回数に到達した場
合の処理に準備することが可能となる。
This allows the user to understand the deterioration and wear and tear of the electronic equipment controlled by the CPU 5 before reaching the limit on the number of times the program is activated, and to prepare for processing when the original limit on the number of program starts is reached. .

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

以上説明したように、この発明は制御プログラムおよび
この制御プログラムの起動制限回数を記憶するプログラ
ム記憶手段と、プロセッサにより順次起動されるに制御
プログラムの実行回数を順次更新記憶するプログラム起
動回数記憶手段とを設けたので、制御プログラムの起動
に応じて摩耗したり、劣化するハード機器の駆動をソフ
トウェアの実行回数で制限できので、システム起動の上
でトラブルが発生する以前にハード機器の交換。
As explained above, the present invention includes a program storage means for storing a control program and the limited number of times the control program is started, and a program start-up number storage means for sequentially updating and storing the number of times the control program is executed when the control program is sequentially started by a processor. This allows us to limit the number of times the software is executed to drive hardware that wears out or deteriorates as the control program starts, so we can replace hardware before system startup problems occur.

調整を認識または予知が可能となり、ソフトウェアに起
動されるシステムの信頼性を高めることができる優れた
利点を有する。
This has the advantage that adjustments can be recognized or predicted, increasing the reliability of a software-driven system.

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

第1図はこの発明の一実施例を示す制御装置の構成を説
明するブロック図、第2図は第1図に示した磁気ディス
クのメモリ空間を説明する模式図、第3図はこの発明に
よるプログラム起動制御手順を説明するフローチャート
、第4図は第1図に示した磁気ディスクのメモリ空間を
説明する模式図、第5図はこの発明の他のプログラム起
動制御手順を説明するフローチャートである。 図中、1はCRTディスプレイ、2はキーボード、3は
磁気ディスク、4はフロッピーディスク装置、5はCP
U、6はメモリである。11は実行回数データ、12は
制限回数データである。 第1図 第2図 第3図
FIG. 1 is a block diagram explaining the configuration of a control device showing an embodiment of the present invention, FIG. 2 is a schematic diagram explaining the memory space of the magnetic disk shown in FIG. 1, and FIG. 3 is a block diagram explaining the configuration of a control device according to the present invention. FIG. 4 is a schematic diagram illustrating the memory space of the magnetic disk shown in FIG. 1, and FIG. 5 is a flowchart illustrating another program startup control procedure of the present invention. In the figure, 1 is a CRT display, 2 is a keyboard, 3 is a magnetic disk, 4 is a floppy disk device, and 5 is a CP
U, 6 is a memory. 11 is execution count data, and 12 is limit count data. Figure 1 Figure 2 Figure 3

Claims (3)

【特許請求の範囲】[Claims] (1)制御プログラムに基づいて電子機器をプログラム
制御するプロセッサを有する制御装置において、前記制
御プログラムおよびこの制御プログラムの起動制限回数
を記憶するプログラム記憶手段と、前記プロセッサによ
り順次起動されるに前記制御プログラムの実行回数を順
次更新記憶するプログラム起動回数記憶手段とを具備し
たことを特徴とする制御装置。
(1) In a control device having a processor that program-controls an electronic device based on a control program, a program storage means for storing the control program and a limit number of times the control program is activated; 1. A control device comprising: program start-up number storage means for sequentially updating and storing the number of times a program has been executed.
(2)プロセッサは、制御プログラム起動毎に、プログ
ラム起動回数記憶手段に更新記憶された実行回数と起動
制限回数を参照比較して前記制御プログラムの起動を制
限することを特徴とする特許請求の範囲第(1)項記載
の制御装置。
(2) Each time the control program is started, the processor refers to and compares the number of executions updated and stored in the program start-up number storage means with the start-up limit number of times to limit the start-up of the control program. The control device according to paragraph (1).
(3)プログラム起動回数記憶手段は、優先順位の異な
る起動制限回数を変更可能に複数記憶することを特徴と
する特許請求の範囲第(1)項記載の制御装置。
(3) The control device according to claim (1), wherein the program start-up number storage means is configured to changeably store a plurality of start limit times having different priorities.
JP62145250A 1987-06-12 1987-06-12 Controller Pending JPS63310044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62145250A JPS63310044A (en) 1987-06-12 1987-06-12 Controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62145250A JPS63310044A (en) 1987-06-12 1987-06-12 Controller

Publications (1)

Publication Number Publication Date
JPS63310044A true JPS63310044A (en) 1988-12-19

Family

ID=15380789

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62145250A Pending JPS63310044A (en) 1987-06-12 1987-06-12 Controller

Country Status (1)

Country Link
JP (1) JPS63310044A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5943650A (en) * 1996-07-08 1999-08-24 Hiromasa Murakoshi Operation management system and operation management method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5943650A (en) * 1996-07-08 1999-08-24 Hiromasa Murakoshi Operation management system and operation management method

Similar Documents

Publication Publication Date Title
KR101782313B1 (en) Apparatus and method for handling exception events
EP0658843A1 (en) Method for hibernation file creation
US7168075B1 (en) Automation device and updating method
US9824229B2 (en) Controller with enhanced reliability
US6502176B1 (en) Computer system and methods for loading and modifying a control program without stopping the computer system using reserve areas
US6820153B2 (en) Interrupt processing and memory management method in an operation processing device and a device using the same
JP4122725B2 (en) Real-time control system
JPS63310044A (en) Controller
JPH02161523A (en) Resident module correcting system
JP2005135137A (en) Virtual computer system
JP2005071141A (en) Method and device for managing stack and stack management program
JP4535663B2 (en) State machine control method and state machine
JPH07295670A (en) Starting method for computer system
CN114880157A (en) Fault injection method and device
JPS62287366A (en) Program controller
JPH11282734A (en) Parallel database management method
JPS6212535B2 (en)
JPH09212396A (en) Server/client system and its data processing method
JP2003345608A (en) System, method, and program for firmware dispatch
JPS63127305A (en) Programmable controller
JPS63206831A (en) Method for controlling start up of application program
JPS6385938A (en) Controller for multiplex parallel operation of program
JPH05143401A (en) User program file controller
JPH02136927A (en) Language process program
JPH05210506A (en) Office processor