JP2625796B2 - Magnetic tape unit - Google Patents

Magnetic tape unit

Info

Publication number
JP2625796B2
JP2625796B2 JP62333139A JP33313987A JP2625796B2 JP 2625796 B2 JP2625796 B2 JP 2625796B2 JP 62333139 A JP62333139 A JP 62333139A JP 33313987 A JP33313987 A JP 33313987A JP 2625796 B2 JP2625796 B2 JP 2625796B2
Authority
JP
Japan
Prior art keywords
block
magnetic tape
file
data
processing step
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.)
Expired - Fee Related
Application number
JP62333139A
Other languages
Japanese (ja)
Other versions
JPH01171185A (en
Inventor
正樹 藤木
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 JP62333139A priority Critical patent/JP2625796B2/en
Publication of JPH01171185A publication Critical patent/JPH01171185A/en
Application granted granted Critical
Publication of JP2625796B2 publication Critical patent/JP2625796B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Digital Magnetic Recording (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

〔概要〕 本発明は、サーペンタイン方式の磁気テープ装置に関
し、 磁気テープ装置におけるブロック位置付けを高速に行
うことを目的とし、 前記磁気テープ上の各データトラックの最終ブロック
の情報を記憶し、ブロック位置付け命令受信時に、当該
記憶された情報を基に位置付けすべきデータトラックを
認識し、該データトラックに磁気ヘッドを位置付けた後
に磁気テープを走行させて所定のブロックに位置付ける
ことで当該命令を実行するように構成した。 〔発明の利用分野〕 本発明は、情報処理装置に外部記憶装置として使用さ
れる磁気テープ装置、特にサーペンタイン方式の磁気テ
ープ装置に関する。 情報処理装置の外部記憶装置として磁気テープ装置が
使用される。 このような磁気テープ装置においては、最近サーペン
タイン方式と称される磁気テープの記録方法が採用され
てきている。 このサーペンタイン方式とは、磁気テープ上にある複
数のデータトラックを一括して記録/再生するのではな
く、データトラックを1または数物理トラックで1つの
論理トラックを構成し、この論理トラック単位で、ヘッ
ドを磁気テープの幅方向にシークさせて、データの記録
/再生を行うものである。 即ち、まず磁気テープに対して1論理トラック単位
で、磁気テープの始端より終端まてデータを記録/再生
し、その後、トラックを切り換えて、今度は磁気テープ
の終端より始端まてデータを記録/再生し、これを繰り
返すことによって磁気テープ上にデータを記録/再生す
るものである。 また、この磁気テープ装置は、磁気テープ上に情報を
ブロック単位で記憶している。 即ち、情報をブロック単位に区切り、その先頭に識別
管理情報(ID)を記録し、情報と識別管理情報(ID)と
からブロックを構成し、このブロックを所定の間隔で間
に無記録部分(IBG)を設けて記録される。 このような磁気テープ装置においては、上位装置から
のブロック位置付け命令を受信した時に短時間でブロッ
クの位置付け命令の実行が完了するようにすることが望
まれている。 〔従来の技術〕 上記のようなサーペンタイン記録方法を採用した磁気
テープ装置においては、ブロック位置付け命令を受信し
た場合、従来は以下の方法によりブロックの位置付けを
行っていた。 即ち、磁気テープ媒体の所望のトラックの所定の位置
に磁気テープが位置付けられている時に上位装置からブ
ロック位置付け命令を受信すると、位置付けすべきブロ
ックが自己の位置の手前の位置か、また後方の位置かに
より、磁気テープの走行方向を決定し、決定された方向
に磁気テープを走行させ、1ブロックごとに識別管理情
報(ID)を読み取り、所望のブロックのIDと一致するか
否かをチェックする。この探索処理を所望のブロックが
見つかるまで続ける 〔発明が解決しようとする問題点〕 しかしながら、このようなサーペンタイン方式の磁気
テープ装置においては、ブロック位置付け命令によって
位置付けすべきブロックが同一データトラックに無い場
合には、上記のように所望のブロックが見つかるまで探
索が続けられるため、全テープ長の数倍の磁気テープの
走行が行われた後でないとブロック位置付け命令の処理
が完了せず、ブロック位置付け命令の処理に非常に時間
がかかるという問題があった。特に、上記のように1ブ
ロックごとにIDを読み取ってチェックするという方法で
は、バックスペース関係の命令のように位置付けすべき
ブロックが自己の位置の後方にある場合、1ブロック分
磁気テープを後方に走行させて停止し、次に前方に走行
させて直前のブロックのIDを読み取ってチェックすると
いう探索動作を必要とし、処理時間は極めて膨大となる
問題があった。 本発明は、上記の問題を解決し単時間でブロック位置
付け命令を実行可能とする磁気テープ装置を提供するこ
とを目的とする。 〔問題点を解決するための手段〕 本発明は上記目的を達成するために、本発明の磁気テ
ープ装置は、磁気テープ上の各データトラックの最終ブ
ロックの情報をそれぞれ記憶する記憶部と、ブロック位
置付け命令受信時に、当該記憶された情報を基に位置付
けすべきブロックが存在するであろうデータトラックを
認識する認識部と、磁気ヘッドを、前記ブロック位置付
け命令の実行を開始する時に位置付けられていた箇所か
ら前記磁気テープの幅方向に移動して前記認識されたデ
ータトラックへ位置付けるヘッド駆動部と、前記認識さ
れたデータトラックへ前記磁気ヘッドが位置付けられた
後前記磁気テープを走行させて前記位置付けすべきブロ
ックに位置付けるテープ駆動部と、を備えたことを特徴
とするものである。 〔作用〕 本発明においては、各トラックの最終ブロックの情報
を記憶しておくことにより、ブロック位置付け命令受信
時に、位置付けすべきブロックがこの記憶された情報を
参照することによりどのデータトラックに位置するかを
判断することが出来る。 従って、最初はこのデータトラックに磁気ヘッドを磁
気テープの幅方向に移動して位置付け、その後当該デー
タトラック内で位置付けすべきブロックを探すのみで、
当該命令の実行を完了することが出来る。 従って、最悪でも磁気テープの走行長は、磁気テープ
の全長の範囲内であり、従来に比較して単時間にブロッ
クの位置付けを完了することが出来る。 〔実施例〕 第1図は本発明の磁気テープ上の1データトラックの
データフオーマットを説明する図である。 図において、1はID部、2はデータ部、3はIBG、4
はデータブロック、5はフアイルマークブロックをそれ
ぞれ示す。 ブロック4は、図に示すように固定長のID部1と、デ
ータ部2よりなり、各ブロック間は固定長のIBG3により
分割されている。 ID部1には、ブロック識別,制御情報であるデータブ
ロックであることを示すフラグビットと、フアイル番号
(例えば2バイト)、フアイル内のブロック番号(例え
ば3バイト)およびデータ部2のバイト数が記録されて
いる。 このようなデータブロック4は、磁気テープの長手方
向に固定長のIBGで分割されて記録されている。 また、フアイルマークブロック5は、実質的にデータ
部のID部のみからなり、フアルマークであることを示す
フラグビットと、テープ内のフアイルナンバを示すフア
イル番号が記録され、ブロック番号記録部分は、オール
“0"が記録されている。 次に、第2図により本発明に係る磁気テープ装置であ
るサーペンタイン方法を使用した磁気テープ装置のデー
タ記録方法を説明する。 図において6は磁気テープ、7はテータトラックをそ
れぞれ示す。 磁気テープ6上には論理的トラックとして例えば0〜
15のトラックが存在するとする。 論理トラックの概念については上述したように1つの
論理トラックが一度に記録される単位であり、物理的に
は1または数トラックより構成される。 説明の便宜上、以下の説明は1論理トラックが1物理
トラックとして説明する。 図に示すように磁気テープ6上には、テープの幅方向
(紙面の上下)に0〜15の計16トラックが存在するもの
とする。 そしてテープ6の幅方向端部のトラックより順番に0
〜15のトラック番号が付与されている。 このような磁気テープ6には、最初トラック0の始端
より磁気テープ上に第1図で説明したようなブロック形
式で、データが磁気テープ6の終端まで記録される。 そして、磁気テープ6の終端までデータの記録が完了
すると、その時点で一旦磁気テープを停止させ、図示さ
れない磁気ヘッドを磁気テープ6の幅方向に移動位置決
めし、今度は、トラック1上に磁気ヘッドを位置付け
し、今度は、磁気テープ6の終端より始端に向って磁気
テープ6走行させながらトラック1上にデータを記録す
る。 そして磁気テープ6の始端まで到達すると、その時点
で一旦磁気テープを停止させ、図示されない磁気ヘッド
を磁気テープ6の幅方向に移動位置決めし、今度は、ト
ラック2上に磁気ヘッドを位置付けし、今度はトラック
0と同様に、磁気テープ6の始端より終端まで磁気テー
プ6を走行させてデータを記録する。 このように、順次磁気ヘッドを各トラックに移動位置
付けしながら、磁気テープ6を始端から終端,終端から
始端への交互に走行させて情報を記録する。 このような磁気テープ装置において、本発明において
は、磁気テープ6上の各トラックの最終ブロックの情報
を磁気テープ装置内に設けられた記憶素子に記憶するよ
うにしたものである。 即ち、トラック0においては、磁気テープの終端側で
トラック1への切り換え前に記録した最終ブロックの情
報を記録し、次にトラック1においては、磁気テープ6
の始端側でトラック2への切り換え前に記録した最終ブ
ロックの情報を記録し、順次各データトラックにおける
最後のブロックの情報を記憶するようにしたものであ
る。 即ち、ブロックの情報とは、フアイルの番号とフアイ
ル内のブロック番号を記録しておくものである。 このようにすると、どのデータトラック上にはどのフ
アイルのどのブロックが記録されているかをこの記憶さ
れた情報を判別することが出来るようになる。 尚、ブロックID部におけるフアイル番号は、トラック
0の最初から最終トラックの最後までの通番であり、ブ
ロック番号はフアイルマークを0としてデータブロック
の最初より同一フアイル内で1から付与されており、フ
アイル間に跨がったブロック番号は付与されていない。 このブロックの情報の記録形式については、後述す
る。 次にこのブロックの情報を使用した本発明のブロック
の位置付け方法について第3図を使用して説明する。 まず、第2図にて説明したように磁気テープ装置内に
各データトラックに記録した最終ブロックの情報が記憶
されているものとする。 この状態で、現在データトラック4上の所定の位置に
磁気ヘッドが位置しているものと過程する。 この状態で、上位装置よりブロックの位置付け命令が
発せられると、本発明では以下のようにブロック位置付
け命令が実行される。 ブロック位置付け命令は、例えば。一つ前のフアイル
という形や、複数ブロック前に位置付けなさいという形
式で命令が来るため、ブロック位置付け命令を受けたこ
とにより最初に、現在位置付けられているブロック位置
とこの命令で得られた情報とより、実際に位置付けるべ
きフアイルやブロック番号を算定する。 次にこの実際に位置付けすべきフアイルやブロック番
号が、どのデータトラック上に存在するかを認識するた
めに、先に記憶されている各データトラックの最終ブロ
ック情報を参照する。 そして、この最終ブロックの情報と、位置付けすべき
ブロックとの関係が、以下の条件に合致するデータトラ
ックを探出す。 即ち、隣接するデータトラック間におけるブロック及
びフアイル番号の関係が、 (前のトラックの最終ブロックの情報)<(目標ブロ
ックの情報)<(後のトラックの最終ブロックの情報)
の関係を満たすデータトラックを見つける。 このようにして見つけた結果が、トラック1に位置付
けすべきブロックがあった場合、の矢印で示すよう
に、磁気ヘッドをトラック選択により移動させる、そし
てその位置がどのブロックの位置であるかをのように
磁気テープを順方向に読み取って認識し、その結果前方
にある場合にはそのままのように磁気テープを走行さ
せて目標のブロックに位置決めして止める。 即ち、本願発明の要点は、磁気テープのトラック選択
を最初に行うことことを可能とすることによって、磁気
テープのブロックの位置付けを短時間で可能とするもの
である。 次に第4図により、本発明の方法を実施するための磁
気テープ装置の一実施例構成を説明する。 図において、10はマイクロプロセッサであり内部にプ
ログラムROMを有し、上位装置からの命令によって、磁
気テープの駆動、磁気テープに対するデータの記録/再
生、および磁気ヘッドのトラック選択を制御するもので
ある。 11は、マイクロプロセッサよりの制御信号を受信し、
リール232、24を駆動するためのモータ(図示せず)を
駆動して磁気テープの走行を制御するためのテープ走行
制御回路である。 12は、磁気テープの始端,終端マーカを検出する検出
器27からの信号および、リール23,24からの回転検出信
号が入力され、磁気テープの始端,および終端を検出す
るとともに、磁気テープの始端および終端近傍に磁気ヘ
ッドが位置したことを検出して、マイクロプロセッサ10
に通知するためのテープ位置検出回路である。 尚、磁気テープの始端または終端に近づいたことは、
リール23,24のテープ巻率より判定される。 13は、上位装置から転送されるデータを後述するフオ
ーマット制御回路16の制御によって所定のデータフオー
マットとするとともに、所定の変調を行って磁気テープ
6上に磁気ヘッド26を介して記録するための記録回路で
ある。 14は、磁気テープ6から磁気ヘッド26を介して再生さ
れた信号を復調するとともに、後述するフオーマット制
御回路16の制御によってデータを分離して上位装置に転
送するための再生回路である。 15は、磁気ヘッド26を磁気テープ6の幅方向に移動さ
せ、トラック選択を行うため、機構25を制御して、磁気
ヘッドを所望のデータトラックに移動位置決めするため
のヘッド駆動回路であり、マイクロプロセッサ11の制御
により動作するものである。 16は、フオーマット制御回路であり、磁気テープの記
録するためのブロックの構成するとともに、所望の訂正
符号を追加したり、ブロックID部にフアイル番号やブロ
ック番号を付加したりするためのものである。 尚、マイクロプロセッサには、本発明で使用するため
の、データを記録するため、以下のレジスタや、テーブ
ルメモリが設けられている。 17はトラック番号レジスタであり、現在磁気ヘッドが
位置するデータトラックの番号を記憶するためのレジス
タである。 18は、現在ブロック番号レジスタであり、現在ヘッド
が位置付けられているブロックの番号を記憶するための
ものである。 19は、現在フアイル番号レジスタであり、現在磁気ヘ
ッドが位置付けられているフアイルの番号が記憶するた
めのものである。 20は、ブロック長レジスタであり、現在磁気ヘッドが
位置付けられているブロックの長さ情報を記憶するため
のものである。 21は、テーブルメモリであり、各データトラックに記
録されている最終ブロックのフイアル番号およびブロッ
ク番号を記憶するためのものである。 22は、RAMであり、演算や、判定のための処理を行う
ためワーク領域である。 次に第5図において、第4図におけるテーブルメモリ
21の構成を説明する。 図に示すようにテーブルメモリは、各データトラック
の数分の領域を有し、各領域は、フアイル番号およびブ
ロック番号を記憶する領域を備えている。 次に第4図における磁気テープ装置の動作を処理フロ
ーチャートを使用して説明する。 第6図は、本発明に係る命令解読部処理フローチャー
トを説明するための図である。 マイクロプロセッサ11は、電源投入後、磁気テープ装
置の初期化が終了した後、上位装置からの命令の受信可
能状態とり、第6図の処理ステップが開始される。 処理ステップ100 処理ステップ100は、上位装置からの命令が受信され
るかをマイクロプロセッサ10内に設けられた上位装置と
の間のインターフエースレジスタを常に監視している。 この状態で、上位装置から命令が受信されたことによ
り次のステップに移動する。 処理ステップ101 本ステップにおいては、先に受信した命令がどのよう
な命令であるかを、マイクロプロセッサ10内にて解読さ
れる。 処理ステップ102 このステップにおいては、解読した命令内容が磁気テ
ープの走行方向が何れに該当するかを分離すること、お
よびその他の例えば診断命令とを分離する。 そしてその他の命令の場合には、処理ステップ103に
進んでその他の命令を実行して最初の状態に戻る。 若し命令が、磁気テープの順方向走行命令に関するも
のである場合には、処理ステップ104に進む。 また、命令が磁気テープの逆方向走行命令に関するも
のである場合には、第10図で後述するステップに進む。 この逆方向走行命令には、バックスペース命令があ
り、バックスペースフアイル命令と、バックスペースブ
ロック命令がある。 処理ステップ104 先の処理ステップ102において磁気テープの順方向走
行関係命令である場合、この命令には、データのリード
/ライト命令、スペースフアイル命令、およびブロック
スペース命令があり、このステップにおいては、この3
つの命令を分離するものである。 即ち、データのリード/ライト命令である場合には、
第8図に示す処理ステップに進む。 また、スペースフアイル命令である場合には、には、
第9図に示す処理ステップに進む。 また、ブロックスペース命令である場合には、第7図
に示す処理ステップに進む。 以上が、命令解読関係の処理である。 次に、第7図により本発明に係るブロックスペース命令
処理フローチャートを説明する。 処理ステップ200 最初、マイクロプロセッサ10は、レジスタ18より現在
磁気ヘッドが位置しているブロック番号をRAM22上に書
き込む。 処理ステップ201 そして、ブロックスペース命令で指示されたスキップ
すべきブロック数と、前のステップで読み込まれた現在
ブロック番号より、目的とするブロック番号を算出す
る。 そして、この算出したブロック番号をマイクロプロセ
ッサ10のRAM22に記憶して次にステップに進む。 処理ステップ202 処理ステップ202においては、マイクロプロセッサ10
よりテープ走行制御回路11に対して制御信号を発して、
磁気テープを順方向に走行開始させる。 処理ステップ203 磁気テープの走行が開始されると、マイクロプログラ
ム10は、テープ位置検出回路12より磁気テープの始端
(BOT)終端(EOT)がマーカ27より検出されていないか
を判断し、若し検出されていれば、テーブルメモリ記録
ルーチン300を次に実行する。 若し、検出されていなければ次のステップに進む。 処理ステップ204 本ステップでは、まずブロックが検出されるかを検出
する。 そしてブロックが検出されていなければ、処理ステッ
プ202に戻る。 若しブロックが検出されていれば、次のステップに進
む。 ブロックの検出は、再生回路14とフオーマット制御回
路16とにより、予め決めたブロックバターンが検出され
たことによりマイクロプロセッサ10が検出出来る。 処理ステップ205 ブロックが前のステップにて検出されると、次にフオ
ーマット制御回路16によりブロックのID部分を分離認識
して、ブロック番号をRAM22上に読み込む。 処理ステップ206 先のステップにおいて読み込まれたブロック番号は、
一旦RAM22に記憶されるとともに、現在ブロック番号レ
ジスタ18の内容をこのブロック番号によって更新する。 処理ステップ207 そして、RAM22に記憶された目標のブロック番号と、
現在のブロック番号を比較し、目標と一致すれば、次の
ステップに進み、もし不一致であれば、処理ステップ20
2に戻る。 処理ステップ208 処理ステップ207により、目標ブロックと現在のブロ
ックの番号が一致した場合、マイクロプロセッサ10は、
テープ走行制御回路11に信号を発して、磁気テープの走
行を停止させる。 処理ステップ209 そしてブロックスペース命令に対する実行が完了した
ことを上位装置に報告して本処理が終了する。
[Summary] The present invention relates to a magnetic tape device of the serpentine system, which aims to perform high-speed block positioning in a magnetic tape device, and stores information of the last block of each data track on the magnetic tape, and executes a block positioning command. Upon reception, the data track to be positioned is recognized based on the stored information, and after positioning the magnetic head on the data track, the magnetic tape is run and the command is executed by positioning the magnetic tape in a predetermined block. Configured. The present invention relates to a magnetic tape device used as an external storage device in an information processing device, and more particularly to a serpentine type magnetic tape device. A magnetic tape device is used as an external storage device of the information processing device. In such a magnetic tape device, a magnetic tape recording method called a serpentine method has recently been adopted. The serpentine system does not collectively record / reproduce a plurality of data tracks on a magnetic tape, but forms one logical track with one or several physical tracks. The head is sought in the width direction of the magnetic tape to record / reproduce data. That is, first, data is recorded / reproduced from the beginning to the end of the magnetic tape in units of one logical track on the magnetic tape, and then the tracks are switched to record / reproduce data from the end of the magnetic tape to the beginning. By reproducing and repeating this, data is recorded / reproduced on the magnetic tape. Further, this magnetic tape device stores information on a magnetic tape in block units. That is, information is divided into blocks, identification management information (ID) is recorded at the beginning of the information, and a block is formed from the information and the identification management information (ID). IBG). In such a magnetic tape device, it is desired that the execution of the block positioning command is completed in a short time when the block positioning command is received from the host device. [Prior Art] In a magnetic tape device adopting the above-mentioned serpentine recording method, when a block positioning command is received, conventionally, a block is positioned by the following method. That is, when a block positioning command is received from a higher-level device while the magnetic tape is positioned at a predetermined position on a desired track of the magnetic tape medium, the block to be positioned is located at a position before the own position or at a position after the block. Thus, the running direction of the magnetic tape is determined, the magnetic tape is run in the determined direction, the identification management information (ID) is read for each block, and it is checked whether the ID matches the ID of the desired block. . This search process is continued until a desired block is found. [Problems to be Solved by the Invention] However, in such a serpentine magnetic tape device, when a block to be positioned by a block positioning command is not in the same data track, As described above, since the search is continued until the desired block is found as described above, the processing of the block positioning command is not completed until after the magnetic tape has been run several times the total tape length, and the block positioning command is not completed. Processing takes a very long time. In particular, in the method of reading and checking the ID for each block as described above, if the block to be positioned is located behind its own position, such as a command related to backspace, the magnetic tape is moved backward by one block. A search operation of running and stopping, and then running forward and reading and checking the ID of the immediately preceding block is required, and there has been a problem that the processing time is extremely enormous. SUMMARY OF THE INVENTION It is an object of the present invention to provide a magnetic tape device which solves the above-mentioned problem and can execute a block positioning command in a single time. [Means for Solving the Problems] To achieve the above object, the present invention provides a magnetic tape device, comprising: a storage unit for storing information of the last block of each data track on a magnetic tape; Upon receiving the positioning command, the recognition unit for recognizing the data track where the block to be positioned based on the stored information is located, and the magnetic head were positioned when the execution of the block positioning command was started. A head drive unit that moves from a location in the width direction of the magnetic tape to position the recognized data track; and, after the magnetic head is positioned at the recognized data track, moves the magnetic tape to position the magnetic tape. And a tape drive unit positioned at a power block. [Operation] In the present invention, by storing the information of the last block of each track, upon receiving the block positioning command, the block to be positioned is located in any data track by referring to the stored information. Can be determined. Therefore, at first, the magnetic head is moved to the data track in the width direction of the magnetic tape to be positioned, and then only the block to be positioned in the data track is searched for.
Execution of the instruction can be completed. Therefore, at worst, the running length of the magnetic tape is within the range of the entire length of the magnetic tape, and the positioning of the block can be completed in a single time as compared with the related art. FIG. 1 is a diagram for explaining a data format of one data track on a magnetic tape according to the present invention. In the figure, 1 is an ID part, 2 is a data part, 3 is an IBG, 4
Indicates a data block and 5 indicates a file mark block. The block 4 includes a fixed-length ID section 1 and a data section 2 as shown in the figure. Each block is divided by a fixed-length IBG 3. The ID section 1 includes a flag bit indicating that the data block is block identification and control information, a file number (for example, 2 bytes), a block number (for example, 3 bytes) in the file, and the number of bytes of the data section 2. Has been recorded. Such a data block 4 is recorded by being divided by a fixed length IBG in the longitudinal direction of the magnetic tape. Further, the file mark block 5 is substantially composed of only an ID part of a data part, and a flag bit indicating a file mark and a file number indicating a file number in the tape are recorded. “0” is recorded. Next, a data recording method of a magnetic tape device using a serpentine method which is a magnetic tape device according to the present invention will be described with reference to FIG. In the figure, reference numeral 6 denotes a magnetic tape, and 7 denotes a data track. On the magnetic tape 6, for example, 0 to 0
Suppose there are 15 tracks. As described above, the concept of a logical track is a unit in which one logical track is recorded at a time, and is physically composed of one or several tracks. For convenience of explanation, the following description is based on the assumption that one logical track is one physical track. As shown in the figure, it is assumed that a total of 16 tracks 0 to 15 exist on the magnetic tape 6 in the width direction of the tape (up and down in the drawing). Then, from the track at the end in the width direction of the tape 6, 0
~ 15 track numbers are assigned. On such a magnetic tape 6, data is recorded from the beginning of the track 0 to the end of the magnetic tape 6 in a block format as described in FIG. When data recording is completed up to the end of the magnetic tape 6, the magnetic tape is temporarily stopped at that time, and a magnetic head (not shown) is moved and positioned in the width direction of the magnetic tape 6, and this time, the magnetic head is positioned on the track 1. This time, data is recorded on the track 1 while running the magnetic tape 6 from the end of the magnetic tape 6 to the start end. Then, when the magnetic tape 6 reaches the start end, the magnetic tape is temporarily stopped at that time, a magnetic head (not shown) is moved and positioned in the width direction of the magnetic tape 6, and then the magnetic head is positioned on the track 2, and this time. Record data by running the magnetic tape 6 from the beginning to the end of the magnetic tape 6 as in the case of the track 0. As described above, the magnetic tape 6 is moved alternately from the starting end to the end and from the end to the starting end while the magnetic head is sequentially moved and positioned on each track to record information. In such a magnetic tape device, in the present invention, information of the last block of each track on the magnetic tape 6 is stored in a storage element provided in the magnetic tape device. That is, in the track 0, the information of the last block recorded before switching to the track 1 is recorded on the end side of the magnetic tape, and then in the track 1, the information of the magnetic tape 6 is recorded.
The information of the last block recorded before switching to the track 2 is recorded at the start end of the data track, and the information of the last block in each data track is sequentially stored. That is, the block information records the file number and the block number in the file. In this way, it is possible to determine the stored information as to which block of which file is recorded on which data track. The file number in the block ID portion is a serial number from the beginning of track 0 to the end of the last track, and the block number is assigned from 1 in the same file from the beginning of the data block with the file mark being 0. No block number straddling is given. The recording format of this block information will be described later. Next, a block positioning method according to the present invention using the block information will be described with reference to FIG. First, it is assumed that information of the last block recorded on each data track is stored in the magnetic tape device as described with reference to FIG. In this state, it is assumed that the magnetic head is currently located at a predetermined position on the data track 4. In this state, when a block positioning command is issued from the host device, the block positioning command is executed as follows in the present invention. The block positioning instruction is, for example ,. Since the instruction comes in the form of the previous file or in the form of positioning multiple blocks before, the block position command received first receives the current position of the block and the information obtained by this command. Then, the file or block number to be actually positioned is calculated. Next, in order to recognize on which data track the file or block number to be actually located is located, the last block information of each data track previously stored is referred to. Then, a data track whose relation between the information of the last block and the block to be positioned meets the following conditions is searched. That is, the relationship between blocks and file numbers between adjacent data tracks is as follows: (information of last block of previous track) <(information of target block) <(information of last block of subsequent track)
Find a data track that satisfies the relationship. As a result of the finding, when there is a block to be positioned on the track 1, the magnetic head is moved by the track selection as indicated by the arrow, and the position of the block is determined. As described above, the magnetic tape is read and recognized in the forward direction, and as a result, when the magnetic tape is ahead, the magnetic tape is moved as it is, and positioned and stopped at the target block. That is, the gist of the present invention is to enable the positioning of the blocks on the magnetic tape in a short time by enabling the selection of the track on the magnetic tape first. Next, referring to FIG. 4, an embodiment of a magnetic tape apparatus for carrying out the method of the present invention will be described. In FIG. 1, reference numeral 10 denotes a microprocessor, which has a program ROM therein, and controls driving of a magnetic tape, recording / reproducing of data on the magnetic tape, and selection of a track of a magnetic head by an instruction from a host device. . 11 receives the control signal from the microprocessor,
This is a tape running control circuit for controlling the running of the magnetic tape by driving a motor (not shown) for driving the reels 232 and 24. A signal 12 from a detector 27 for detecting the start and end markers of the magnetic tape and a rotation detection signal from the reels 23 and 24 are input to detect the start and end of the magnetic tape and to detect the start and end of the magnetic tape. And that the magnetic head is located near the end,
Is a tape position detection circuit for notifying the user. When approaching the beginning or end of the magnetic tape,
It is determined from the tape winding ratio of the reels 23 and 24. Reference numeral 13 denotes a recording system for converting data transferred from the host device into a predetermined data format under the control of a format control circuit 16 described later, and performing predetermined modulation to record the data on the magnetic tape 6 via the magnetic head 26. Circuit. Reference numeral 14 denotes a reproducing circuit for demodulating a signal reproduced from the magnetic tape 6 via the magnetic head 26, separating data under the control of a format control circuit 16 described later, and transferring the data to a higher-level device. Reference numeral 15 denotes a head drive circuit for moving the magnetic head 26 in the width direction of the magnetic tape 6 and controlling the mechanism 25 to select a track, thereby moving and positioning the magnetic head to a desired data track. It operates under the control of the processor 11. Reference numeral 16 denotes a format control circuit, which constitutes a block for recording on a magnetic tape, and is used for adding a desired correction code or adding a file number or a block number to a block ID portion. . The microprocessor is provided with the following registers and table memory for recording data for use in the present invention. A track number register 17 is a register for storing the number of the data track where the magnetic head is currently located. Reference numeral 18 denotes a current block number register for storing the number of the block where the head is currently positioned. Reference numeral 19 denotes a current file number register for storing the number of the file in which the magnetic head is currently positioned. Reference numeral 20 denotes a block length register for storing information on the length of the block in which the magnetic head is currently positioned. Reference numeral 21 denotes a table memory for storing a file number and a block number of the last block recorded on each data track. Reference numeral 22 denotes a RAM, which is a work area for performing calculations and processing for determination. Next, in FIG. 5, the table memory in FIG.
The configuration of 21 will be described. As shown in the figure, the table memory has areas corresponding to the number of data tracks, and each area has an area for storing a file number and a block number. Next, the operation of the magnetic tape device in FIG. 4 will be described using a processing flowchart. FIG. 6 is a diagram for explaining a command decoding unit processing flowchart according to the present invention. After the power is turned on and the initialization of the magnetic tape device is completed, the microprocessor 11 takes an instruction receivable state from the host device, and the processing steps in FIG. 6 are started. Processing Step 100 In the processing step 100, an interface register with the higher-level device provided in the microprocessor 10 is constantly monitored whether an instruction from the higher-level device is received. In this state, the process moves to the next step when a command is received from the host device. Processing Step 101 In this step, what kind of instruction the previously received instruction is is decoded in the microprocessor 10. Processing Step 102 In this step, the contents of the decoded instruction are separated into the direction in which the magnetic tape runs, and other diagnostic instructions are separated. In the case of another instruction, the process proceeds to the processing step 103, where the other instruction is executed, and returns to the initial state. If the command is for a forward running command of the magnetic tape, the process proceeds to processing step 104. On the other hand, if the command is for a reverse direction command for the magnetic tape, the process proceeds to steps described later with reference to FIG. The reverse direction command includes a backspace command, and includes a backspace file command and a backspace block command. Processing step 104 If the preceding processing step 102 is a command relating to the forward running of the magnetic tape, this command includes a data read / write command, a space file command, and a block space command. 3
It separates two instructions. That is, in the case of a data read / write instruction,
The process proceeds to the processing steps shown in FIG. In the case of a space file instruction,
The process proceeds to the processing steps shown in FIG. If the instruction is a block space instruction, the process proceeds to the processing steps shown in FIG. The above is the processing related to instruction decoding. Next, a block space instruction processing flowchart according to the present invention will be described with reference to FIG. Processing Step 200 First, the microprocessor 10 writes the block number where the magnetic head is currently located from the register 18 into the RAM 22. Processing Step 201 Then, a target block number is calculated from the number of blocks to be skipped specified by the block space instruction and the current block number read in the previous step. Then, the calculated block number is stored in the RAM 22 of the microprocessor 10, and the process proceeds to the next step. Processing step 202 In processing step 202, the microprocessor 10
By issuing a control signal to the tape running control circuit 11 more,
Start running the magnetic tape in the forward direction. Processing Step 203 When the running of the magnetic tape is started, the microprogram 10 determines whether the start (BOT) end (EOT) of the magnetic tape is detected from the marker 27 by the tape position detection circuit 12, and If it is detected, the table memory recording routine 300 is executed next. If not, proceed to the next step. Processing Step 204 In this step, first, it is detected whether a block is detected. If no block has been detected, the process returns to processing step 202. If a block has been detected, proceed to the next step. The microprocessor 10 can detect a block by detecting a predetermined block pattern by the reproducing circuit 14 and the format control circuit 16. Processing Step 205 If a block is detected in the previous step, then the format control circuit 16 separates and recognizes the ID part of the block, and reads the block number into the RAM 22. Processing Step 206 The block number read in the previous step is
Once stored in the RAM 22, the contents of the current block number register 18 are updated with this block number. Processing step 207 and the target block number stored in the RAM 22;
The current block numbers are compared, and if they match the target, the process proceeds to the next step.
Return to 2. Processing step 208 If the target block and the current block number match in processing step 207, the microprocessor 10
A signal is issued to the tape running control circuit 11 to stop the running of the magnetic tape. Processing Step 209 Then, the completion of the execution for the block space instruction is reported to the host device, and this processing ends.

【テーブルメモリ記録ルーチン300】 先の処理ステップ203において、テープの始端終端が
検出された場合には、本発明のデータトラックの最終ブ
ロックの情報を記憶する必要があること、および磁気ヘ
ッドのトラック切り換え動作を行う必要があるために以
下の処理が行われる。 このルーチンは、サブルーチン化されており、他の処
理においても使用される。 尚、本発明では、このルーチンを便宜上テーブルメモ
リ記録ルーチンと呼んでいるが、実際に本発明にて追加
した部分は、処理ステップ302と303のみであり、その他
のステップは、従来よりある。 処理ステップ301 まず、テープの始端/終端を検出したことによってマ
イクロプロセッサ10は、テープ走行制御回路11に対して
制御信号を発してテープの走行を停止させる。 処理ステップ302 本処理ステップにおいては、マイクロプロセッサ10内
にある現在ブロック番号レジスタ18、現在フアイル番号
レジスタ19、現在トラック番号レジスタ17の内容を読み
だす。 処理ステップ303 本ステップにおいては、テーブルメモリ21の先のステ
ップ読出された現在トラック番号レジスタ17の内容によ
り、当該トラックの記録領域のアドレスを指定し、そし
て先のステップで読出した現在ブロック番号レジスタ1
8、現在フアイル番号レジスタ19の内容をこのテーブル
メモリ21に記憶する。 この処理により、データトラックの最終に位置した時
に、最終ブロックの情報を記録することが出来る。 処理ステップ304 次に、テーブルメモリへの記録が完了すると、マイク
ロプロセッサ10は、ヘッド駆動回路15に対してヘッド切
り換え信号を発し、切り換え機構25を駆動して、磁気ヘ
ッド26を次のトラックに移動位置決めする。 そして現在トラック番号レジスタを更新する。 処理ステップ305 そしてマイクロプロセッサ10は、テープ走行制御回路
11に対してテープ走行方向が逆になるように反転指示を
出す。 以上が、テーブルメモリ記録ルーチンであり、第7図
の場合には、このルーチンを実行した後処理ステップ20
2に戻る。 次に第8図により、本発明に係るリード/ライト命令
処理フローチャートを説明する。 処理ステップ400 本ステップにおいては、磁気テープに対してデータの
記録/再生を行うために、マイクロプロセッサ10の各部
を処理可能状態にするためのものである。 処理ステップ401 次にマイクロプロセッサ10は、テープ走行制御回路11
に対してテープの駆動を指示し、磁気テープの走行を開
始させる。 処理ステップ402 本処理ステップにおいては、まず磁気テープの走行を
開始した所で、磁気テープの始端/終端近傍領域にある
か否かを、テープ位置検出回路12からの信号によって検
出する。 即ち、磁気テープが始端側より終端側に走行している
場合には、終端近傍領域に入っているかを、 また磁気テープが終端側より始端側に走行している場
合には、始端近傍領域に入っているかをそれぞれ認識す
るものであり、これはリール23および24からの回転検出
信号によって検出出来る。 そして、もし磁気テープの始端/終端近傍であること
を検出した場合には、処理ステップ408に進む。 そうでなければ、次のステップに進む。 処理ステップ403 本ステップにおいては、磁気テープの走行が開始さ
れ、磁気テープの始端,終端が、マーカ27で検出されて
いないかを、テープ位置検出回路12からの信号により判
断し、もし検出されていれば処理ステップ300のテーブ
ルメモリ記録ルーチンへ進み、そうでなければ次のステ
ップに進む。 処理ステップ404 本ステップにおいては、磁気テープの走行開始され、
所定の速度に達すしたことにより、マイクロプロセッサ
は、記録回路13若しくは再生回路14の何れかとフオーマ
ット制御回路16を駆動して、データの記録再生をブロッ
ク単位で開始する。 処理ステップ405 そして処理ステップ404により、1ブロック単位のデ
ータの記録/再生が終了するまでの間続けられ、終了し
たことにより次のステップに進む。 処理ステップ406 本ステップにおいては、先のステップにおいて記録/
再生されたブロックのデータが、マイクロプロセッサ10
に残されているため、このデータを使用して、現在ブロ
ック番号レジスタ18、現在フアイル番号レジスタ19およ
び、ブロック長レジスタ20を更新する。 尚、ブロック長レジスタは、ブロックのID部にあるデ
ータ部のバイト数より算出して記録される。 処理ステップ407 処理ステップ406においては、リード/ライト命令に
よりデータの記録/再生が全ブロック終了したかを判定
するもので、指示されたすべのブロックが終了すれば、
処理が終了し、まだ記録/再生すべきブロックが残って
いる場合には処理ステップ400に進む。 処理ステップ408 処理ステップ408においては、磁気テープの始端/終
端近傍に位置したということでこのステップに入って来
る。 しかし、データの再生の場合には、磁気テープノ始端
/終端が検出されるまでデータの再生を行う必要がある
が、データの記録の場合には、必ず磁気テープの始端/
終端が検出されるまでにデータの記録を完了していなけ
ればならない。 従って、本ステップにおいては、命令がデータの記録
/再生の何れであるかを判断するものであり、若し記録
の場合には、そのための処理ステップに進み、再生であ
る場合には、処理ステップ403に戻る。 処理ステップ409 データの記録中で、磁気テープの始端/終端近傍を検
出すると、マイクロプロセッサ10は、上位装置に磁気テ
ープの始端/終端近傍であることを報告し、一旦データ
の記録が中断することを予告する。 処理ステップ410 処理ステップ410において、処理ステップ404のうち記
録に関する部分において同一のステップを実行する。 処理ステップ411 処理ステップ405と同一の処理を実行する。 そしてこの処理を終了すると、処理ステップ406と同
一の処理を行っこ後に先に説明したテーブル記録ルーチ
ンを動作させた後処理ステップ407に進む。 以上が、リード/ライト命令処理である。 次に第9図において本発明に係るフアイルスペース命
令処理フローを説明する。 処理ステップ500 本ステップにおいてマイクロプロセッサ10はレジスタ
19より現在のフアイル番号を読み込む。 処理ステップ501 先のステップにおいて読み込まれたフアイル番号と、
命令によりスペースすべきフアイル番号とより目的とす
るフアイル番号を算出する。 処理ステップ502 マイクロプロセッサ10は、テープ走行制御回路11に対
して制御信号を発して、磁気テープの駆動を開始させ
る。 処理ステップ503 本ステップにおいては、磁気テープの始端/終端がマ
ーカ27により検出されていないかをテープ位置検出回路
12の出力信号よりマイクロプロセッサ10により検出さ
れ、検出されたいなければ、次に進み、若し検出されて
いれば、テーブルメモリ記録ルーチン300へ進む。 処理ステップ504 本ステップにおいては、ブロックが検出されるかを、
再生回路14とフオーマット制御回路16とにより検出さ
れ、マイクロプロセッサ10がブロックを認識すれば次に
ステップに進み、そうでなければ、処理ステップ502に
戻る。 処理ステップ505 本処理ステップにおいては、先のステップにおいて認
識されたブロックのID部を読み込みを行いマイクロプロ
セッサ10のRAM22に記録される。 処理ステップ506 先のステップ読み込まれたブロックのID部によりこの
ブロックがフアイルマークブロックであるか、データブ
ロックであるかをフラグID部のフラグ情報より判定す
る。 若しフアイルマークブロックであれば、処理ステップ
508に進み、データブロックである場合には、処理ステ
ップ507に進む。 処理ステップ507 先のステップによりデータブロックであることが判定
された場合、本ステップにおいてこのID部のデータより
ブロックの番号を認識して、現在ブロック番号レジスタ
18の内容を更新する。 処理ステップ508 先のステップによりフアイルマークブロックであるこ
とが判明した場合、本ステップにおいてこのID部のデー
タよりフアイル番号を認識して、現在のフアイル番号レ
ジスタ19の内容を更新する。 処理ステップ508 本ステップでは、先にフアイルマークブロックが目標
のフアイルであるかを、先にRAM22に記憶した目標のフ
アイル番号と比較して判定する。 判定の結果、目標のフアイル番号と相違する場合に
は、処理ステップ502に戻る。 目標のフアイル番号である場合は、次のステップに進
む。 処理ステップ509 上のステップにおいて目標のフアイルに磁気ヘッドが
位置付けされたため、マイクロプロセッサ10はテープ走
行制御回路11に制御信号を発して磁気テープの走行を停
止させる。 処理ステップ510 そして、本ステップにおいて、フアイルスペース命令
の実行が完了したことを上位装置に報告する。 以上が、フアイルスペース命令実行の処理フローであ
る。 次に第10図において、本発明に係るバックスペース命
令処理フローについて説明する。 先の第6図における命令解読処理において説明した
が、逆方向走行関係命令は、2つの命令がある。 即ち、その一つが、バックスペースフアイル命令であ
り、もう一つがバックスペースブロック命令である。 処理ステップ600 本ステップにおいては、まず命令が、バックスペース
フアイル命令であるか、バックスペースブロック命令で
あるかを判定するものである。 その判定の結果、バックスペースフアイル命令である
場合には、第11図に説明する処理に入る。 そしてバックスペースブロック命令である場合には次
のステップに進む。 処理ステップ601 マイクロプロセッサ10は、現在ブロック番号レジスタ
18および現在フアイル番号レジスタ19より現在のブロッ
ク番号および現在のフアイル番号を読出しRAM22上に記
憶する。 処理ステップ602 マイクロプロセッサ10は、命令により受領したバック
スペースすべきブロック数とRAM22上の現在のブロック
番号より目標のブロック番号を計算し、RAM22上に記録
する。 処理ステップ603 マイクロプロセッサ10は、目標となるフアイル番号と
ブロック番号を基に、テーブルメモリ21を参照して、目
標のブロック番号のブロックが記録されているデータト
ラックの番号を決定する。 処理ステップ604 マイクロプロセッサ10は、先のステップにより決定さ
れたデータトラックの番号により、ヘッド駆動回路15に
制御信号を発して、ヘッド駆動機構25を駆動し、磁気ヘ
ッド26を目標のトラックに移動位置決めする。 また、マイクロプロセッサ10はトラック番号レジスタ
17の内容を更新する。 処理ステップ605 マイクロプロセッサ10は、テープ走行制御回路11に駆
動信号を発して、磁気テープを順方向に移動させる。 処理ステップ606 マイクロプロセッサ10は、再生回路14およびフオーマ
ット制御回路の制御により、読み取られたブロックのID
部を読取りRAM22に格納する。 処理ステップ607 先のステップによりRAM22上に格納されたID部のデー
タを基にマイクロプロセッサ10は現在のブロック番号レ
ジスタ18,現在フアイル番号レジスタ19およびブロック
長レジスタ20を更新する。 処理ステップ608 先にステップによりRAM22上に読み込まれたデータを
もとにマイクロプロセッサ10は目標のブロックと同一の
フアイル内かを判定する。 そして、同一フアイル内である場合には、次に進む。 また、同一フアイル内でない場合には、目標よりも前
のフアイルに位置付けられている場合には、処理ステッ
プ611に進み、目標よりも後のフアイルに位置付けられ
ている場合には、処理ステップ613に進む。 処理ステップ609 先に目標のフアイルと同一のフアイル内に磁気テープ
が位置付けられている場合には、目標のブロックの判定
を行う。 即ち、目標のブロックと一致している場合には次にス
テップに進み。 若し、目標のブロックより前のブロックに位置付けら
れている場合には、処理ステップ615に進む。 また、目標のブロックより後のブロックに位置付けら
れている場合には、処理ステップ617に進む。 処理ステップ610 以上のようにして、処理が終了すると完了報告を上位
装置に発して本件処理を終了する。 処理ステップ611 処理ステップ611では、目標のフアイルより前のフア
イルに位置付けられているため、マイクロプロセッサ10
は、直ちに磁気テープの停止させるようにテープ走行制
御回路11に指令を発して磁気テープの走行を停止させ
る。 そして、現在のフアイルの位置と目標のフアイルの間
の差をマイクロプロセッサ10により計算して、その値を
基にマイクロプロセッサ10は、上位装置からのフアイル
スペース命令と同じようにフアイルスペース命令を発行
して、次に処理ステップ612によりフアイルスペース処
理ルーチン612を実行する。 このルーチンは、第9図で説明したものと同じもので
ある。 そしてこのルーチンの処理が完了すると、処理ステッ
プ605に戻る。 処理ステップ613 処理ステップ613では、目標のフアイルより後のフア
イルに位置付けられているため、マイクロプロセッサ10
は、直ちに磁気テープの停止させるようにテープ走行制
御回路11に指令を発して磁気テープの走行を停止させ
る。 そして、現在のフアイルの位置と目標のフアイルの間
の差をマイクロプロセッサ10により計算して、その値を
基にマイクロプロセッサ10は、上位装置からのバックス
ペースフアイル命令と同じようにバックスペースフアイ
ル命令を発行して、次の処理ステップ614によりバック
スペースフアイル処理ルーチンを実行する。 この処理ルーチンは、従来と略同じ処理であるため、
詳細は省略するが、磁気テープを逆方向に一定長走行さ
せては順方向に磁気テープを走行させてブロックを読取
ることを目標のフアイルマークが見つかるまで繰返し行
うものである。 処理ステップ615 処理ステップ615においては、先のルーチンにおい
て、目標のブロックより前のブロックに位置しているた
め、順方向に磁気テープを送り目標のブロックを探す必
要があるため、スペースすべきブロック数を算出して、
上位装置からのブロックスペース命令と略同じような命
令形式として発行し、ブロックスペース処理ルーチン61
6によりブロックスペース処理を行わせる。 このブロックスペース処理は、第7図で説明した処理
と同じである。 処理ステップ616 処理ステップ616においては、先のルーチンにおい
て、目標のブロックより後のブロックに位置しているた
め、逆方向に磁気テープを送り目標のブロックを探す必
要があるため、スペースすべきブロック数を算出して、
上位装置からのバックスペースブロック命令と略同じ命
令形式として発行し、バックスペースブロック処理ルー
チン618によりブロックスペース処理を行わせる。 このバックスペース処理ルーチンについては、本発明
者が同一出願日に出願した特願昭62−333138号に記載さ
れた方法を使用することが出来るし、また従来の方法を
使用しても良い。 そして、これらの処理が終了すると処理ステップ610
において、上位装置に完了方向を行って処理が終了す
る。 次に第11図においてバックスペースフアイル命令に対す
る本発明の処理について説明する。 バックスペースフアイル命令の処理は、第10図におけ
る処理ステップ600により判定されてこのステップが開
始される。 処理ステップ700 マイクロプロセッサ10は、現在磁気ヘッドが位置して
いるフアイル番号を現在フアイル番号レジスタ19より読
出し、RAM22に書き込む。 処理ステップ701 マイクロプロセッサ10は、命令により受領したバック
スペースすべきフアイル数とRAM22上の現在のフアイル
番号より目標のフアイル番号を計算し、RAM22上に記録
する。 処理ステップ702 マイクロプロセッサ10は、目標となるフアイル番号を
基に、テーブルメモリ21を参照して、目標のフアイル番
号のブロックが記録されているデータトラックの番号を
決定する。 尚、フアイル番号は、フアイル内ブロック数によって
は複数のデータトラックにわたって記録される場合があ
るため、若し同一のフアイル番号のものが複数ある場合
には、そのフアイルの先頭に位置付ける必要があるた
め、最も先頭に位置するデータトラックが選択される。 処理ステップ703 マイクロプロセッサ10は、先のステップにより決定さ
れたデータトラックの番号により、ヘッド駆動回路15に
制御信号を発して、ヘッド駆動機構25を駆動し、磁気ヘ
ッド26を目標のトラックに移動位置決めする。 また、マイクロプロセッサ10はトラック番号レジスタ
17の内容を更新する。 処理ステップ704 マイクロプロセッサ10は、テープ走行制御回路11に駆
動信号を発して、磁気テープを順方向に移動させる。 処理ステップ705 マイクロプロセッサ10は、再生回路14およびフオーマ
ット制御回路の制御により、読み取られたブロックのID
部を読取りRAM22に格納する。 処理ステップ706 先のステップによりRAM22上に格納されたID部のデー
タを基にマイクロプロセッサ10は現在ブロック番号レジ
スタ18,現在フアイル番号レジスタ19およびブロック長
レジスタ20を更新する。 処理ステップ707 先にステップによりRAM22上に読み込まれたデータを
もとにマイクロプロセッサ10は目標のフアイル番号と同
一のフアイル番号かを判定する。 そして、目標フアイルと同一であれば次のステップに
進む。 また、目標フアイルでなく、目標フアイルよりも前の
フアイルに位置付けられている場合には処理ステップ71
0に進み、目標フアイルよりも後のフアイルに位置付け
られている場合には、処理ステップ712に進む。 処理ステップ708 同一フアイル内に磁気ヘッドが位置付けられている場
合には、後はフアイルの先頭にあるフアイルマークの先
頭に位置付ける必要があるため、マイクロプロセッサ10
は、第10図の処理ステップ609で目標のブロック番号を
0に指定して同様の処理をこのフアイル位置付け処理ル
ーチンとして実行して所定のフアイルマークに位置付け
られて処理が終了する。 処理ステップ710 処理ステップ710では、目標のフアイルより前のフア
イルに位置付けられているため、マイクロプロセッサ10
は、直ちに磁気テープの停止させるようにテープ走行制
御回路11に指令を発して磁気テープの走行を停止させ
る。 そして、現在のフアイルの位置と目標のフアイルの間
の差をマイクロプロセッサ10により計算して、その値を
基にマイクロプロセッサ10は、上位装置からのフアイル
スペース命令と同じようにフアイルスペース命令を発行
して、次に処理ステップ711によりフアイルスペース処
理ルーチンを実行する。 このルーチンは、第9図で説明したものと同じもので
ある。 そしてこのルーチンの処理が完了すると、処理ステッ
プ709に戻る。 処理ステップ712 処理ステップ712では、目標のフアイルより後のフア
イルに位置付けられているため、マイクロプロセッサ10
は、直ちに磁気テープの停止させるようにテープ走行制
御回路11に指令を発して磁気テープの走行を停止させ
る。 そして、現在のフアイルの位置と目標のフアイルの間
の差をマイクロプロセッサ10により計算して、その値を
基にマイクロプロセッサ10は、上位装置からのバックス
ペースフアイル命令と同じようにバックスペースフアイ
ル命令を発行して、次の処理ステップ713によりバック
スペースフアイル処理ルーチンを実行する。 この処理ルーチンは、従来と略同じ処理であるため、
詳細は省略するが、磁気テープを逆方向に一定長走行さ
せては順方向に磁気テープを走行させてブロックを読取
ることを目標のフアイルマークが見つかるまで繰返し行
うものである。 処理ステップ709 以上のようにして、処理が終了すると完了報告を上位
装置に発して本件処理を終了する。 以上のように構成することにより、特にバックスペー
ス関係の処理において、テーブルメモリ21を参照するこ
とにり、磁気ヘッド26のトラック切り換えを行うことが
可能となるため、短時間でブロックの位置付けを行うこ
とが可能となる。 尚、バックスペースのブロック位置付けについて上記
説明では省略したが、ここで簡単に説明する。 図1に示すような磁気テープ上のデータフオーマット
を基に以下に本発明の動作を説明する。 先に説明したように、マイクロプロセッサ10には、ブ
ロック長レジスタ20が設けられており磁気テープ上の現
在の1つのブロックの長さを、ブロックのID部より認識
してデータ部のデータバイト数と他の固定定数より演算
して記憶されている。従って、この長さ情報より実際に
磁気テープをバックスペースすべき距離または時間を算
出し、バックスペース動作に入るものである。 このバックスペース動作は、実際に命令で受けたブロ
ック数にプラス1したブロック数に相当する距離または
時間だけバックスペース動作を行う。 即ち、目標のブロック番号をnとしたとき、磁気テー
プを逆方向に走行させて前記目標のブロック番号(n)
の1つ先であるブロック番号(n−1)のブロックの先
頭まで進め、その後順方向に磁気テープを駆動してブロ
ック番号(n−1)のブロックの読み取りを行ってブロ
ック番号の認識を行い、先に認識されていたブロック番
号と比較し、バックスペース命令で指示されたブロック
の手前のブロックであることを認識してブロック番号
(n−1)のブロックとブロック番号(n)のブロック
との間のIBGに停止し、バックスペース命令によるブロ
ック位置付けを完了するようにすれば良い。 次にブロック長の記憶および演算方法について説明す
る。 一つのブロックは、ID部の長さと、データ部の長さお
よび、IBGの長さで記憶しておけば、これをブロック数
で掛けると移動すべき磁気テープの距離または時間が判
断出来る。 先ず、ID部の長さdおよびIBG4の長さcは、常に固定
長であるので、予め定数として設定出来る。 データ部2の長さは、フアイル単位でバイト数が変化
すること、およびデータの記録密度により変化するた
め、ID部1に記録されたデータ部2のバイト数を記録密
度で割ることにより算出できる。 即ち、記録密度をaとし、データ部のバイト数をdと
すると、データ部の長さは、d/aで算出できる。 従って、1つのブロックの長さLは、 L=d/a+b+c となる。 従って、このブロックの長さLをレジスタ等に記憶し
ておくことにより、上述した動作を達成することが出来
る。 〔効果〕 以上のように本発明によれば、ブロック位置付け命令
受信時にテーブルメモリ21を参照することにより、位置
付けすべきブロックが記録されているトラックが現在の
トラックから何トラック離れているかを知ることができ
る。従って、磁気ヘッド26を磁気テープ6の幅方向に移
動させることにより目標のトラックに短時間で位置付け
ることができ、その後当該トラック内で位置付けすべき
ブロックを探すのみで、当該命令の実行を完了すること
ができる。従って、最悪でも磁気テープの走行長は、磁
気テープの全長の範囲内であり、短時間にブロックの位
置付けを完了することができる。特にバックスペース関
係の処理において、テーブルメモリ21を参照することに
り、磁気ヘッド26のトラック切り換えを行うことが可能
となるため、短時間でブロックの位置付けを行うことが
可能となる。
[Table Memory Recording Routine 300] If the start and end of the tape are detected in the previous processing step 203, it is necessary to store the information of the last block of the data track according to the present invention, and the track switching of the magnetic head is performed. Since the operation needs to be performed, the following processing is performed. This routine is a subroutine, and is used in other processes. In the present invention, this routine is called a table memory recording routine for the sake of convenience. However, only the processing steps 302 and 303 are actually added in the present invention, and the other steps are conventional. Processing Step 301 First, upon detecting the start / end of the tape, the microprocessor 10 issues a control signal to the tape running control circuit 11 to stop the running of the tape. Processing Step 302 In this processing step, the contents of the current block number register 18, the current file number register 19, and the current track number register 17 in the microprocessor 10 are read. Processing Step 303 In this step, the address of the recording area of the track is specified by the contents of the current track number register 17 read out from the previous step of the table memory 21, and the current block number register 1 read out in the previous step is read out.
8. The contents of the current file number register 19 are stored in the table memory 21. By this processing, information of the last block can be recorded when located at the end of the data track. Processing step 304 Next, when the recording to the table memory is completed, the microprocessor 10 issues a head switching signal to the head driving circuit 15, drives the switching mechanism 25, and moves the magnetic head 26 to the next track. Position. Then, the current track number register is updated. Processing step 305 and the microprocessor 10
A reversal instruction is issued to 11 so that the tape running direction is reversed. The above is the table memory recording routine. In the case of FIG. 7, after executing this routine, step 20 is executed.
Return to 2. Next, a flowchart of the read / write instruction processing according to the present invention will be described with reference to FIG. Processing Step 400 In this step, each part of the microprocessor 10 is set in a processable state in order to record / reproduce data on / from the magnetic tape. Processing Step 401 Next, the microprocessor 10
Is instructed to drive the tape, and the running of the magnetic tape is started. Processing Step 402 In this processing step, first, when the running of the magnetic tape is started, it is detected from the signal from the tape position detection circuit 12 whether or not the magnetic tape is in the vicinity of the start / end of the magnetic tape. That is, if the magnetic tape is traveling from the start end to the end, it is determined whether the magnetic tape is in the area near the end.If the magnetic tape is traveling from the end to the start, the area is in the area near the start. This is for recognizing whether or not each of the reels is present, which can be detected by rotation detection signals from the reels 23 and 24. If it is detected that it is near the start / end of the magnetic tape, the process proceeds to processing step 408. Otherwise, go to the next step. Processing Step 403 In this step, the running of the magnetic tape is started, and it is determined from the signal from the tape position detecting circuit 12 whether or not the start and end of the magnetic tape are detected by the marker 27. If so, the process proceeds to the table memory recording routine of processing step 300, and if not, the process proceeds to the next step. Processing Step 404 In this step, running of the magnetic tape is started,
Upon reaching the predetermined speed, the microprocessor drives either the recording circuit 13 or the reproducing circuit 14 and the format control circuit 16 to start recording and reproducing data in block units. Processing step 405 and processing step 404 are continued until recording / reproduction of data in units of one block is completed, and the processing proceeds to the next step upon completion. Processing Step 406 In this step, the recording /
The data of the reproduced block is stored in the microprocessor 10
The current block number register 18, the current file number register 19, and the block length register 20 are updated using this data. The block length register is calculated and calculated from the number of bytes of the data part in the ID part of the block. Processing Step 407 In the processing step 406, it is determined whether the recording / reproduction of data has been completed for all blocks by the read / write command. If all the designated blocks are completed,
If the processing is completed and there are still blocks to be recorded / reproduced, the process proceeds to processing step 400. Processing Step 408 In processing step 408, this step is entered because it is located near the start / end of the magnetic tape. However, in the case of data reproduction, it is necessary to reproduce the data until the start / end of the magnetic tape is detected. In the case of data recording, however, the start / end of the magnetic tape is always required.
Data recording must be completed before the end is detected. Therefore, in this step, it is determined whether the instruction is data recording / reproduction. If the instruction is a recording, the process proceeds to a processing step therefor. Return to 403. Processing Step 409 If the vicinity of the start / end of the magnetic tape is detected during the data recording, the microprocessor 10 reports to the host device that it is near the start / end of the magnetic tape, and the data recording is interrupted once. Foretell. Processing Step 410 In processing step 410, the same step is executed in the part related to recording in processing step 404. Processing step 411 Performs the same processing as processing step 405. When this process is completed, the same process as the process step 406 is performed, and then the table recording routine described above is operated. Then, the process proceeds to the post-process step 407. The above is the read / write instruction processing. Next, a file space instruction processing flow according to the present invention will be described with reference to FIG. Processing step 500 In this step, the microprocessor 10
Read the current file number from 19. Processing step 501, the file number read in the previous step,
The file number to be spaced by the instruction and the target file number are calculated. Processing Step 502 The microprocessor 10 issues a control signal to the tape running control circuit 11 to start driving the magnetic tape. Processing Step 503 In this step, a tape position detection circuit determines whether the start / end of the magnetic tape is detected by the marker 27.
Detected by the microprocessor 10 from the twelve output signals. If not detected, the process proceeds to the next step. If detected, the process proceeds to the table memory recording routine 300. Processing Step 504 In this step, it is determined whether a block is detected.
If the block is detected by the reproduction circuit 14 and the format control circuit 16 and the microprocessor 10 recognizes the block, the process proceeds to the next step; otherwise, the process returns to the processing step 502. Processing Step 505 In this processing step, the ID part of the block recognized in the previous step is read and recorded in the RAM 22 of the microprocessor 10. Processing Step 506 It is determined from the flag information of the flag ID part whether the block is a file mark block or a data block based on the ID part of the block read in the previous step. If it is a file mark block, the processing step
Proceeding to 508, if it is a data block, proceed to processing step 507. Processing step 507 If it is determined in the previous step that the data block is a data block, in this step the block number is recognized from the data of this ID part and the current block number register
Update the contents of 18. Processing Step 508 If it is determined in the preceding step that the block is a file mark block, the file number is recognized from the data of this ID part in this step, and the contents of the current file number register 19 are updated. Processing Step 508 In this step, it is determined whether the file mark block is the target file first by comparing it with the target file number previously stored in the RAM 22. If the result of the determination is that the file number is different from the target file number, the process returns to processing step 502. If it is the target file number, go to the next step. Processing Step 509 Since the magnetic head is positioned at the target file in the upper step, the microprocessor 10 issues a control signal to the tape running control circuit 11 to stop the running of the magnetic tape. Processing Step 510 Then, in this step, the completion of the execution of the file space instruction is reported to the host device. The above is the processing flow of the file space instruction execution. Next, the backspace instruction processing flow according to the present invention will be described with reference to FIG. As described in the instruction decoding process in FIG. 6, there are two backward traveling-related instructions. That is, one is a backspace file instruction and the other is a backspace block instruction. Processing Step 600 In this step, first, it is determined whether the instruction is a backspace file instruction or a backspace block instruction. If the result of the determination is that the command is a backspace file command, the process proceeds to the process described in FIG. If it is a backspace block instruction, the process proceeds to the next step. Processing step 601 The microprocessor 10 sets the current block number register
The current block number and the current file number are read from the current file number register 18 and the current file number register 19 and stored in the RAM 22. Processing Step 602 The microprocessor 10 calculates a target block number from the number of blocks to be backspaced received by the instruction and the current block number on the RAM 22, and records the target block number on the RAM 22. Processing Step 603 The microprocessor 10 determines the number of the data track on which the block of the target block number is recorded with reference to the table memory 21 based on the target file number and the block number. Processing step 604 The microprocessor 10 issues a control signal to the head drive circuit 15 according to the data track number determined in the previous step, drives the head drive mechanism 25, and moves and positions the magnetic head 26 to the target track. I do. The microprocessor 10 has a track number register
Update the contents of 17. Processing Step 605 The microprocessor 10 issues a drive signal to the tape running control circuit 11 to move the magnetic tape in the forward direction. Processing Step 606 The microprocessor 10 controls the reproduction circuit 14 and the format control circuit to control the ID of the read block.
The part is read and stored in the RAM 22. Processing Step 607 The microprocessor 10 updates the current block number register 18, the current file number register 19 and the block length register 20 based on the data of the ID part stored in the RAM 22 in the previous step. Processing Step 608 Based on the data read into the RAM 22 in the previous step, the microprocessor 10 determines whether the file is in the same file as the target block. If the files are in the same file, the process proceeds to the next step. If the file is not in the same file, the process proceeds to processing step 611 if the file is positioned before the target, and if the file is positioned in a file after the target, the process proceeds to processing step 613. move on. Processing Step 609 If the magnetic tape is positioned in the same file as the target file first, the target block is determined. That is, if it matches the target block, the process proceeds to the next step. If the block is positioned before the target block, the process proceeds to processing step 615. If the block is positioned after the target block, the process proceeds to processing step 617. Processing Step 610 As described above, when the processing is completed, a completion report is issued to the higher-level device, and the present processing ends. Processing Step 611 In the processing step 611, since the file is positioned in the file before the target file, the microprocessor 10
Issues a command to the tape running control circuit 11 to stop the magnetic tape immediately to stop the running of the magnetic tape. Then, the difference between the current file position and the target file is calculated by the microprocessor 10, and based on the calculated value, the microprocessor 10 issues a file space instruction in the same manner as the file space instruction from the host device. Then, in a processing step 612, a file space processing routine 612 is executed. This routine is the same as that described with reference to FIG. When the processing of this routine is completed, the process returns to processing step 605. Processing step 613 In processing step 613, since the file is positioned in a file after the target file, the microprocessor 10
Issues a command to the tape running control circuit 11 to stop the magnetic tape immediately to stop the running of the magnetic tape. Then, the difference between the current file position and the target file is calculated by the microprocessor 10, and based on the calculated value, the microprocessor 10 executes the backspace file instruction in the same manner as the backspace file instruction from the host device. Is issued, and a backspace file processing routine is executed in the next processing step 614. Since this processing routine is almost the same as the conventional processing,
Although the details are omitted, the magnetic tape is run in the reverse direction for a fixed length, and then the magnetic tape is run in the forward direction to read the blocks repeatedly until a target file mark is found. Processing Step 615 In the processing step 615, in the previous routine, since it is necessary to forward the magnetic tape to search for the target block because it is located in the block before the target block, the number of blocks to be spaced Is calculated,
Issued as an instruction format that is almost the same as the block space instruction from the host device, the block space processing routine 61
Step 6 causes block space processing to be performed. This block space processing is the same as the processing described in FIG. Processing Step 616 In processing step 616, the number of blocks to be spaced is determined because the magnetic tape needs to be sent in the reverse direction to search for the target block because it is located in the block after the target block in the previous routine. Is calculated,
It is issued as an instruction format substantially the same as the backspace block instruction from the host device, and the backspace block processing routine 618 performs block space processing. For this backspace processing routine, the method described in Japanese Patent Application No. 62-333138 filed by the present inventors on the same filing date may be used, or a conventional method may be used. Then, when these processes are completed, a process step 610 is performed.
In, the completion direction is performed to the host device, and the process ends. Next, the processing of the present invention for a backspace file instruction will be described with reference to FIG. The processing of the backspace file instruction is determined by processing step 600 in FIG. 10, and this step is started. Processing Step 700 The microprocessor 10 reads the file number where the magnetic head is currently located from the current file number register 19 and writes it to the RAM 22. Processing Step 701 The microprocessor 10 calculates a target file number from the number of files to be backspaced received by the instruction and the current file number on the RAM 22, and records the target file number on the RAM 22. Processing Step 702 The microprocessor 10 determines the number of the data track on which the block of the target file number is recorded by referring to the table memory 21 based on the target file number. Since the file number may be recorded over a plurality of data tracks depending on the number of blocks in the file, if there are a plurality of files having the same file number, it is necessary to position the file at the head of the file. , The data track located at the top is selected. Processing step 703 The microprocessor 10 issues a control signal to the head drive circuit 15 according to the data track number determined in the previous step, drives the head drive mechanism 25, and moves and positions the magnetic head 26 to the target track. I do. The microprocessor 10 has a track number register
Update the contents of 17. Processing Step 704 The microprocessor 10 issues a drive signal to the tape running control circuit 11 to move the magnetic tape in the forward direction. Processing Step 705 The microprocessor 10 controls the reproduction circuit 14 and the format control circuit to control the ID of the read block.
The part is read and stored in the RAM 22. Processing Step 706 The microprocessor 10 updates the current block number register 18, the current file number register 19, and the block length register 20 based on the data of the ID part stored in the RAM 22 in the previous step. Processing Step 707 Based on the data read into the RAM 22 in the previous step, the microprocessor 10 determines whether the file number is the same as the target file number. If it is the same as the target file, the process proceeds to the next step. If the target file is not a target file but a file before the target file, the processing step 71
The process proceeds to 0, and if the file is positioned in a file after the target file, the process proceeds to processing step 712. Processing step 708 If the magnetic head is located in the same file, then it is necessary to position the magnetic head at the beginning of the file mark at the beginning of the file.
In the processing step 609 in FIG. 10, the same processing is executed by designating the target block number to 0, and the same processing is executed as this file positioning processing routine to be positioned at a predetermined file mark, and the processing ends. Processing Step 710 In processing step 710, since the file is positioned before the target file, the microprocessor 10
Issues a command to the tape running control circuit 11 to stop the magnetic tape immediately to stop the running of the magnetic tape. Then, the difference between the current file position and the target file is calculated by the microprocessor 10, and based on the calculated value, the microprocessor 10 issues a file space instruction in the same manner as the file space instruction from the host device. Then, a file space processing routine is executed in processing step 711. This routine is the same as that described with reference to FIG. When the processing of this routine is completed, the process returns to processing step 709. Processing Step 712 In processing step 712, since the file is positioned after the target file, the microprocessor 10
Issues a command to the tape running control circuit 11 to stop the magnetic tape immediately to stop the running of the magnetic tape. Then, the difference between the current file position and the target file is calculated by the microprocessor 10, and based on the calculated value, the microprocessor 10 executes the backspace file instruction in the same manner as the backspace file instruction from the host device. Is issued, and a backspace file processing routine is executed in the next processing step 713. Since this processing routine is almost the same as the conventional processing,
Although the details are omitted, the magnetic tape is run in the reverse direction for a fixed length, and then the magnetic tape is run in the forward direction to read the block repeatedly until a target file mark is found. Processing Step 709 As described above, when the processing is completed, a completion report is issued to the higher-level device, and the present processing ends. With the above configuration, it is possible to switch the track of the magnetic head 26 by referring to the table memory 21 particularly in the processing related to the back space, so that the positioning of the block is performed in a short time. It becomes possible. Although the positioning of the backspace block is omitted in the above description, it will be briefly described here. The operation of the present invention will be described below based on a data format on a magnetic tape as shown in FIG. As described above, the microprocessor 10 is provided with the block length register 20, and recognizes the current length of one block on the magnetic tape from the ID portion of the block, and determines the number of data bytes in the data portion. And other fixed constants. Accordingly, the distance or time to actually backspace the magnetic tape is calculated from the length information, and the operation starts the backspace operation. In this backspace operation, the backspace operation is performed for a distance or time corresponding to the number of blocks obtained by adding 1 to the number of blocks actually received by the instruction. That is, assuming that the target block number is n, the magnetic tape is run in the reverse direction and the target block number (n)
Then, the magnetic tape is driven forward to read the block of the block number (n-1) to recognize the block number by driving the magnetic tape in the forward direction. Is compared with the previously recognized block number, and recognizes that the block is located before the block designated by the backspace instruction, and compares the block with the block number (n-1) and the block with the block number (n). It is sufficient to stop at the IBG during the period and complete the block positioning by the backspace instruction. Next, a method of storing and calculating the block length will be described. If one block is stored with the length of the ID section, the length of the data section, and the length of the IBG, the distance or time of the magnetic tape to be moved can be determined by multiplying this by the number of blocks. First, since the length d of the ID portion and the length c of the IBG4 are always fixed lengths, they can be set as constants in advance. Since the length of the data portion 2 varies depending on the number of bytes in a file unit and the recording density of data, the length can be calculated by dividing the number of bytes of the data portion 2 recorded in the ID portion 1 by the recording density. . That is, if the recording density is a and the number of bytes of the data part is d, the length of the data part can be calculated by d / a. Therefore, the length L of one block is L = d / a + b + c. Therefore, the operation described above can be achieved by storing the length L of this block in a register or the like. [Effect] As described above, according to the present invention, by referring to the table memory 21 at the time of receiving the block positioning command, it is possible to know how many tracks the track in which the block to be positioned is recorded is away from the current track. Can be. Therefore, by moving the magnetic head 26 in the width direction of the magnetic tape 6, it is possible to position the target track in a short time, and thereafter, the execution of the instruction is completed only by searching for a block to be positioned in the track. be able to. Therefore, at worst, the running length of the magnetic tape is within the entire length of the magnetic tape, and the positioning of the block can be completed in a short time. In particular, in the process related to the back space, the track switching of the magnetic head 26 can be performed by referring to the table memory 21, so that the block can be positioned in a short time.

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

第1図は本発明の磁気テープ上のデータフオーマットを
説明する図、 第2図は本発明に係る磁気テープ装置のデータ記録方法
を説明する図、 第3図は本発明の磁気テープ装置の動作を説明する図、 第4図は本発明に係る磁気テープ装置の一実施例構成
図、 第5図は本発明に係るメモリテーブル構成を説明する
図、 第6図は本発明の命令解読部処理フローチャート、 第7図は本発明に係るブロックスペース命令処理フロー
チャート、 第8図は本発明に係るリード/ライト命令処理フローチ
ャート、 第9図は本発明に係るフアイルスペース命令処理フロー
チャート、 第10図は本発明に係るバックスペース命令処理フローチ
ャート、 第11図は本発明に係るバックスペースフアイル命令処理
フローチャート、 をそれそれ示す。 さらに図において、 1はID部、2はデータ部、3はIBG、4はブロック、10
は、マイクロプロセッサ、17はトラック番号レジスタ、
18は現在ブロック番号レジスタ、19は現在フアイル番号
レジスタ、21はテーブルメモリ、22はRAM、をそれぞれ
示す。
FIG. 1 is a diagram for explaining a data format on a magnetic tape of the present invention, FIG. 2 is a diagram for explaining a data recording method of a magnetic tape device according to the present invention, and FIG. 3 is an operation of the magnetic tape device of the present invention. FIG. 4 is a configuration diagram of an embodiment of a magnetic tape device according to the present invention. FIG. 5 is a diagram illustrating a memory table configuration according to the present invention. FIG. 6 is an instruction decoding unit process of the present invention. FIG. 7 is a block space instruction processing flowchart according to the present invention, FIG. 8 is a read / write instruction processing flowchart according to the present invention, FIG. 9 is a file space instruction processing flowchart according to the present invention, and FIG. FIG. 11 is a backspace command processing flowchart according to the present invention, and FIG. 11 is a backspace file command processing flowchart according to the present invention. In the figure, 1 is an ID part, 2 is a data part, 3 is an IBG, 4 is a block, 10
Is a microprocessor, 17 is a track number register,
Reference numeral 18 denotes a current block number register, 19 denotes a current file number register, 21 denotes a table memory, and 22 denotes a RAM.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】磁気テープの幅方向に沿って設けられた複
数のデータトラックにわたってシーケンシャルにデータ
ブロックを記録又は再生すべく、磁気ヘッドを前記磁気
テープの始端位置又は終端位置で1トラックごとに該磁
気テープの幅方向に相対的に移動させて所望のデータト
ラックに位置付けし、該データトラックにブロック単位
でデータを記録又は再生する磁気テープ装置において、 前記磁気テープ上の各データトラックの最終ブロックの
ブロック番号又はファイル番号をそれぞれ記憶する記憶
部と、 ブロック位置付け命令受信時に、各データトラックの最
終ブロックのブロック番号又はファイル番号と当該位置
付けすべきブロックのブロック番号又はファイル番号と
の大小関係から、当該位置付けすべきブロックが存在す
るデータトラックを認識するための認識部と、 前記磁気ヘッドを、前記ブロック位置付け命令の実行を
開始する時に位置付けられていた箇所から前記磁気テー
プの幅方向に移動して前記認識されたデータトラックへ
位置付けるヘッド駆動部と、 前記認識されたデータトラックへ前記磁気ヘッドが位置
付けられた後前記磁気テープを走行させて前記位置付け
すべきブロックに位置付けるテープ駆動部と、 を備えたことを特徴とする磁気テープ装置。
1. A magnetic head is provided for each track at a start end position or an end position of the magnetic tape so as to record or reproduce data blocks sequentially over a plurality of data tracks provided along the width direction of the magnetic tape. In a magnetic tape device that relatively moves in the width direction of a magnetic tape to position a desired data track, and records or reproduces data on the data track in block units, A storage unit for storing a block number or a file number, and upon receiving a block positioning command, the size of the block number or the file number of the last block of each data track and the block number or the file number of the block to be positioned, Data that contains the block to be positioned A recognition unit for recognizing a rack; and a head for moving the magnetic head from a position where it was positioned when the execution of the block positioning command is started in a width direction of the magnetic tape and positioning the magnetic head on the recognized data track. A magnetic tape device comprising: a drive unit; and a tape drive unit that moves the magnetic tape after the magnetic head is positioned on the recognized data track and positions the magnetic tape on the block to be positioned.
JP62333139A 1987-12-25 1987-12-25 Magnetic tape unit Expired - Fee Related JP2625796B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62333139A JP2625796B2 (en) 1987-12-25 1987-12-25 Magnetic tape unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62333139A JP2625796B2 (en) 1987-12-25 1987-12-25 Magnetic tape unit

Publications (2)

Publication Number Publication Date
JPH01171185A JPH01171185A (en) 1989-07-06
JP2625796B2 true JP2625796B2 (en) 1997-07-02

Family

ID=18262726

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62333139A Expired - Fee Related JP2625796B2 (en) 1987-12-25 1987-12-25 Magnetic tape unit

Country Status (1)

Country Link
JP (1) JP2625796B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4858039A (en) * 1988-02-04 1989-08-15 Archive Corporation Streaming tape drive with direct block addressability
US5373485A (en) * 1991-09-03 1994-12-13 Minnesota Mining And Manufacturing Company Method for locating data in a data cartridge system

Also Published As

Publication number Publication date
JPH01171185A (en) 1989-07-06

Similar Documents

Publication Publication Date Title
KR100569045B1 (en) Writing synchronized data to magnetic tape
EP0323890B1 (en) Data storage method
US4858039A (en) Streaming tape drive with direct block addressability
JP3652372B2 (en) Method and apparatus for storing data and auxiliary information
JP2625796B2 (en) Magnetic tape unit
US5325506A (en) Method of changing the track and recording data
US6204984B1 (en) Disk apparatus, and recording/reproduction method therefor
US6525894B1 (en) Tape drive apparatus and method for mounting a volume from a tape medium
EP0496565B1 (en) Digital data reproducing apparatus
JPH04321988A (en) Toc recording and reproducing device
US20020191316A1 (en) Searching for append point in data storage device
US5323276A (en) Error removal method for a multi-track tape recorder system
JPH0743852B2 (en) Block positioning control method in magnetic tape device
US7099988B2 (en) Apparatus and method to read information from an information storage medium
US5363253A (en) Tape drive fast seek to end-of-track
JP3068811B2 (en) Method of controlling storage device
JP2533484B2 (en) Magnetic tape control system
JPS6095762A (en) Magnetic disc controller
JP2859251B2 (en) Disk controller control method and disk controller
JPH06318372A (en) Method for formatting magnetic tape volume
JP2573828B2 (en) Magnetic tape recording method
KR0137863B1 (en) Detecting method of curve edge
JP2624172B2 (en) Magnetic tape processing device
JPH0535460Y2 (en)
JPH082817Y2 (en) High-speed information retrieval device

Legal Events

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