JPH0223556A - Magnetic tape controller - Google Patents

Magnetic tape controller

Info

Publication number
JPH0223556A
JPH0223556A JP63173594A JP17359488A JPH0223556A JP H0223556 A JPH0223556 A JP H0223556A JP 63173594 A JP63173594 A JP 63173594A JP 17359488 A JP17359488 A JP 17359488A JP H0223556 A JPH0223556 A JP H0223556A
Authority
JP
Japan
Prior art keywords
tape
command
skipped
marks
magnetic tape
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
JP63173594A
Other languages
Japanese (ja)
Other versions
JP2677389B2 (en
Inventor
Hajime Sugiura
一 杉浦
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63173594A priority Critical patent/JP2677389B2/en
Publication of JPH0223556A publication Critical patent/JPH0223556A/en
Application granted granted Critical
Publication of JP2677389B2 publication Critical patent/JP2677389B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To reduce overheads of commands by positioning tape marks for plural files skipped by one command. CONSTITUTION:The command for specifying the number of tape marks to be skipped, which is issued by a host CPU 11, is decoded by a command decoder 15 via a channel 12 and an interface control part 14, and a space counter 16 is informed of the completion of decoding via a signal line 20, a MPU 17 and a signal line 21. The number of tape marks to be skipped is stored via buss 22 into the counter 16. The command decoder 15 is informed of the receipt of data by the counter 16, which is then operated to subtract what the MPU 17 instructs for subtraction from the number of tape marks until zero. A tape mark detecting is instructed to a read/write control part 18 according to the decoding notification from the decoder 15 by the MPU 17, which also instructs the counter 16 about the subtraction and then instructs a TM detector 19 to stop its detection when the count value becomes zero.

Description

【発明の詳細な説明】 [概要] 磁気テープのテープマークを検出する検出機構を有する
磁気テープ制@装置に関し、 1つのコマンドによって複数のファイルをよみとばしテ
ープマークへの位置付けを行なうことによりコマンドの
オーバーヘッドを削減するようにした磁気テープ制m装
置を提供することを目的とし、 スキップすべきテープマーク数を指定するコマンドを解
読する解読手段と、コマンドで指定されたスキップすべ
きテープマーク数を計数する計数手段と、磁気テープの
テープマークを検出するテープマーク検出手段と、該検
出手段の出力を受信するごとに前記計数手段を減算させ
、ゼロとなったとき前記テープマーク検出手段の検出を
停止させる制御手段と、で構成した。
[Detailed Description of the Invention] [Summary] This invention relates to a magnetic tape @ device having a detection mechanism for detecting tape marks on a magnetic tape. The purpose of this invention is to provide a magnetic tape system that reduces overhead, and includes a decoding means for decoding a command specifying the number of tape marks to be skipped, and a decoding means for decoding a command specifying the number of tape marks to be skipped specified by the command. a counting means for detecting a tape mark on a magnetic tape; a tape mark detecting means for detecting a tape mark on a magnetic tape; and each time an output of the detecting means is received, the counting means is subtracted, and when it becomes zero, the detection of the tape mark detecting means is stopped. and a control means for controlling the operation.

[産業上の利用分野] 本発明は、磁気テープのテープマークを検出する検出機
構を有する磁気テープ制御装置に関する。
[Industrial Field of Application] The present invention relates to a magnetic tape control device having a detection mechanism for detecting tape marks on a magnetic tape.

今日のコンピュータシステムにおいて、最も普及してい
る外部記憶装置として磁気テープ装置が知られている。
Magnetic tape devices are known as the most popular external storage devices in today's computer systems.

この磁気テープ装置は、長さが500〜240Oフィー
ト、幅が1/2インチの長尺帯状フィルム面に磁性体を
塗布し、磁気ヘッドによって長手方向に磁化することに
よりデータを記録するものでめる。
This magnetic tape device records data by coating a magnetic material on the surface of a long strip of film with a length of 500 to 240 feet and a width of 1/2 inch, and magnetizing it in the longitudinal direction with a magnetic head. Ru.

磁気テープ上のデータ記録の単位は、ブロックと呼ばれ
、複数のブロックが集まって1つのファイルを構成する
The unit of data recording on a magnetic tape is called a block, and a plurality of blocks are collected to form one file.

1巻当り170〜280Mバイトもの記憶容量をもつ磁
気テープ媒体では、1つの媒体(リール)に複数のファ
イルを記録することがしばしば行なわれる。これをマル
チファイルボリュームという。
With magnetic tape media having a storage capacity of 170 to 280 Mbytes per roll, a plurality of files are often recorded on one medium (reel). This is called a multi-file volume.

このマルチファイルボリュームではファイルとファイル
の区分はテープマークという特種な記録パターンにより
識別される(第3図、参照)。
In this multi-file volume, files are identified by a special recording pattern called a tape mark (see FIG. 3).

したがって、磁気テープのファイルを処理する際には効
率よく所望のファイルを取り出すことが必要となる。
Therefore, when processing files on a magnetic tape, it is necessary to efficiently retrieve a desired file.

[従来の抜術] 従来の磁気テープ制御装置としては、例えば第4図に示
すようなものがある。
[Conventional Extraction Technique] As a conventional magnetic tape control device, there is one shown in FIG. 4, for example.

第4図において、1はホストCPU、2はチャネル、3
は磁気テープ制御装置である。磁気テープ制御装置3は
、チャネルインタフェース制御部4と、マイクロプロセ
ッサ5と、リードライ1へ制御部6と、を有している。
In FIG. 4, 1 is the host CPU, 2 is the channel, and 3 is the host CPU.
is a magnetic tape controller. The magnetic tape control device 3 includes a channel interface control section 4, a microprocessor 5, and a read/write 1 control section 6.

ホストCPU1からのコマンドはチャネル2およびチャ
ネルインタフェース制御部3を介してマイクロプロセッ
サ5に与えられ、マイクロプロセッサ5はこのコマンド
によりリードライ1−制御部6を作動させて、データを
磁気テープ7に読み書きする。
A command from the host CPU 1 is given to the microprocessor 5 via the channel 2 and the channel interface control unit 3, and the microprocessor 5 operates the read/write 1-control unit 6 based on this command to read and write data on the magnetic tape 7. .

この場合、システムのジョブが磁気テープ7上のファイ
ルを処理する際にはホストCPUIによるコマンド(F
OR匪RD 5PACE FILE Co聞AND)を
使ってヘッドを所定のファイル位置に位置付けしていた
In this case, when a system job processes a file on the magnetic tape 7, a command (F
The head was positioned at a predetermined file position by using OR RD 5 PACE FILE Co AND).

[発明が解決しようとする課題] しかしながら、このような従来の磁気テープ制御装置に
あっては、磁気テープ上のファイルを処理する際、例え
ば第3図において、第3フアイルの第1ブロツクの先頭
から読み書きしようとする場合、コマンドを3回発行す
る必要がめった。このため、ホストCPUは3回動作す
る必要があり、ステップ数が増大して効率よくファイル
を処理することができないという問題点がめった。
[Problems to be Solved by the Invention] However, in such a conventional magnetic tape control device, when processing a file on a magnetic tape, for example, in FIG. When trying to read from or write to, I rarely had to issue the command three times. For this reason, the host CPU has to operate three times, which increases the number of steps and causes the problem that the file cannot be processed efficiently.

本発明は、このような従来の問題点に罵みてなされたも
のであって、1つのコマンドによって複数のファイルを
よみとばしテープマークへの位置付けを行なうことによ
りコマンドのオーバーヘッドを削減するようにした磁気
テープ制御装置を提供することを目的としている。
The present invention was made in response to these conventional problems, and is a magnetic recording medium that reduces command overhead by reading multiple files and positioning them to tape marks with a single command. The purpose is to provide a tape control device.

[課題を解決するだの手段] 第1図は、本発明の基本構成図でおる。[Means to solve problems] FIG. 1 is a basic configuration diagram of the present invention.

第1図において、15はスキップすべきテープマーク数
を指定するコマンドを解読する解読手段、16はコマン
ドで指定されたスキップすべきテープマーク数を計数す
る計数手段、19は磁気テープ27のテープマークを検
出するテープマーク検出手段、17は該検出手段19の
出力を受信するごとに前記計数手段16を減棹させ、ゼ
ロとなったとき前記テープマーク検出手段19の検出を
停止させる制御手段でおる。
In FIG. 1, 15 is a decoding means for decoding a command specifying the number of tape marks to be skipped, 16 is a counting means for counting the number of tape marks to be skipped specified by the command, and 19 is a tape mark on a magnetic tape 27. A tape mark detecting means 17 for detecting is a control means that reduces the count of the counting means 16 each time it receives the output of the detecting means 19, and stops the detection of the tape mark detecting means 19 when the count reaches zero.

[作用1 本発明においては、スキップすべきテープマーク数を指
定するとコマンドを解読し、一方、コマンドで指定され
たスキップすべきテープマーク数を計数手段に格納する
[Operation 1] In the present invention, when the number of tape marks to be skipped is specified, the command is decoded, and on the other hand, the number of tape marks to be skipped specified by the command is stored in the counting means.

そして、検出手段で磁気テープ上のテープマークを検出
するごとに、計数手段を減算し、カウント値がゼロとな
ったとき、検出手段のデータマーク検出を停止させる。
Each time the detecting means detects a tape mark on the magnetic tape, the counting means is subtracted, and when the count value reaches zero, the detecting means stops detecting the data mark.

したがって、1のコマンドで複数ファイルを読みとばし
て、所定のテープマークへの位置付けを簡単に行なうこ
とができる。
Therefore, it is possible to skip a plurality of files with one command and easily position them at a predetermined tape mark.

このため、従来のように複数回のコマンドを発行する必
要がなく、ホストCPtJも複数回作動する必要がない
Therefore, there is no need to issue commands multiple times as in the past, and there is no need for the host CPtJ to operate multiple times.

その結果、ステップ数を減少することができ、コマンド
のオーバーヘッドを削減することができ、効率よくファ
イル処理を行なうことができる。
As a result, the number of steps can be reduced, command overhead can be reduced, and file processing can be performed efficiently.

[実施例] 以下、本発明の実施例を図面に基づいて説明する。[Example] Embodiments of the present invention will be described below based on the drawings.

第2図は本発明の一実施例を示すブロック図でおる。FIG. 2 is a block diagram showing one embodiment of the present invention.

まず、構成を説明すると、第2図において、11はホス
トCPU、12はチャネル、13は磁気テープ制御装置
でおる。磁気テープ制御部@13はチャネルインタフェ
ース制御部14、コマンドデコーダ15、スペースカウ
ンタ16、マイクロプロセッサ17、リードライト制御
部18およびテープマーク検出器19を有している。
First, the configuration will be explained. In FIG. 2, 11 is a host CPU, 12 is a channel, and 13 is a magnetic tape control device. The magnetic tape controller @13 has a channel interface controller 14, a command decoder 15, a space counter 16, a microprocessor 17, a read/write controller 18, and a tape mark detector 19.

ホストCPU”11が発行するスキップすべきテープマ
ーク数を指定するコマンド(HULTIFILE FO
RWARD 5PACE FILE Co聞AND・)
は、チャネル12i!−3よびチャネルインタフェース
制御部14を経てコマンドデコーダ(解読手段)15で
解読される。
A command (HULTIFILE FO) that specifies the number of tape marks to be skipped is issued by the host CPU
RWARD 5PACE FILE Co +)
Channel 12i! -3 and the channel interface control section 14, and is decoded by the command decoder (decoding means) 15.

コマンドデコーダ15はコマンドを解読すると、信号線
20を介してマイクロプロセッサ17および信号線21
を介してスペースカウンタ16へ解読の終了を通知する
When the command decoder 15 decodes the command, it sends the command to the microprocessor 17 and the signal line 21 via the signal line 20.
The completion of decoding is notified to the space counter 16 via the space counter 16.

計数手段としてのスペースカウンタ16にはバス22を
介してコマンドのパラメータであるスキップすべきテー
プマーク数が格納される。そしてスペースカウンタ16
はデータの受領をコマンドデコーダ15に信号線23を
介して通知し、一方、マイクロプロセッサ17から信号
線21を介して入力する減算指示によりテープマーク数
がゼロとなるまで減算する。
The number of tape marks to be skipped, which is a command parameter, is stored in a space counter 16 as a counting means via a bus 22. and space counter 16
notifies the command decoder 15 of the reception of the data via the signal line 23, and on the other hand, subtracts the number of tape marks until the number of tape marks becomes zero in response to a subtraction instruction inputted from the microprocessor 17 via the signal line 21.

制御手段としてのマイクロプロセッサ17は、コマンド
デコーダ15からの解読通知によりリードライト制御部
18に対してテープマークの検出を指示し、一方、信号
線24を介してデータ転送の終了および動作の終了のス
テータスをチャネルインタフェース制御部14へ通知す
る。また、マイクロプロセッサ17は、テープマーク検
出器19からのテープマーク検出信号を信号線24を介
して受信するごとに、スペースカウンタ16に信号線2
1を介して減算を指示し、スペースカウンタ16のカウ
ント値がゼロになったら、信号線26を介してテープマ
ーク検出器19にテープマーク検出停止を指示する。
The microprocessor 17 serving as a control means instructs the read/write control unit 18 to detect a tape mark based on the decoding notification from the command decoder 15, and also instructs the read/write control unit 18 to detect tape marks via the signal line 24. The status is notified to the channel interface control unit 14. Furthermore, every time the microprocessor 17 receives a tape mark detection signal from the tape mark detector 19 via the signal line 24, the microprocessor 17 causes the space counter 16 to output the signal line 2
1 to instruct subtraction, and when the count value of the space counter 16 reaches zero, the tape mark detector 19 is instructed to stop tape mark detection via the signal line 26.

検出手段としてのテープマーク検出器1つは、磁気テー
プ27のテープマークを検出し、検出するごとにテープ
マーク検出信号をマイクロプロセッサ17に送出する。
One tape mark detector serving as a detection means detects tape marks on the magnetic tape 27 and sends a tape mark detection signal to the microprocessor 17 each time it is detected.

磁気テープ27は、第3図に示すように、複数のブロッ
クからなる複数のファイルを有し、ファイルの間にはテ
ープマークがつけられている。
As shown in FIG. 3, the magnetic tape 27 has a plurality of files consisting of a plurality of blocks, and tape marks are placed between the files.

次に、動作を説明する。Next, the operation will be explained.

ホストCPU11からのスキップすべきテープマーク数
を指定するコマンドは、チャネル1273よびインタフ
ェース制御部14を経てコマンドデコーダ15で解読さ
れる。
A command specifying the number of tape marks to be skipped from the host CPU 11 is decoded by the command decoder 15 via the channel 1273 and the interface control unit 14.

続いて、コマンドで指定されたスキップすべきテープマ
ーク数はバス22を介してスペースカウンタ16に格納
される。
Subsequently, the number of tape marks to be skipped specified by the command is stored in the space counter 16 via the bus 22.

マイクロプロセッサ17は、コマンドデコーダ15から
コマンド解読の通知を受けると、リードライト制御部1
8にテープマーク検出を指示する。
When the microprocessor 17 receives the command decoding notification from the command decoder 15, the microprocessor 17 activates the read/write control unit 1.
8 to perform tape mark detection.

テープマーク検出器19はリードライト制御部18の検
出指示により、磁気テープ27上のテープマークを検出
するごとにテープマーク検出信号をマイクロプロセッサ
17に通知する。
The tape mark detector 19 notifies the microprocessor 17 of a tape mark detection signal every time it detects a tape mark on the magnetic tape 27 according to a detection instruction from the read/write control unit 18 .

マイクロプロセッサ17は、テープマーク検出器19か
らテープマーク検出信号を受信するごとにスペースカウ
ンタ16を減算させる。スペースカウンタ16のカウン
ト(直がゼロになったら、マイクロプロセッサ1つはテ
ープマーク検出器1つにテープマーク検出の停止を指示
し、動作の終了をチャネルインタフェース制御部14に
通知する。
The microprocessor 17 decrements the space counter 16 each time it receives a tape mark detection signal from the tape mark detector 19. When the count of the space counter 16 reaches zero, one microprocessor instructs one tape mark detector to stop detecting tape marks, and notifies the channel interface controller 14 of the end of the operation.

このように、本実施例においては、1つのコマンドによ
り複数のファイルを読みとばしテープマークへの位置付
けを簡単に行なうことができる。
In this manner, in this embodiment, a plurality of files can be easily read and positioned on tape marks using one command.

したがって、従来のように、複数回のコマンドを発行す
る必要がなく、ホストCPLJ11も複数回動作する必
要がない。その結果、ステップ数を減少することができ
、コマンドのオーバーヘッドを削減することができ、効
率よくファイル処理を行なうことができる。
Therefore, there is no need to issue commands multiple times, and there is no need for the host CPLJ 11 to operate multiple times, as in the prior art. As a result, the number of steps can be reduced, command overhead can be reduced, and file processing can be performed efficiently.

[発明の効果] 以上説明してきたように、本発明によれば、1つのコマ
ンドにより複数のファイルを読みとばし、所定のテープ
マークへの位置付けを簡単に行なうことができる。
[Effects of the Invention] As described above, according to the present invention, it is possible to skip reading a plurality of files and easily position them to a predetermined tape mark with one command.

その結果、コマンドのオーバーヘッドを削減することが
でき、効率よくファイル処理を行なうことができる。
As a result, command overhead can be reduced and file processing can be performed efficiently.

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

第1図は本発明の基本構成図、 第2図は本発明の一実施例を示すブロック図、第3図は
磁気テープの構成図、 第4図は従来例を示すブロック図である。 図中、 11・・・ホストcpu。 ゴ2・・・チャネル、 13・・・磁気テープ制御装置、 14・・・チャネルインタフェース制御部、15・・・
コマンドデコーダ(解読手段)、16・・・スペースカ
ウンタ(計数手段)、17・・・マイクロプロセッサ(
制御手段)、18・・・リードライト制御部、 19・・・テープマーク検出器 (テープマーク検出手段) 20.21.23〜26・・・信号線、22・・・バス
、 27・・・磁気テープ。 基ト涛へ口 第1図 、ト亮ぢ月引−叉万也うラー1L示fブロックロ第2図 J&気テープfI禰り入面 第8 図
FIG. 1 is a basic configuration diagram of the present invention, FIG. 2 is a block diagram showing an embodiment of the invention, FIG. 3 is a configuration diagram of a magnetic tape, and FIG. 4 is a block diagram showing a conventional example. In the figure, 11... host CPU. 2... Channel, 13... Magnetic tape control device, 14... Channel interface control unit, 15...
Command decoder (decoding means), 16... Space counter (counting means), 17... Microprocessor (
control means), 18... read/write control unit, 19... tape mark detector (tape mark detection means) 20.21.23-26... signal line, 22... bus, 27... Magnetic tape. Fig. 1 of the basic flow, Fig. 8

Claims (1)

【特許請求の範囲】[Claims] スキップすべきテープマーク数を指定するコマンドを解
読する解読手段(15)と、コマンドで指定されたスキ
ップすべきテープマーク数を計数する計数手段(16)
と、磁気テープ(27)のテープマークを検出するテー
プマーク検出手段(19)と、該検出手段(19)の出
力を受信するごとに前記計数手段(16)を減算させ、
ゼロとなつたとき前記テープマーク検出手段(19)の
検出を停止させる制御手段(17)と、を備えたことを
特徴とする磁気テープ制御装置。
Decoding means (15) for decoding a command specifying the number of tape marks to be skipped; and counting means (16) for counting the number of tape marks to be skipped specified by the command.
and tape mark detection means (19) for detecting tape marks on the magnetic tape (27), and each time an output of the detection means (19) is received, the counting means (16) is subtracted;
A magnetic tape control device comprising: control means (17) for stopping detection by the tape mark detection means (19) when the mark becomes zero.
JP63173594A 1988-07-11 1988-07-11 Magnetic tape controller Expired - Fee Related JP2677389B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63173594A JP2677389B2 (en) 1988-07-11 1988-07-11 Magnetic tape controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63173594A JP2677389B2 (en) 1988-07-11 1988-07-11 Magnetic tape controller

Publications (2)

Publication Number Publication Date
JPH0223556A true JPH0223556A (en) 1990-01-25
JP2677389B2 JP2677389B2 (en) 1997-11-17

Family

ID=15963492

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63173594A Expired - Fee Related JP2677389B2 (en) 1988-07-11 1988-07-11 Magnetic tape controller

Country Status (1)

Country Link
JP (1) JP2677389B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041178A (en) * 2006-08-07 2008-02-21 Fujitsu Ltd Device, method and program for controlling magnetic tape device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008041178A (en) * 2006-08-07 2008-02-21 Fujitsu Ltd Device, method and program for controlling magnetic tape device

Also Published As

Publication number Publication date
JP2677389B2 (en) 1997-11-17

Similar Documents

Publication Publication Date Title
JP3333269B2 (en) Tape format detection system
US4541019A (en) Recording system for recording data on tape in a disk-recording format
US20060047894A1 (en) Data recording apparatus, and data recording control method and program
JPS58219660A (en) Magnetic tape driver
US3711844A (en) Updatable magnetic records
US5475542A (en) Method and apparatus for improving inter-block gap length tolerance and locate accuracy for write appends
JPH0223556A (en) Magnetic tape controller
US7167332B2 (en) Method and apparatus for recording data onto a recording medium including warning of the approach to an end of medium position
US3414880A (en) Source error correction for relatively moving signals
US5319503A (en) Method and apparatus for writing successive streams of data on a magnetic medium by writing a cancel mark indicating the cancellation of a previously-written file mark
US6145034A (en) Method and apparatus for switching data rates during back-up based on computer data and speed
JP3089860B2 (en) Recirculating magnetic tape unit
US6057973A (en) Method of seeking to tape segment without the use of inter-segment gap
JPS6117016B2 (en)
JP2715669B2 (en) Cartridge type magnetic tape processing device
JPH0451900B2 (en)
JP2671485B2 (en) Disk processing device
JP3991512B2 (en) Recording apparatus and method, and recording / reproducing apparatus
JPS63269361A (en) Magnetic tape device
JP2963229B2 (en) Tape mark writing device for magnetic tape storage device
JPH07147059A (en) Magnetic disk device
JPS6292105A (en) Magnetic tape recording system
Cunningham The IBM hypertape system
JPS63164078A (en) Magnetic tape device
JPH06267014A (en) Magnetic tape controller

Legal Events

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