JPH0261743A - Hardware control system - Google Patents

Hardware control system

Info

Publication number
JPH0261743A
JPH0261743A JP63211585A JP21158588A JPH0261743A JP H0261743 A JPH0261743 A JP H0261743A JP 63211585 A JP63211585 A JP 63211585A JP 21158588 A JP21158588 A JP 21158588A JP H0261743 A JPH0261743 A JP H0261743A
Authority
JP
Japan
Prior art keywords
control
program
command
processing
switching device
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
JP63211585A
Other languages
Japanese (ja)
Inventor
Keiichi Kato
敬一 加藤
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP63211585A priority Critical patent/JPH0261743A/en
Publication of JPH0261743A publication Critical patent/JPH0261743A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PURPOSE:To substitute two kinds of private control program with one general program by detecting the state of a control switching device to convert the command from a control program to another command according with the detection result. CONSTITUTION:When a control system detecting program 11 is loaded to a main storage device 2, an instruction is executed by the indication of a central processing unit and the state of a control switching device 3 is read by processing 20. When a control mechanism 4 is connected, the control is transferred to processing 22; and when a control mechanism 5 is connected, the control is transferred to processing 23. The instruction of processing 22 informs a control conversion program 12 that the control mechanism 4 is connected, and the instruction of processing 23 informs the program 12 that the control mechanism 5 is connected. The control conversion program 12 subjects the command from a control program 10 to conversion according with corresponding system and executes it by processing 22 or 23.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、複数系統の制御機構を有する情報処理装置に
用いられるハードウェア制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a hardware control method used in an information processing device having multiple systems of control mechanisms.

〔従来の技術〕[Conventional technology]

従来、第1図に示すように2系統の制御機構を有する情
報処理装置が知られている。
2. Description of the Related Art Conventionally, an information processing apparatus having two systems of control mechanisms as shown in FIG. 1 has been known.

