JPH0250245A - Peripheral control device - Google Patents

Peripheral control device

Info

Publication number
JPH0250245A
JPH0250245A JP19887188A JP19887188A JPH0250245A JP H0250245 A JPH0250245 A JP H0250245A JP 19887188 A JP19887188 A JP 19887188A JP 19887188 A JP19887188 A JP 19887188A JP H0250245 A JPH0250245 A JP H0250245A
Authority
JP
Japan
Prior art keywords
peripheral
buffer
function
flag
peripheral control
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.)
Granted
Application number
JP19887188A
Other languages
Japanese (ja)
Other versions
JPH0769880B2 (en
Inventor
Yoshiaki Mori
森 善昭
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 Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP63198871A priority Critical patent/JPH0769880B2/en
Publication of JPH0250245A publication Critical patent/JPH0250245A/en
Publication of JPH0769880B2 publication Critical patent/JPH0769880B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To prevent unwritten data or uninformed status from being deleted with the unexpected interruption of a power source or the execution of diagnosis, etc., by providing the three types of storage parts for a function stopping flag, a function stop defusing flag and a device corresponding flag in a peripheral control device. CONSTITUTION:The peripheral control device is equipped with an input and output (I/O) control part 17 to a high order device, a reading and writing circuit 16 to external peripheral devices 21-24, a buffer 14 to execute the temporary store of data between the I/O control part 17 and the reading and writing circuit 16, storage parts 11-13 to store a processing condition when a function stop is indicated from the high order device to the peripheral devices 21-24, and a microprogram control part. Thus, the unwritten data in the buffer 14 are written by one time of indication from the high order device. Then, when the unwritten data are remained, the power source is prevented from being interrupted unexpectedly.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、周辺制御装置に関し、特に、上位装置からの
命令によって機能を停止させる場合に未書き込みデータ
などを喪失することのない周辺制御装置に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a peripheral control device, and particularly to a peripheral control device that does not lose unwritten data when its functions are stopped by a command from a host device. Regarding.

[従来の技術] バッファを有する周辺制御装置では、上位装置からの書
き込み命令で受は取ったデータをバッファへ蓄え、バッ
ファへのデータの格納が完了した時点で上位装置に対し
ては書き込み命令の終了を報告し、非同期に周辺装置へ
の書き込みを行なうものがある。
[Prior Art] In a peripheral control device having a buffer, data received in response to a write command from a host device is stored in the buffer, and when the storage of data in the buffer is completed, the write command is sent to the host device. Some report completion and write to peripherals asynchronously.

しかし、バッファ内に存在する未書き込みのデータは、
オペレータや保守員などにとって直接口で見ることがで
きないものである。従って、このような周辺制御装置で
は、バッファに未書き込みのデータが残っているかいな
いか不明である状態が多く、保守の際などに不用意に電
源を切断したりすることはできない。
However, the unwritten data that exists in the buffer is
This is something that operators, maintenance staff, etc. cannot see directly. Therefore, in such peripheral control devices, it is often unclear whether or not unwritten data remains in the buffer, and the power cannot be carelessly turned off during maintenance or the like.

このため、従来の周辺制御装置では、特定の周辺装置に
対してバッファ内の未書き込みデータを書き出す命令を
用意し、この命令をすべての周辺装置に対して実行して
から電源を切断していた。
For this reason, conventional peripheral control devices prepare an instruction to write unwritten data in a buffer to a specific peripheral device, execute this instruction for all peripheral devices, and then turn off the power. .

[解決すべき問題点] 上述した従来の周辺制御装置は、次のような問題点があ
った。
[Problems to be Solved] The conventional peripheral control device described above has the following problems.

■、各周辺装置ごとに命令を実行しなければならなかっ
たため、周辺制御装置が複数の独立した上位装置に接続
されているような場合、バッファ内の未書き込みデータ
を周辺装置へ書き出している間に他の周辺装置に対して
新たな書き込み命令が出され、周辺制御装置の機能を停
止させられなくなる可能性がある。
■Since instructions had to be executed for each peripheral device, in cases where the peripheral control device is connected to multiple independent host devices, while writing unwritten data in the buffer to the peripheral device. Then, a new write command is issued to another peripheral device, and there is a possibility that the function of the peripheral control device cannot be stopped.

01周辺制御装置に複数の接続経路が存在する場合、バ
ッファ内の未書き込みデータを書き出す命令を実行しよ
うとしても、その周辺装置が他の経路に占有されている
場合は命令を実行できず、速やかに周辺制御装置の機能
を停止させることができない。
01 If a peripheral control device has multiple connection paths, even if you try to execute an instruction to write unwritten data in the buffer, if that peripheral device is occupied by another path, the instruction cannot be executed and the It is not possible to stop the functions of the peripheral control device.

本発明は、上記問題点にかんがみてなされたもので、上
位装置からの一回の命令でバッファ内の未書き込みデー
タを書き出すとともに、未書き込みデータが残っている
ときに不用意に電源を切断してしまうようなことのない
周辺制御装置の提供を目的とする。
The present invention was made in view of the above problems, and it writes out unwritten data in the buffer with a single command from the host device, and also prevents the power from being inadvertently turned off when unwritten data remains. The purpose is to provide a peripheral control device that will not cause any problems.

[問題点の解決手段] 上記目的を達成するため、本発明の周辺制御装置は、上
位装置との入出力I/Oを行なうI/O制御部と、外部
周辺装置に対して読み取り/書き込みを行なう読み取り
/書き込み回路と、上記I/O制御部と読み取り/書き
込み回路との間でデータの一時記憶を行なうバッファと
、上記上位装置から上記周辺装置に対して機能停止が指
示された場合に処理状態を記憶する記憶部と、上記■/
O制御部と読み取り/書き込み回路を制御するとともに
、上記記憶部に対して処理状態の書き込みと読み取りを
行ないつつ、周辺装置の機能停止処理を行なうマイクロ
プログラム制御部とを備えた構成としである。
[Means for Solving Problems] In order to achieve the above object, the peripheral control device of the present invention has an I/O control section that performs input/output I/O with a host device, and an I/O control section that performs read/write operations for external peripheral devices. a buffer that temporarily stores data between the I/O control unit and the read/write circuit, and a buffer that performs processing when the host device instructs the peripheral device to stop functioning. A storage unit that stores the status and the above ■/
This configuration includes a microprogram control section that controls the O control section and the read/write circuit, writes and reads the processing status into and from the storage section, and performs processing to stop the functions of peripheral devices.

[実施例] 以下、図面にもとづいて本発明の詳細な説明する。[Example] Hereinafter, the present invention will be explained in detail based on the drawings.

第1図は、本発明の一実施例に係る周辺制御装置を磁気
テープ制御装置に適用した場合のブロック図である。
FIG. 1 is a block diagram when a peripheral control device according to an embodiment of the present invention is applied to a magnetic tape control device.

同図において、lは周辺制御装置全体、11は機能停止
指示フラグ、12は機能停止拒否フラグ、13はデバイ
ス対応フラグである。また、14はバッファ、15はマ
イクロプログラム制御部、16は読み取り/書き込み回
路、17はI/O制御部である。そして、21〜24は
周辺装置である。
In the figure, l is the entire peripheral control device, 11 is a function stop instruction flag, 12 is a function stop refusal flag, and 13 is a device correspondence flag. Further, 14 is a buffer, 15 is a microprogram control section, 16 is a read/write circuit, and 17 is an I/O control section. Further, 21 to 24 are peripheral devices.

また、第2図は、第1図の周辺制御装置における処理の
概略を示すフローチャートであり、以下、第2図のフロ
ーに従って第1図の周辺制御装置の動作を説明する。
Further, FIG. 2 is a flowchart showing an outline of processing in the peripheral control device of FIG. 1, and hereinafter, the operation of the peripheral control device of FIG. 1 will be explained according to the flow of FIG. 2.

まず、周辺制御装置1は、上位装置からの入出力要求待
ちの状態にあり(301)上位装置からの入出力要求を
検出すると送られた命令が機能停止指示であるかを判断
しく302)、機能停止の指示でなければデータの書き
込み/読み出しなどその命令で指示された動作を実行(
303)L/て新たな入出力要求待ちとなる。なお、デ
ータの書き込み命令の場合、バッファ14へのデータの
格納が終了した時点で上位装置に対しては命令の終了を
報告し、その後、非同期にデータを周辺装置へ書き込む
First, the peripheral control device 1 is in a state of waiting for an input/output request from the host device (301), and upon detecting an input/output request from the host device, determines whether the sent command is a function stop command (302). If the instruction is not to stop the function, execute the operation specified by the instruction such as writing/reading data (
303) L/ is waiting for a new input/output request. Note that in the case of a data write command, when the storage of data in the buffer 14 is completed, the end of the command is reported to the host device, and then the data is written to the peripheral device asynchronously.

一方、上位装置から送られた命令が機能停止の指示であ
ると、機能停止指示フラグ11を° l″にセットし、
機能停止拒否フラグ12を′0゛デバイス対応フラグ1
3をすべて11?にする(304)。また、以後、上位
装置からI/O制御部17へ送られる入出力要求は以下
に示す一連の処理が終了するまですべて無視する。そし
て、接続されているすべての周辺装置21−14に対し
て順次以下のチエツクを行なう。
On the other hand, if the command sent from the host device is an instruction to stop the function, the function stop instruction flag 11 is set to ° l'',
Set function stop refusal flag 12 to '0' device compatible flag 1
All 3's are 11? (304). Further, from now on, all input/output requests sent from the host device to the I/O control unit 17 are ignored until the series of processing described below is completed. Then, the following checks are sequentially performed on all connected peripheral devices 21-14.

■バッファ14内に未書き込みデータがあるかを調べ(
305)、未書き込みデータがある場合、周辺装置への
書き込みを実行する(306)。
■Check if there is unwritten data in the buffer 14 (
305), if there is unwritten data, writing to the peripheral device is executed (306).

■書き込みに失敗した場合、機能停止拒否フラグ12に
′ l′をセットする(307〜30B)。
(2) If writing fails, 'l' is set in the function stop refusal flag 12 (307-30B).