第1図を参照して、この情報処理装置は中央処理装置(
CPU ) 1及び主記憶装置2を備えておシ。
Referring to FIG. 1, this information processing device is a central processing unit (
It is equipped with a CPU (CPU) 1 and a main storage device 2.

これらCPU 1及び主記憶装置2はシステムバス7を
介して制御切換装置3に接続され、この制御切換装置3
は制御機構4及び5に接続されている。
These CPU 1 and main storage device 2 are connected to a control switching device 3 via a system bus 7.
are connected to control mechanisms 4 and 5.

そしてこれら制御機構4及び5にはそれぞれ一外部記憶
装置6.プリンタ8.及びキーが−ドブイスプレイ9が
連結されている。
Each of these control mechanisms 4 and 5 has an external storage device 6. Printer 8. and the keys are connected to the dove play 9.

この情報処理装置では、電源投入時等に制御切換装置3
で、制御機構4.制御機構5のいずれか一方を使用する
ことが選択され、この選択された制御系統を制御するた
めに、専用の制御プログラムをフロッピィディスク等の
外部記憶装置6から主記憶装置2上にローディングし、
この専用の制御プログラムのもとて情報処理装置が使用
される。
In this information processing device, when the power is turned on, etc., the control switching device 3
And the control mechanism 4. It is selected to use one of the control mechanisms 5, and in order to control the selected control system, a dedicated control program is loaded from an external storage device 6 such as a floppy disk onto the main storage device 2,
The information processing device is used under this dedicated control program.

第2図(4)は、電源投入時等に制御切換装置3で制御
機構4を選択した場合の例であって、外部記憶装置6か
ら専用の制御プログラムAを主記憶装置2にローディン
グした状態を示している。第2図(B)は、制御機構3
を選択した場合の例であって。
FIG. 2 (4) is an example in which the control mechanism 4 is selected by the control switching device 3 when the power is turned on, and the dedicated control program A is loaded into the main storage device 2 from the external storage device 6. It shows. Figure 2 (B) shows the control mechanism 3.
This is an example when .

外部記憶装置6から専用の制御プログラムBを主記憶装
置2にローディングした状態を示している。
A state in which a dedicated control program B is loaded from the external storage device 6 to the main storage device 2 is shown.

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

上述のように従来の制御方式では、それぞれの制御機構
に対応した専用の制御プログラムを準備する必要がある
。つまり、制御機構4を使用する場合には、制御プログ
ラムAを使用し、制御機構5を使用する場合、制御プロ
グラムBを使用しなければならない。
As described above, in the conventional control method, it is necessary to prepare a dedicated control program corresponding to each control mechanism. That is, when using the control mechanism 4, the control program A must be used, and when using the control mechanism 5, the control program B must be used.

このように利用者は、制御系統を切シ換えて情報処理装
置を使用する度に、それぞれの制御系統に合った制御プ
ログラムの格納されている媒体を用意しなければならな
い。また、制御系統に合わせた制御プログラムを2種類
作成する必要がありこのため、この種の情報処理装置を
使用する上で操作性に問題があシ、また。制御プログラ
ムを開発する上で、2種類の制御プログラムを開発する
という開発及び保守性に関して大きな問題点がある。
In this way, each time the user switches control systems and uses the information processing apparatus, he or she must prepare a medium in which a control program suitable for each control system is stored. In addition, it is necessary to create two types of control programs tailored to the control system, which causes problems in operability when using this type of information processing device. When developing a control program, there is a major problem regarding development and maintainability of developing two types of control programs.

本発明の目的は情報処理装置を有効に使用できるハード
ウェア制御方式を提供することにある。
An object of the present invention is to provide a hardware control method that can effectively use an information processing device.

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

本発明によれば、中央処理装置、主記憶装置。 According to the invention, a central processing unit, a main memory.

該中央処理装置及び主記憶装置に接続された制御切換装
置、及び複数の入出力装置と、該制御切換装置に接続さ
れるとともにそれぞれ前記入出力装置が接続された複数
のハードウェア制御機構とを有し、前記制御切換装置を
用いて前記ハードウェア制御機構を選択する情報処理装
置において、前記ハードウェア制御機構のいずれが用い
られているかを認識する第1の手段と、該第1の手段の
認識結果に基づいて制御グロ・ダラムから発行されるコ
マンドを前記ハードウェア制御機構に適するコマンドに
変換する第2の手段とを有することを特徴とするハード
ウェア制御方式が得られる。
A control switching device connected to the central processing unit and the main storage device, a plurality of input/output devices, and a plurality of hardware control mechanisms connected to the control switching device and each having the input/output device connected thereto. and selecting the hardware control mechanism using the control switching device, comprising: a first means for recognizing which of the hardware control mechanisms is being used; A hardware control method is obtained, characterized in that it has a second means for converting a command issued from the control system into a command suitable for the hardware control mechanism based on the recognition result.

〔実施例〕〔Example〕

次に1本発明について実施例によって説明す、る。 Next, one embodiment of the present invention will be explained using examples.

第3図を参照して2本発明の一実施例を説明する。なお
、第3図ではCPU及び各種入出力装置等を省略したが
情報処理装置の構成は第1図と同様である。フロッピィ
ディスク等の外部記憶装置6に格納されている制御グロ
グラム10.制御系統検出プログラム11.及び制御変
換プログラム12が、主記憶装置2にロードされる。上
記プログラムのロードがすべて終了すると、情報処理装
置の制御は制御系統検出プログラム11に移行する。制
御系統検出プログラム11は、制御切換装置3の状態を
読み取り、制御切換装置3がノ・−ドウエア制御機構(
以下単に制御機構という)4゜制御機構5のどちらに接
続されているかをチエツクし、その接続状態を制御変換
プログラム12に通知する。制御変換プログラム12は
、制御系統検出プログラム11から通知された情報をも
とにして、制御プログラム10から発行されるコマンド
を制御切換装置3に接続されている制御機構4゜又は制
御機構5に合わせてコマンドを変換する。
An embodiment of the present invention will be described with reference to FIG. Although the CPU and various input/output devices are omitted in FIG. 3, the configuration of the information processing device is the same as that in FIG. 1. A control program 10 stored in an external storage device 6 such as a floppy disk. Control system detection program 11. and the control conversion program 12 are loaded into the main storage device 2. When all of the above programs have been loaded, control of the information processing device is transferred to the control system detection program 11. The control system detection program 11 reads the state of the control switching device 3 and determines whether the control switching device 3 is connected to the hardware control mechanism (
It checks which of the 4° control mechanisms 5 (hereinafter simply referred to as control mechanisms) is connected, and notifies the control conversion program 12 of the connection state. The control conversion program 12 adapts the command issued from the control program 10 to the control mechanism 4° or the control mechanism 5 connected to the control switching device 3 based on the information notified from the control system detection program 11. Convert the command.

さらに、変換したコマンドを実行し、その終了結果を制
御プログラム10に通知する。
Furthermore, the converted command is executed and the control program 10 is notified of the completion result.

次に第4図も参照して1本発明に係る制御系統検出プロ
グラム11の処理について説明する。制御系統検出プロ
グラム11は、主記憶装置2にロードされると、中央処
理装置(第3図には示さず)によシ命令が実行され、そ
の命令による処理20によって制御切換装置3の状態を
読み取る。そして処理21によって制御機構4が接続さ
れているか、制御機構5が制御切換装置3に接続されて
いるかを判定し、制御機構4が接続されている場合は処
理22へ、制御機構5が接続されている場合は処理23
へ制御を移す。処理22の命令は、制御変換プログラム
12に対し、制御機構4が接続されていることを通知し
、処理23の命令は、制御変換プログラム12に対し、
制御機構5が接続されていることを通知する。上記処理
22または23により、制御変換プログラム12は、制
御プログラム10からのコマンドをそれぞれの系統に応
じた変換を行うことが可能となる。
Next, the processing of the control system detection program 11 according to the present invention will be explained with reference to FIG. When the control system detection program 11 is loaded into the main storage device 2, a command is executed by the central processing unit (not shown in FIG. 3), and the state of the control switching device 3 is determined by processing 20 according to the command. read. Then, in process 21, it is determined whether the control mechanism 4 is connected or the control mechanism 5 is connected to the control switching device 3. If the control mechanism 4 is connected, the process proceeds to process 22, and the control mechanism 5 is connected to the control switching device 3. If so, process 23
Transfer control to The command in process 22 notifies the control conversion program 12 that the control mechanism 4 is connected, and the command in process 23 notifies the control conversion program 12 that the control mechanism 4 is connected.
It is notified that the control mechanism 5 is connected. The above processing 22 or 23 enables the control conversion program 12 to convert commands from the control program 10 according to each system.

第5図は本発明に係る制御変換プログラム12の処理を
示したものである。
FIG. 5 shows the processing of the control conversion program 12 according to the present invention.

第5図を参照して、制御変換プログラム12は。Referring to FIG. 5, the control conversion program 12.

制御プログラム10がコマンドを発行すると処理を開始
する。処理30の命令は制御プログラム10が発行した
コマンドを受は取る。そして処理31の命令により制御
系統検出プログラム11から、すでに通知されている制
御機構4又は制御機構5の接続状態を判定し、制御機構
4が接続されている場合は、処理32へ、制御機構5が
接続されている場合は、処理33へ制御を移行する。処
理32の命令は、制御プログラム10よシ発行されたコ
マンドを制御機構4で使用可能なコマンドに変換する。
When the control program 10 issues a command, processing starts. The instructions of the process 30 receive and receive commands issued by the control program 10. Then, the control system detection program 11 determines the connection state of the control mechanism 4 or control mechanism 5 that has already been notified according to the command of process 31, and if the control mechanism 4 is connected, the process proceeds to process 32. If it is connected, control shifts to process 33. The command of the process 32 converts a command issued by the control program 10 into a command usable by the control mechanism 4.

処理33の命令は、制御プログラム10よす発行された
コマンドを制御機構5で使用可能なコマンドに変換する
。処理34の命令は。
The command of the process 33 converts the command issued by the control program 10 into a command usable by the control mechanism 5. The command of process 34 is as follows.

処理32.33で変換されたコマンド実行し、処理35
に制御を移す。処理35の命令は、実行したコマンドの
終了状態をチエツクし、その結果を制御プログラム10
に通知し、処理を終了する。
Execute the command converted in process 32.33, and process 35
transfer control to The command of process 35 checks the completion status of the executed command and sends the result to the control program 10.
and terminate the process.

なお、上述の実施例では2系統のハードウェア制御機構
を有する場合について説明したが、複数のハードウェア
制御機構を有する場合にも同様に適用できる。
In addition, although the above-mentioned Example demonstrated the case where it had two systems of hardware control mechanisms, it can apply similarly to the case where it has a plurality of hardware control mechanisms.

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

以上説明したように本発明では、制御切換装置の状態を
自動的に検出し、制御プログラムからのコマンドをそれ
ぞれの系統に合わせたコマンドに変換してから実行する
ことによシ、専用の制御プログラムを2種類作成する必
要がなくなシ、汎用の制御プログラムだけでよい。従っ
て、開発・保守性に極めて有用でアシ、かつ、利用者か
ら見て専用の制御プログラムの格納された媒体を用意す
ることなく、制御切換装置の切換えを行うだけで。
As explained above, the present invention automatically detects the state of the control switching device, converts commands from the control program into commands suitable for each system, and then executes them. There is no need to create two types of control programs, and only a general-purpose control program is required. Therefore, it is extremely useful for development and maintainability, and from the user's point of view, the user can simply switch the control switching device without having to prepare a medium in which a dedicated control program is stored.

2系統の制御機構を自動的に使用できるという効果があ
る。
This has the advantage that two systems of control mechanisms can be used automatically.

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

第1図は、2系統の制御機構を持つ情報処理装置の構成
図、第2図(4)及び(B)は、従来方式による制御プ
ログラムのローディングの説明図、第3図は本発明の一
実施例を示す概要図、第4図は1本発明に係る制御系統
検出プログラムの処理例を説明するための流れ図、第5
図は1本発明に係る制御変換プログラムの処理例を説明
するための流れ図である。 1は中央処理装置、2は主記憶装置、3は制御切換装置
、4は制御機構A、5は制御機構B、6は外部記憶装置
、7はシステムノZス、8はプリンタ、9はキー?−ド
ディスプレイ。 第3図
Fig. 1 is a block diagram of an information processing device having two systems of control mechanisms, Fig. 2 (4) and (B) are explanatory diagrams of loading of a control program using the conventional method, and Fig. 3 is an illustration of the method of loading a control program according to the present invention. FIG. 4 is a schematic diagram showing an embodiment; FIG. 4 is a flowchart for explaining a processing example of the control system detection program according to the present invention;
FIG. 1 is a flowchart for explaining a processing example of a control conversion program according to the present invention. 1 is a central processing unit, 2 is a main storage device, 3 is a control switching device, 4 is a control mechanism A, 5 is a control mechanism B, 6 is an external storage device, 7 is a system node Z, 8 is a printer, 9 is a key ? - display. Figure 3

Claims (1)

【特許請求の範囲】[Claims] 1、中央処理装置、主記憶装置、該中央処理装置及び主
記憶装置に接続された制御切換装置、及び複数の入出力
装置と、該制御切換装置に接続されるとともにそれぞれ
前記入出力装置が接続された複数のハードウェア制御機
構とを有し、前記制御切換装置を用いて前記ハードウェ
ア制御機構を選択する情報処理装置において、前記ハー
ドウェア制御機構のいずれが用いられているかを認識す
る第1の手段と、該第1の手段の認識結果に基づいて制
御プログラムから発行されるコマンドを前記ハードウェ
ア制御機構に適するコマンドに変換する第2の手段とを
有することを特徴とするハードウェア制御方式。
1. A central processing unit, a main storage device, a control switching device connected to the central processing unit and the main storage device, and a plurality of input/output devices, each connected to the control switching device and connected to each of the input/output devices. In the information processing apparatus, the information processing apparatus has a plurality of hardware control mechanisms, and uses the control switching device to select the hardware control mechanism, a first information processing apparatus that recognizes which of the hardware control mechanisms is used. and a second means for converting a command issued from a control program into a command suitable for the hardware control mechanism based on the recognition result of the first means. .
JP63211585A 1988-08-27 1988-08-27 Hardware control system Pending JPH0261743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63211585A JPH0261743A (en) 1988-08-27 1988-08-27 Hardware control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63211585A JPH0261743A (en) 1988-08-27 1988-08-27 Hardware control system

Publications (1)

Publication Number Publication Date
JPH0261743A true JPH0261743A (en) 1990-03-01

Family

ID=16608202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63211585A Pending JPH0261743A (en) 1988-08-27 1988-08-27 Hardware control system

Country Status (1)

Country Link
JP (1) JPH0261743A (en)

Similar Documents

Publication Publication Date Title
JPH0261743A (en) Hardware control system
JPH03265945A (en) Data sharing system for operating systems of different types
JPS6259333B2 (en)
JPH0431945A (en) Input/output control system for computer system
JPH07311718A (en) Duplex system
JPH0832078B2 (en) Station data automatic conversion processing method
JP2531080B2 (en) Bus adapter switching method
JPS6289155A (en) Information processor
JPH04268652A (en) Filing device
JPS6398728A (en) Input/output controller
JPH07129419A (en) Virtual computer system
JPH01233545A (en) Interruption factor controller
JPH04147360A (en) Execution command reproducing system
JPS63173114A (en) Data input device
JPH10187581A (en) Interface device and interface change method
JPH05298228A (en) Input/output system
JPH0298219A (en) Keyboard identification system
JPH02116933A (en) Control system for maneuvering apparatus
JPH03134748A (en) Switching system for data transfer path
JPS63249243A (en) Secondary storage information saving system
JPH01116737A (en) Power source controller
JPS62107355A (en) Data processor
JPH103443A (en) Input/output controller
JPS6354657A (en) Job transfer system between different kinds of computers
JPH04140829A (en) Command type operating system switching system