未書き込みデータがバッファ内にない場合、未報告にス
テータスの有無を調べ(3/O)、未報告のステータス
がある場合には機能停止拒否フラグ12を+1′にセッ
トする(308)。
If there is no unwritten data in the buffer, the presence or absence of unreported status is checked (3/O), and if there is unreported status, the function stop refusal flag 12 is set to +1' (308).

■朱書き込みデータ、未報告のステータスのいずれも存
在しなければデバイス対応フラグ13の当該周辺装置に
対するビットをリセットする(311)。
(3) If neither red write data nor unreported status exists, the bit for the peripheral device in the device correspondence flag 13 is reset (311).

■上記チエツクを順次行ないながら機能停止拒否フラグ
が゛ l′になっていないか調べ(312)19になっ
ていれば上位装置に機能停止指示の拒否を報告する(3
09)。
■Sequentially performing the above checks, check whether the function stop refusal flag is set to ``l'' (312). If it is 19, report the rejection of the function stop instruction to the host device (3
09).

■機能停止拒否フラグ12が′0”であれば、デバイス
対応フラグ13がすべて90′になっているかを調べる
(313)。
(3) If the function stop refusal flag 12 is '0', it is checked whether all the device support flags 13 are set to 90' (313).

■デバイス対応フラグ13がすべて90′になっていな
ければ、まだすべての周辺装置に間してチエツクが終了
していないので、さらにステップ305からのチエツク
を繰り返す。
(2) If all device correspondence flags 13 are not set to 90', the check for all peripheral devices has not yet been completed, and the check from step 305 is repeated.

■デバイス対応フラグ13がすべて+0′になっていれ
ば周辺制御装置lの内部には未書き込みデータも未報告
のステータスも存在しないので上位装置に対して機能停
止可能であることを報告する(314)。
■If the device support flags 13 are all +0', there is no unwritten data or unreported status inside the peripheral control device l, so it reports to the host device that it is possible to stop the function (314 ).

このように本実施例では、上位装置からの命令により指
定された周辺制御装置の機能の停止を指示された場合、
機能停止の指示を受は付けたことを記憶する機能停止指
示フラグと、その周辺制御装置に接続された周辺装置に
間して未書き込みのデータがバッファ内に残っていない
などその周辺制御装置が機能を停止することによって影
響がないことを示すデバイス対応フラグと、機能停止で
きない場合に上位装置からの機能停止指示を拒否すべき
ことを示す機能停止拒否フラグとを有している。
As described above, in this embodiment, when a command from a higher-level device instructs to stop the function of a specified peripheral control device,
A function stop instruction flag that remembers that a function stop instruction has been received, and a function stop instruction flag that remembers that a function stop instruction has been received, and a function check flag that indicates that the peripheral control device connected to the peripheral control device has no unwritten data remaining in the buffer. It has a device compatible flag that indicates that there is no effect by stopping the function, and a function stop refusal flag that indicates that the function stop instruction from the host device should be rejected if the function cannot be stopped.

そして、上位装置からの命令により機能停止の指示を受
けると、以降、上位装置に対して機能停止の可否を報告
するまで、新たな入出力要求を無視するとともに、すべ
ての周辺装置に関してバッファ内に未書き込みデータが
残っていないか、あるいは、上位装置に対して未報告の
ステータスが残っていないかなどを調べ、未書き込みデ
ータがバッファ内に残っている場合には、周辺装置への
書き込みを実行し、その周辺装置に関する未書き込みデ
ータがなくなったときに当該周辺装置に関するデバイス
対応フラグに機能停止によって影響がないことを記憶さ
せ、また、周辺装置へのデータの書き込みに失敗し、未
書き込みデータがバッファ内に残っている場合や、未報
告のステータスが残っているなど、周辺*J#装置の機
能を停止することができない場合には、機能停止拒否フ
ラグをセットし、すべてのデバイス対応フラグが機能停
止可能となったとき、または機能停止拒否フラグがセッ
トされたとき、上位装置に対して機能停止の可否を報告
する機能を達成している。
When it receives an instruction to stop the function from a higher-level device, it ignores new input/output requests and stores all peripheral devices in the buffer until it reports to the higher-level device whether or not the function can be stopped. Checks whether there is any unwritten data remaining or status that has not been reported to the host device, and if unwritten data remains in the buffer, executes writing to the peripheral device. When there is no longer any unwritten data regarding the peripheral device, the device flag for the peripheral device is set to indicate that there is no effect due to the outage. If it is not possible to stop the function of a peripheral *J# device, such as when it remains in the buffer or there is an unreported status, set the function stop refusal flag and set all device support flags. When it becomes possible to stop the function, or when the function stop refusal flag is set, a function is achieved to report to the host device whether or not the function can be stopped.

[発明の効果] 以上説明したように本発明は、周辺制御H@に機能停止
フラグと機能停止拒否フラグとデバイス対応フラグの3
種類の記憶部を持たせ、上位装置からの一回の命令です
べてのバッファ内の未書き込みデータを周辺装置へ書き
込むことができ、さらに、周辺装置へのデータの書き込
みに失敗して未書き込みのデータがバッファ内に残って
いる場合、あるいは未報告のステータスが残っている場
合には上位装置に対して機能停止を拒否することにより
、不用意な電源の切断、診断の実行などから未書き込み
データや未報告のステータスなどの喪失を防ぐことが可
能な周辺側rs装置を提供できるという効果がある。
[Effects of the Invention] As explained above, the present invention provides peripheral control H@ with three functions: a function stop flag, a function stop refusal flag, and a device compatible flag.
It is possible to write all the unwritten data in the buffer to the peripheral device with a single command from the host device. If data remains in the buffer or unreported status remains, unwritten data can be prevented from being accidentally turned off, diagnosed, etc. by refusing to stop the function to the host device. This has the effect of providing a peripheral RS device that can prevent loss of unreported status and other information.

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

第1図は本発明の一実施例に係る周辺制御装置を磁気テ
ープ制御装置に適用した場合のブロック図、第2図は、
第1図の周辺制御装置における処理の概略を示すフロー
チャートである。 15:マイクロプログラムシ1#部 16:読み取り/書き込み回路 17:I/O制御部 21〜24 : Im辺FiK
FIG. 1 is a block diagram when a peripheral control device according to an embodiment of the present invention is applied to a magnetic tape control device, and FIG.
2 is a flowchart showing an outline of processing in the peripheral control device of FIG. 1. FIG. 15: Microprogram 1 # section 16: Read/write circuit 17: I/O control section 21 to 24: Im side FiK

Claims (1)

【特許請求の範囲】[Claims] 上位装置との入出力I/Oを行なうI/O制御部と、外
部周辺装置に対して読み取り/書き込みを行なう読み取
り/書き込み回路と、上記I/O制御部と読み取り/書
き込み回路との間でデータの一時記憶を行なうバッファ
と、上記上位装置から上記周辺装置に対して機能停止が
指示された場合に処理状態を記憶する記憶部と、上記I
/O制御部と読み取り/書き込み回路を制御するととも
に、上記記憶部に対して処理状態の書き込みと読み取り
を行ないつつ、周辺装置の機能停止処理を行なうマイク
ロプログラム制御部とを具備することを特徴とする周辺
制御装置。
An I/O control unit that performs input/output I/O with a host device, a read/write circuit that reads/writes to an external peripheral device, and a a buffer for temporarily storing data; a storage unit for storing a processing state when the peripheral device is instructed to stop functioning from the host device;
A microprogram control unit that controls the /O control unit and the read/write circuit, writes and reads the processing status to and from the storage unit, and performs processing to stop the functions of the peripheral device. Peripheral control device.
JP63198871A 1988-08-11 1988-08-11 Peripheral control device Expired - Fee Related JPH0769880B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63198871A JPH0769880B2 (en) 1988-08-11 1988-08-11 Peripheral control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63198871A JPH0769880B2 (en) 1988-08-11 1988-08-11 Peripheral control device

Publications (2)

Publication Number Publication Date
JPH0250245A true JPH0250245A (en) 1990-02-20
JPH0769880B2 JPH0769880B2 (en) 1995-07-31

Family

ID=16398310

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63198871A Expired - Fee Related JPH0769880B2 (en) 1988-08-11 1988-08-11 Peripheral control device

Country Status (1)

Country Link
JP (1) JPH0769880B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62291236A (en) * 1986-06-10 1987-12-18 Fuji Xerox Co Ltd Ambient equipment controller for computer system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62291236A (en) * 1986-06-10 1987-12-18 Fuji Xerox Co Ltd Ambient equipment controller for computer system

Also Published As

Publication number Publication date
JPH0769880B2 (en) 1995-07-31

Similar Documents

Publication Publication Date Title
JPH0250245A (en) Peripheral control device
JPS63279318A (en) Magnetic disk device
JPS63305445A (en) Data writing system at power break
JPH0267615A (en) Peripheral controller
JP3335370B2 (en) Numerical control unit
JPH0357047A (en) Electronic disk subsystem
JPH05113854A (en) Disk device with buffer
JPH0362244A (en) Data assurance control system for external semiconductor memory device
JPH11237959A (en) Multiple writing storage device
JPH03131943A (en) Fault managing system in file duplexing processing system
JPH05151138A (en) Data transfer device
JPH0214461A (en) Magnetic disk protection system
JPS63187355A (en) Saving system for data of memory device
JPH04167120A (en) Magnetic disk subsystem
JPS58144270A (en) Storage device system
JPH04321126A (en) Data processor
JPH0318207B2 (en)
JPS6279535A (en) Operation control system for test system in single computer system
JPH0567040A (en) Peripheral equipment control circuit
JPS62254251A (en) Control system for nonvolatile memory device
JPS61143862A (en) Interface control system
JPS61237138A (en) Data processor
JPS5953949A (en) Patrolling system
JPS63163614A (en) System for detecting momentary disconnection of power source
JPH05119926A (en) Information processor

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees