JPH01171145A - Block positioning control method for magnetic tape device - Google Patents

Block positioning control method for magnetic tape device

Info

Publication number
JPH01171145A
JPH01171145A JP62333138A JP33313887A JPH01171145A JP H01171145 A JPH01171145 A JP H01171145A JP 62333138 A JP62333138 A JP 62333138A JP 33313887 A JP33313887 A JP 33313887A JP H01171145 A JPH01171145 A JP H01171145A
Authority
JP
Japan
Prior art keywords
magnetic tape
block
data
backspace
command
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
JP62333138A
Other languages
Japanese (ja)
Other versions
JPH0743852B2 (en
Inventor
Masaki Fujiki
藤木 正樹
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 JP62333138A priority Critical patent/JPH0743852B2/en
Publication of JPH01171145A publication Critical patent/JPH01171145A/en
Publication of JPH0743852B2 publication Critical patent/JPH0743852B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • CCHEMISTRY; METALLURGY
    • C04CEMENTS; CONCRETE; ARTIFICIAL STONE; CERAMICS; REFRACTORIES
    • C04BLIME, MAGNESIA; SLAG; CEMENTS; COMPOSITIONS THEREOF, e.g. MORTARS, CONCRETE OR LIKE BUILDING MATERIALS; ARTIFICIAL STONE; CERAMICS; REFRACTORIES; TREATMENT OF NATURAL STONE
    • C04B28/00Compositions of mortars, concrete or artificial stone, containing inorganic binders or the reaction product of an inorganic and an organic binder, e.g. polycarboxylate cements
    • C04B28/02Compositions of mortars, concrete or artificial stone, containing inorganic binders or the reaction product of an inorganic and an organic binder, e.g. polycarboxylate cements containing hydraulic cements other than calcium sulfates
    • CCHEMISTRY; METALLURGY
    • C04CEMENTS; CONCRETE; ARTIFICIAL STONE; CERAMICS; REFRACTORIES
    • C04BLIME, MAGNESIA; SLAG; CEMENTS; COMPOSITIONS THEREOF, e.g. MORTARS, CONCRETE OR LIKE BUILDING MATERIALS; ARTIFICIAL STONE; CERAMICS; REFRACTORIES; TREATMENT OF NATURAL STONE
    • C04B2111/00Mortars, concrete or artificial stone or mixtures to prepare them, characterised by specific function, property or use
    • C04B2111/00034Physico-chemical characteristics of the mixtures
    • C04B2111/00146Sprayable or pumpable mixtures
    • C04B2111/00155Sprayable, i.e. concrete-like, materials able to be shaped by spraying instead of by casting, e.g. gunite

Landscapes

  • Chemical & Material Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Ceramic Engineering (AREA)
  • Digital Magnetic Recording (AREA)
  • Chemical Kinetics & Catalysis (AREA)
  • Inorganic Chemistry (AREA)
  • Materials Engineering (AREA)
  • Structural Engineering (AREA)
  • Organic Chemistry (AREA)

Abstract

PURPOSE:To attain the positioning of a block by means of a back space action at high speed by storing a block length, calculating a back-spaced distance or a time, and executing the back space instruction of a magnetic tape. CONSTITUTION:Block distance information is stored into a magnetic tape device, when the back space instruction is received, the back-spaced distance or the time is operated by the recorded block distance information and the number of the blocks to the back-spaced, and based on an arithmetic result, the back space instruction of the magnetic tape is executed. By recording the block distance information beforehand, the number of the blocks to be back-spaced by the back space instruction, and the distance/time for the movement of the magnetic tape device from the block distance can be operated. Consequently, by moving the magnetic tape with the use of the arithmetic result, the positioning of the block instructed by the back space instruction to a top is attained by the movement of the magnetic tape for one time. As this result, the execution of the back space instruction can be made faster.

Description

【発明の詳細な説明】 〔概 要〕 磁気テープ装置におけるバックスペース命令実行におけ
るブロック位置付は方法に関し、磁気テープ装置におけ
るブロック位置付けを高速に行うことを目的とし、 磁気テープ装置にブロックの長さ情報を記憶し、バック
スペース命令受信時に、当該記録されたブロックの長さ
情報とバックスペースすべきブロック数よりバックスペ
ースすべき距離または時間を演算し、該演算結果をもと
に磁気テープのバックスペース命令を実行するように構
成した。
[Detailed Description of the Invention] [Summary] Block positioning in the execution of a backspace command in a magnetic tape device relates to a method.The purpose is to perform block positioning in a magnetic tape device at high speed. The information is stored, and when a backspace command is received, the distance or time to backspace is calculated from the recorded block length information and the number of blocks to be backspaced, and the magnetic tape is backed up based on the calculation result. Configured to execute space instructions.

〔発明の利用分野〕[Field of application of the invention]

本発明は、情報処理装置に外部記憶装置とじて使用され
る磁気テープ装置に関し、特に情報をブロック単位で記
録するようにした磁気テープ装置におけるブロック位置
付は制御方法に関する。
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 method for controlling block positioning in a magnetic tape device that records information in blocks.

情報処理装置の外部記憶装置として磁気テープ装置が使
用される。
A magnetic tape device is used as an external storage device for an information processing device.

この磁気テープ装置は、磁気テープ媒体上に情報をブロ
ック単位で記憶する。
This magnetic tape device stores information in blocks on a magnetic tape medium.

即ち、情報をブロック単位に区切り、その先頭に識別管
理情報(ID)を記録し、情報と識別管理情報(ID)
とからブロックを構成し、このブロックを所定の間隔で
間に無記録部分(IBG)を設けて記録される。
That is, information is divided into blocks, identification management information (ID) is recorded at the beginning of each block, and information and identification management information (ID) are separated.
This block is recorded at predetermined intervals with unrecorded portions (IBG) provided between the blocks.

このような磁気テープ装置においては、上位装置から、
バックスペース命令という記録された複数ブロック手前
まで、磁気テープを送り、磁気ヘッドを所定のブロック
に位置付ける命令があり、この命令を高速に実行するこ
とが要求されている。
In such a magnetic tape device, from the host device,
There is a backspace command, which is a command that moves the magnetic tape to the front of a plurality of recorded blocks and positions the magnetic head at a predetermined block, and it is required to execute this command at high speed.

〔従来の技術〕 上記したようなバックスペース命令を実行するために従
来は、下記の方法が採られてる。
[Prior Art] Conventionally, the following method has been adopted to execute the above-mentioned backspace command.

即ち、磁気テープを逆方向に一定距離だけ進めた後、順
方向に磁気テープを送ってブロックを読み取り、バック
スペース命令によって指示されたブロックか否かを判定
する。
That is, after advancing the magnetic tape a certain distance in the reverse direction, the magnetic tape is advanced in the forward direction, a block is read, and it is determined whether the block is the one specified by the backspace command.

若し、当該ブロックより指示されたブロックがそれより
も手前であれば、さらに一定距離だけ逆方向に磁気テー
プを進めた後、順方向に磁気テープを送ってブロックを
読み取り、バックスペース命令によって指示されたブロ
ックか否かを判定するとともに、指示されたブロックが
手前に位置する場合には、これを指示されたブロックと
等しいか若しくは、指示されたブロックが順方向に位置
すると判定されるまでこれを繰り返す。
If the specified block is earlier than that block, advance the magnetic tape a certain distance in the opposite direction, then send the magnetic tape in the forward direction to read the block, and then use the backspace command to read the block. In addition, if the indicated block is located in the front, it is determined whether the indicated block is the same as the indicated block or the indicated block is located in the forward direction. repeat.

そして、バックスペース命令によって指示されたブロッ
クと等しいか、またはその位置より順方向に位置すると
判定された場合には、そこから順方向にブロックを読み
取り指示されたブロックの先頭位置に磁気ヘッドを位置
付けるという動作を行っていた。
Then, if it is determined that the block is equal to the block specified by the backspace command or is located in the forward direction from that position, the block is read in the forward direction from there and the magnetic head is positioned at the beginning position of the specified block. He was doing this.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

このように従来の方法においては、バックスペース命令
が発せられた場合には、磁気テープ装置に逆方向読み取
り機能がないため、予め決めらた一定長の距離、磁気テ
ープを逆方向に進める操作を繰り返しながら指示された
ブロックの先頭を探して位置付けるという制御を行って
いたため、バックスペース命令に対する処理に多大の時
間がかかり、情報処理装置を低下させるという問題があ
った。
In this way, in the conventional method, when a backspace command is issued, the magnetic tape device does not have a backward reading function, so the operation to advance the magnetic tape in the backward direction by a predetermined distance is performed. Since control is performed by repeatedly searching for and locating the beginning of the specified block, there is a problem in that it takes a lot of time to process the backspace command, which degrades the performance of the information processing device.

本発明上記の問題を解決し、単時間でバックスペース命
令に対する磁気テープのブロック位置付は制御を行うこ
とを目的とする。
It is an object of the present invention to solve the above-mentioned problems and to control magnetic tape block positioning in response to backspace commands in a single time.

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

本発明は上記目的を達成するために、磁気テープ装置に
ブロックの長さ情報を記憶し、バックスペース命令受信
時に、当該記録されたブロックの長さ情報とバックスペ
ースすべきブロック数よりバックスペースすべき距離ま
たは時間を演算し、該演算結果をもとに磁気テープのバ
ックスペース命令を実行するようにしたものである。
In order to achieve the above object, the present invention stores block length information in a magnetic tape device, and when receiving a backspace command, backspaces based on the recorded block length information and the number of blocks to be backspaced. This system calculates exponent distance or time, and executes a magnetic tape backspace command based on the calculation result.

〔作 用〕[For production]

本発明においては、ブロックの長さ情報を予め記録する
ことにより、バックスペース命令によってバックスペー
スすべきブロック数とこのブロック長より磁気テープ装
置の移動すべき距離/時間を演算することが可能となる
In the present invention, by recording block length information in advance, it is possible to calculate the number of blocks to be backspaced by a backspace command and the distance/time the magnetic tape device should move from this block length. .

従って、磁気テープをこの演算結果を使用して移動させ
ることにより、−度の磁気テープの移動によってバック
スペース命令により指示されたブロックの先頭に位置付
けすることが可能となる。
Therefore, by moving the magnetic tape using this calculation result, it becomes possible to position the block at the beginning of the block specified by the backspace command by moving the magnetic tape by - degrees.

この結果、バックスペース命令の実行が従来に比較して
高速化される。
As a result, the backspace instruction can be executed faster than in the past.

〔実施例〕〔Example〕

第1図は、本発明の磁気テープ上のデータフォーマット
を説明するための図である。
FIG. 1 is a diagram for explaining the data format on the magnetic tape of the present invention.

図において、1はID部、2はデータ部、3はブロック
、4はIBGをそれぞれ示す。
In the figure, 1 indicates an ID section, 2 indicates a data section, 3 indicates a block, and 4 indicates an IBG.

ブロック3は、図に示すように固定長のID部1と、デ
ータ部2よりなり、各ブロック間は固定長のI BC,
4により分割されている。
As shown in the figure, block 3 consists of a fixed-length ID section 1 and a data section 2, and between each block there is a fixed-length IBC,
It is divided by 4.

ID部1には、ブロック識別、制御情報であるデータ部
2のバイト数と、当該ブロック3のブロック番号が記録
されている。
In the ID section 1, block identification, the number of bytes of the data section 2 which is control information, and the block number of the block 3 are recorded.

このようなブロックは、磁気テープの長手方向に固定長
のIBGで分割されて記録されている。
Such blocks are recorded by being divided into fixed-length IBGs in the longitudinal direction of the magnetic tape.

このような磁気テープ上のデータフォーマットを基に以
下に本発明の詳細な説明する。
The present invention will be described in detail below based on the data format on the magnetic tape.

第2図は、本発明の磁気テープ装置の動作を説明するた
めの図である。
FIG. 2 is a diagram for explaining the operation of the magnetic tape device of the present invention.

3は第1図で説明したブロックと同様のブロックを示し
、磁気テープの長手方向に所定のIBGの間隔を開けて
記録されているものとする。
3 indicates a block similar to the block explained in FIG. 1, and is assumed to be recorded at predetermined IBG intervals in the longitudinal direction of the magnetic tape.

そして磁気ヘッドは、n+4とn+5のブロックの間の
IBGよりn+5のブロックに対する処理を終了して現
在ブロック3のn+5の後方のIBGに位置(n+6の
先頭に位置付けられている)して停止しているものとす
る。
Then, the magnetic head finishes processing the block n+5 from the IBG between blocks n+4 and n+5, and stops at the current position at the IBG behind n+5 of block 3 (positioned at the beginning of n+6). It is assumed that there is

そして現在はn+6のブロックの先頭に位置付けられて
いることを磁気テープ装置は認識記憶している。
The magnetic tape device recognizes and stores that it is currently positioned at the beginning of block n+6.

この状態で、磁気テープ装置が接続されている上位装置
から6ブロツクのバックスペース命令を受信したとする
Assume that in this state, a 6-block backspace command is received from the host device to which the magnetic tape device is connected.

その場合、実際に磁気ヘッドの位置付けられる位置は、
ブロックn−1とnの間(ブロックnのに位置付ける)
のIBGに位置付ける必要がある。
In that case, the actual position of the magnetic head is
Between blocks n-1 and n (located at block n)
It is necessary to position it as an IBG.

後述するように、磁気テープ装置内部には、磁気テープ
上の1つのブロックの長さを、ブロック3のID部より
認識してデータ部のデータバイト数と他の固定定数より
演算して記憶されている。
As will be described later, inside the magnetic tape device, the length of one block on the magnetic tape is recognized from the ID section of block 3, calculated from the number of data bytes in the data section and other fixed constants, and stored. ing.

従って、この長さ情報より実際に磁気テープをバックス
ペースすべき距離または時間を算出し、バックスペース
動作に入る。
Therefore, the distance or time to actually backspace the magnetic tape is calculated from this length information, and the backspace operation is started.

このバックスペース動作は、実際に命令で受けたブロッ
ク数にプラス1したブロック数に相当する距離または時
間だけバックスペース動作を行う。
This backspace operation is performed for a distance or time corresponding to the number of blocks actually received by the command plus one.

即ち、磁気テープを逆方向に走行させて図に示すように
n−1のブロックの先頭まで進め、その後順方向に磁気
テープを駆動してn−1のブロックの読み取りを行って
ブロック番号の認識を行い、先に認識されていたブロッ
ク番号と比較し、バックスペース命令で指示されたブロ
ックの手前のブロックであることを確認してn−1とn
の間のIBGに停止し、バックスペース命令によるブロ
ック位置付けを完了する。
That is, the magnetic tape is run in the reverse direction until it reaches the beginning of block n-1 as shown in the figure, and then the magnetic tape is driven in the forward direction to read block n-1 and recognize the block number. , compare it with the previously recognized block number, confirm that it is the block before the block specified by the backspace command, and select n-1 and n.
It stops at the IBG in between and completes the block positioning by the backspace instruction.

このように、本発明においては、バックスペース命令の
実行を一度の磁気テープのバックスペース動作のみで実
行可能となるため、従来に比較して単時間に完了するこ
とが出来る。
As described above, in the present invention, the backspace command can be executed by only one backspace operation on the magnetic tape, and therefore can be completed in a shorter time than in the past.

次に第3図により、磁気テープ上のブロック長の記憶お
よび演算方法について説明する。
Next, with reference to FIG. 3, a method for storing and calculating block lengths on a magnetic tape will be explained.

一つのブロックは、ID部の長さと、データ部の長さお
よび、IBGの長さで記憶しておけば、これをブロック
数で掛けると移動すべき磁気テープの距離または時間が
判断出来る。
If one block is stored as 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 these by the number of blocks.

先ず、ID部の長さdおよびIBG4の長さCは、常に
固定長であるので、予め定数として設定出来る。
First, the length d of the ID section and the length C of the IBG4 are always fixed lengths, so they can be set in advance as constants.

データ部2の長さは、ファイル単位でバイト数が変化す
ること、およびデータの記録密度により変化するため、
ID部1に記録されたデータ部2のバイト数を記録密度
で割ることにより算出できる。
The length of the data section 2 varies depending on the number of bytes for each file and the recording density of the data.
It can be calculated by dividing the number of bytes of the data section 2 recorded in the ID section 1 by the recording density.

即ち、記録密度をaとし、データ部のバイト数をdとす
ると、データ部の長さは、d / aで算出できる。
That is, when the recording density is a and the number of bytes of the data section is d, the length of the data section can be calculated as d/a.

従って、1つのブロックの長さしは、 L = d / a + b + c となる。Therefore, the length of one block is L = d / a + b + c becomes.

従って、このブロックの長さしをレジスタ等に記憶して
おくことにより、第2図で説明した動作を達成すること
が出来る。
Therefore, by storing the length of this block in a register or the like, the operation described in FIG. 2 can be achieved.

次に第4図乃至第6図により、第2図で説明したバック
スペース動作を実行するための実施例を説明する。
Next, an embodiment for executing the backspace operation described in FIG. 2 will be described with reference to FIGS. 4 to 6.

第4図は、本発明が実施される磁気テープ装置の位置実
施例構成を説明する図である。
FIG. 4 is a diagram illustrating an example configuration of a magnetic tape device in which the present invention is implemented.

10はインタフェースレジスタであり、図示されない上
位装置とのデータの送受信および、命令の受付けおよび
、処理の完了を上位装置に通知するためのものである。
Reference numeral 10 denotes an interface register, which is used for transmitting and receiving data with a host device (not shown), accepting instructions, and notifying the host device of completion of processing.

11はマイクロプロセッサで、磁気テープ装置全体の制
御をおこなう。
A microprocessor 11 controls the entire magnetic tape device.

12は、テープ走行制御用の外部レジスタであり、磁気
テープの走行を制御するための制御情報をマイクロプロ
セッサ11より送出するためのものである。
Reference numeral 12 denotes an external register for tape running control, which is used to send control information from the microprocessor 11 to control the running of the magnetic tape.

13は記録すべきデータを後述するフォーマツタ21の
制御をもとに、インタフェースレジスタ10内に設けら
れている図示されないバッファを介して一種のDMA転
送によりデータが送出される外部レジスタで、マイクロ
プロセッサの制御によりデータがセットされる。
Reference numeral 13 denotes an external register to which data to be recorded is sent by a type of DMA transfer via a buffer (not shown) provided in the interface register 10 under the control of a formatter 21, which will be described later. Data is set by control.

14はデータを取込み上位装置に転送するための外部レ
ジスタであり、磁気テープより再生された再生データを
マイクロプロセッサ側に取り込むためのものである。
Reference numeral 14 denotes an external register for taking in data and transferring it to the host device, and is used to take in reproduced data reproduced from the magnetic tape into the microprocessor side.

15はテープ走行制御回路であり、外部レジスタ12か
らの制御に基づいて磁気テープを走行制御するために、
リール18.19を駆動するための図示しないモータを
制御するためのものである。
15 is a tape running control circuit, which controls running of the magnetic tape based on control from the external register 12;
This is for controlling a motor (not shown) for driving the reels 18 and 19.

16は、外部レジスタ13より送られてくる記録データ
を所定の規則により変調して磁気ヘッド20に送り、磁
気テープ上にデータを記録するための記録回路である。
A recording circuit 16 modulates the recording data sent from the external register 13 according to a predetermined rule and sends the modulated data to the magnetic head 20 to record the data on the magnetic tape.

17は、磁気テープより磁気ヘッド20により読出され
たデータを復調することにより磁気テープ上のデータを
再生するための再生回路である。
Reference numeral 17 denotes a reproducing circuit for reproducing data on the magnetic tape by demodulating data read from the magnetic tape by the magnetic head 20.

21は、磁気テープ上にデータを記録するためのフォー
マットを制御するとともに、再生されたデータを所定の
フォーマットに従って分離するためのフォーマツタであ
る。
A formatter 21 controls the format for recording data on the magnetic tape and separates reproduced data according to a predetermined format.

22はマイクロプロセッサ11から所定の値がセットさ
れ、その間の時間を計数することによりマイクロプロセ
ッサに割り込みをかけるためのタイマである。
A timer 22 is set with a predetermined value by the microprocessor 11, and is used to interrupt the microprocessor by counting the time during that time.

23はマイクロプロセッサ11を動作させるためのプロ
グラムが格納されてROMである。
23 is a ROM in which a program for operating the microprocessor 11 is stored.

24はマイクロプロセッサ11内に設けられたR A 
Mであり、この中には、各種の定数や、現在位置付けら
れているブロックの番号が記録されるものである。
24 is an R A provided in the microprocessor 11
M, in which various constants and the number of the currently positioned block are recorded.

その他、18は供給リール、19は巻き取りリール、2
0は記録/再生用の磁気ヘッドである。
In addition, 18 is a supply reel, 19 is a take-up reel, 2
0 is a magnetic head for recording/reproducing.

次に第5図および第6図により第4図の磁気テープ装置
の本発明に係る動作を説明する。
Next, the operation of the magnetic tape device shown in FIG. 4 according to the present invention will be explained with reference to FIGS. 5 and 6.

第3図は、本発明に係るブロック長記録動作を説明する
ための動作フローチャートである。
FIG. 3 is an operation flowchart for explaining the block length recording operation according to the present invention.

処理ステップ100 第4図に示す磁気テープ装置は、電源投入後所定の初期
化処理を行って動作可能状態となったことによりこのス
テップが開始される。
Processing Step 100 This step is started when the magnetic tape device shown in FIG. 4 performs a predetermined initialization process after turning on the power and becomes operational.

処理ステップ101 スタート後、最初は、インターフェースレジスタ10に
より上位装置からの命令の受信を受けるまでの間上位装
置からの命令の受信を続ける。
Processing Step 101 After the start, at first, the interface register 10 continues receiving instructions from the host device until the interface register 10 receives the command from the host device.

そして命令が受信されたことにより、次のステップに進
む。
Then, when the command is received, the process proceeds to the next step.

処理ステップ102 本ステップにおいては、受信された命令をマイクロプロ
セッサの中に取込み、受信された命令がどのような命令
であるかを解読する。
Processing Step 102 In this step, the received instruction is taken into the microprocessor and what kind of instruction the received instruction is is decoded.

この命令の解読は、ソフト的に行っても良く、また図示
されないデコーダを使用しても良い。
This instruction may be decoded using software, or a decoder (not shown) may be used.

処理ステップ103 本ステップは、処理ステップ102による命令解読の結
果、上位装置からの命令がどのような命令であるかを判
断し、次の処理ステップを決定するものである。
Processing step 103 In this step, as a result of the instruction decoding performed in processing step 102, it is determined what kind of instruction the command from the host device is, and the next processing step is determined.

即ち、命令がデータの記録/再生(リード/ライト命令
)であれば、処理ステップ105に進み、命令がバック
スペース命令であれば第6図に説明する処理ステップに
進み、その他の命令であれば処理ステップ104に進む
That is, if the command is a data recording/reproduction (read/write command), the process advances to step 105; if the command is a backspace command, the process advances to the process step illustrated in FIG. 6; if the command is any other command, the process advances to step 105. Proceed to processing step 104.

処理ステップ104 処理ステップ104は、本発明に関係しない部分の処理
であり、例えば、ファイルサーチ命令や、診断命令など
に対する処理であり、本発明には関係しない処理である
ので、単にその他の処理として説明を省略する。
Processing step 104 Processing step 104 is processing that is not related to the present invention, for example, processing for file search commands, diagnostic commands, etc. Since it is processing that is not related to the present invention, it is simply treated as other processing. The explanation will be omitted.

そしてこの処理を終了とすると、処理ステップ101に
戻る。
When this process ends, the process returns to step 101.

処理ステップ105 処理ステップ103によりリード/ライト命令であるこ
とが、判明すると、本ステップにおいては、マイクロプ
ロセッサにより外部レジスタ12に対して磁気テープを
走行させるための制御信号をセットし、テープ走行制御
回路15を駆動して磁気テープの走行を開始させる。
Processing step 105 When it is determined that the command is a read/write command in processing step 103, in this step, the microprocessor sets a control signal for running the magnetic tape in the external register 12, and the tape running control circuit 15 to start running the magnetic tape.

処理ステップ106 処理ステップ105により磁気テープの走行が開始され
、磁気テープが所定の速度になったことにより、磁気テ
ープに対するデータの記録/再生を行う。
Processing step 106 The running of the magnetic tape is started in processing step 105, and when the magnetic tape reaches a predetermined speed, data is recorded/reproduced on the magnetic tape.

即ち、データの記録である場合には、上位装置から転送
されてくるデータをフォーマツタ21の制御例えば第1
図で示した所定のブロックフォーマットにして外部レジ
スタ13を介して記録回路16に送り、所定の変調を行
って磁気ヘッド20により磁気テープにデータを記録す
る。
That is, in the case of data recording, the data transferred from the host device is controlled by the formatter 21, for example, the first
The data is converted into the predetermined block format shown in the figure and sent to the recording circuit 16 via the external register 13, subjected to predetermined modulation, and recorded on the magnetic tape by the magnetic head 20.

また、データの再生の場合には、磁気テープより磁気ヘ
ッド20を介して再生されるデータを再生回路19にて
復調した外部レジスタ14を介して受領するともに、フ
ォーマツタ21の制御により不必要な部分を取り除いて
所望のデータのみをインターフェースレジスタエ0を介
して上位装置に転送する。
In the case of data reproduction, the data reproduced from the magnetic tape via the magnetic head 20 is received via the external register 14 demodulated by the reproduction circuit 19, and unnecessary parts are removed by the control of the formatter 21. is removed and only the desired data is transferred to the host device via interface register 0.

そして、マイクロプロセッサ11上のRAM25に現在
磁気ヘッドが位置しているブロックの番号が記録される
Then, the number of the block in which the magnetic head is currently located is recorded in the RAM 25 on the microprocessor 11.

処理ステップ107 そしてこの処理ステップ10Gの動作を1つのブロック
終了まで続けられ、lのブロック記録/再生が終了した
時点で次のステップに進む。
Processing step 107 The operation of processing step 10G is continued until one block is completed, and when the block recording/reproducing of l is completed, the process proceeds to the next step.

処理ステップ108 処理ステップ108においては、記録/再生が行われた
当該ブロックにおけるブロック長の記録が行われる。
Processing step 108 In processing step 108, the block length of the block in question that has been recorded/reproduced is recorded.

即ち、1つのブロックに対する処理が終了した場合、当
然ブロック内のID部のデータはフォーマツタ21の制
御により判別されているため、このID部のデータが、
マイクロプロセッサ11に取り込まれ、第3図で説明し
たID部1にあるデータ部2のバイト数dが判断出来る
That is, when the processing for one block is completed, the data in the ID part in the block is naturally determined under the control of the formatter 21, so the data in the ID part is
The data is taken into the microprocessor 11 and the number of bytes d in the data section 2 in the ID section 1 explained in FIG. 3 can be determined.

そして、すでに固定長として認識されて、RAM25上
に記録された、IBG長c、ID長すおよび記録密度a
より第3図で説明したよ・うに、ブロック長しが下記の
演算式により演算され、マイクロプロセッサ11内に設
けられたブロック長レジスタ24に格納される。
Then, the IBG length c, ID length and recording density a are already recognized as fixed lengths and recorded on the RAM 25.
As explained with reference to FIG. 3, the block length is calculated using the following formula and stored in the block length register 24 provided within the microprocessor 11.

L = d / a 十b + c 処理ステップ109 そして本ステップにおいては、命令により受信されたり
−ド/ライト命令の全ブロックが終了したかを判定し、
終了するまでの間、処理ステップ106から本ステップ
までを繰り返し、全ブロックのデータの記録/再生が終
了すると次のステップに進む。
L = d / a + b + c Processing step 109 In this step, it is determined whether all blocks of received or read/write commands have been completed,
Until the process is completed, processing from step 106 to this step is repeated, and when data recording/reproduction of all blocks is completed, the process proceeds to the next step.

処理ステップ110 このステップに来ると、処理が終了するため、また処理
ステップ100に戻る。
Processing Step 110 When this step is reached, the processing ends, so the process returns to processing step 100 again.

以上が、ブロック長を記憶するための動作である。The above is the operation for storing the block length.

尚、上記の説明では、リード/ライト時のみブロック長
を記憶するということで説明したが、例えば、ファイル
サーチ命令などを実行する場合にも、ブロックのID部
の読み取りが行われるためブロック長を記憶することが
可能であり、上記と同様の処理をファイルサーチ命令実
行時に行うことも可能である。
Note that in the above explanation, the block length is stored only when reading/writing, but when executing a file search command, for example, the block length is also stored because the ID part of the block is read. It is possible to store the information, and it is also possible to perform processing similar to the above when executing a file search command.

また、上記ステップにおいては、−度の命令で複数ブロ
ックのデータの記録/再生を行う場合に各ブロックに記
録/再生終了時点において、ブロック長レジスタ24の
更新が行われたが、一般には、ブロック長は、一つのフ
ァイルの中では変化せず、−度の命令においては、一つ
のファイル内のブロックに対する記録/再生しか行われ
ないので、一つの記録/再生命令に対して一度のプロ・
ソチ長レジスタの記録、更新のみでも良い。
In addition, in the above step, when recording/reproducing data in multiple blocks with a -degree instruction, the block length register 24 is updated at the end of recording/reproducing data in each block. The length does not change within one file, and in a -degree instruction, only recording/playback is performed for a block within one file, so one pro
It is also possible to just record and update the Sochi length register.

その場合は、処理ステップ10日は一度のみ通過し、そ
の後はスキップして処理するようにすれば良い。
In that case, the processing step 10 days may be passed through only once, and thereafter the processing may be skipped.

次に第6図により本発明に係るバックスペース命令実行
の動作をフローチャートを使用して説明する。
Next, referring to FIG. 6, the operation of executing a backspace instruction according to the present invention will be explained using a flowchart.

このフローチャートは、第5図における上位装置からの
命令解読の結果バックスペース命令があることが判明し
た場合に実行される。
This flowchart is executed when it is found that there is a backspace instruction as a result of decoding the instruction from the host device in FIG.

処理ステップ111 バックスペース命令であることが判明した場合には、ま
ずいくつのブロックだけバックスペースするかをインタ
ーフェースレジスタ10に格納されたデータより認識す
る。
Processing Step 111 If it is determined that it is a backspace instruction, first, it is recognized from the data stored in the interface register 10 how many blocks are to be backspaced.

第2図の例を使用して説明すると、この場合には6ブロ
ツクとなる。
To explain using the example of FIG. 2, in this case there are 6 blocks.

処理ステップ112 次に先にブロック長レジスタ24に格納されたブロック
長を読み出す。
Processing step 112 Next, the block length previously stored in the block length register 24 is read.

処理ステップ113 次に処理ステップ112および、113にて得られたバ
ックスペースすべきブロック数および1つのブロック長
よりバックスペースするに必要な磁気テープの走行距離
を計算する。
Processing step 113 Next, the running distance of the magnetic tape required for backspace is calculated from the number of blocks to be backspaced and the length of one block obtained in processing steps 112 and 113.

即ち、第2図のでは、バックスペース数が6でブロック
長しであるため、 走行距離Mは、M=LX (6+1)となる。
That is, in FIG. 2, since the number of backspaces is 6 and the block length is long, the traveling distance M is M=LX (6+1).

尚、バックスペース数に+1するのは、第2図で説明し
た理由による。
Note that the reason for adding 1 to the backspace number is for the reason explained in FIG.

そして計算された走行距離Mはマイクロプロセッサ11
内のRAMに一旦格納される。
The calculated mileage M is calculated by the microprocessor 11.
The data is temporarily stored in the internal RAM.

処理ステップ114 次に処理ステップ113で算出した必要走行距離を磁気
テープの走行時間に変換する。
Processing step 114 Next, the required running distance calculated in processing step 113 is converted into a running time of the magnetic tape.

即ち、第4図の磁気テープ装置は、リールの駆動モータ
でのみ磁気テープを駆動しているため、走行距離が正確
に掴めないため、本実施例では、走行距離で制御せずに
時間で制御する。
That is, in the magnetic tape device shown in FIG. 4, since the magnetic tape is driven only by the reel drive motor, the traveling distance cannot be determined accurately. Therefore, in this embodiment, the control is not controlled by the traveling distance but by time. do.

但し、磁気テープ装置がキャプスタンなどで駆動される
場合には正確な磁気テープの走行距離が分かるため、処
理ステップ114で得られた値をそのまま使用できる。
However, if the magnetic tape device is driven by a capstan or the like, the exact traveling distance of the magnetic tape can be known, so the value obtained in processing step 114 can be used as is.

ここでは、磁気テープ装置の走行速度が予め分かってい
る。
Here, the running speed of the magnetic tape device is known in advance.

即ち磁気テープの走行速度がN(インチ)7秒であるあ
るとすると、 先のステップで記憶されているテープ走行距離M(イン
チ)をこのN(インチ)で割ることにより走行時間が決
定される。
In other words, assuming that the running speed of the magnetic tape is N (inch) 7 seconds, the running time is determined by dividing the tape running distance M (inch) stored in the previous step by this N (inch). .

処理ステップ115 処理ステップ114にて算出された時間をタイマ22に
セットする。
Processing step 115 The time calculated in processing step 114 is set in the timer 22.

処理ステップ116 そしてマイクロプロセッサ11は、外部レジスタ12に
対して制御信号を発して、テープ走行制御回路15によ
りリール18.19の図示しないモータを駆動して磁気
テープを逆方向に移動を開始させるとともにタイマ22
をスタートさせる。
Processing step 116 Then, the microprocessor 11 issues a control signal to the external register 12, and causes the tape running control circuit 15 to drive the motor (not shown) of the reel 18, 19 to start moving the magnetic tape in the reverse direction. timer 22
Start.

処理ステップ117 本処理ステップにおいては、タイマ22によるタイムア
ウトが検出されるまでの間ループし、タイムアウトが検
出されたことにより次のステップに進む。
Processing step 117 In this processing step, the process loops until a timeout is detected by the timer 22, and when the timeout is detected, the process proceeds to the next step.

処理ステップ118 本ステップに入った時点においては、第2図において、
n−1の前のIBGまで磁気テープが進んでいるため、
この時点でマイクロプロセッサ11は、外部レジスタ1
2に対して制御信号を発してテープ走行制御回路15に
よりリール18,19の図示しないモータを駆動して磁
気テープを今度は順方向に移動を開始させる。
Processing step 118 At the time of entering this step, in FIG.
Because the magnetic tape has advanced to the IBG in front of n-1,
At this point, the microprocessor 11 registers the external register 1.
2, the tape running control circuit 15 drives the motors (not shown) of the reels 18 and 19 to start moving the magnetic tape in the forward direction.

処理ステップ119 そして、このステップにより、磁気テープから磁気ヘッ
ド20および再生回路を介してフォーマツタ21の制御
により第2図におけるn−1のブロックのID部を外部
レジスタ14を介して読み取り、そして読み取られたブ
ロック番号を先にマイクロプロセッサ11のRAM25
内に記録されていたバックスペース開始時点のブロック
のID番号と比較し、バックスペース命令で位置付ける
ためのブロックの一つ前のブロックであるかを確認する
Processing step 119 Then, in this step, the ID part of the block n-1 in FIG. The block number is stored in the RAM 25 of the microprocessor 11 first.
It is compared with the ID number of the block recorded at the start of backspace to confirm whether it is the block immediately before the block to be positioned by the backspace command.

処理ステップ120 処理ステップ119によるブロック番号の確認により、
n−1が確認されたことにより、次のIBGの地点で停
止すれば、所望のブロックであるnの前のIBGであり
、この時点で外部レジスタ12を介してテープ走行制御
回路15により磁気テープの走行を停止させる。
Processing step 120 By checking the block number in processing step 119,
If n-1 is confirmed, if the next IBG is stopped, it is the IBG before the desired block n, and at this point, the magnetic tape is controlled by the tape running control circuit 15 via the external register 12. stop running.

処理ステップ121 そしてこの状態で、バックスペース命令の実行が完了し
、そしてインターフェースレジスタ10を介して実行完
了を上位装置に方向して処理が終了する。
Processing Step 121 In this state, the execution of the backspace instruction is completed, and the execution completion is transmitted to the higher-level device via the interface register 10, and the processing ends.

〔効  果〕〔effect〕

以上のように本発明によれば、バックスペース命令の実
行をブロック長を記憶して、このブロックを基づいてバ
ックスペースすべき距離または時間を算出して、磁気テ
ープを走行させているため従来に比較して単時間でバッ
クスペース動作によるブロックの位置付けが完了出来る
As described above, according to the present invention, the execution of the backspace command is performed by storing the block length, calculating the distance or time to backspace based on this block, and running the magnetic tape. In comparison, block positioning by backspace operation can be completed in a short time.

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

第1図は本発明の磁気テープ上のデータフォーマットを
説明する図、 第2図は本発明の磁気テープ装置の動作を説明する図、 第3図は本発明の磁気テープブロック長を説明する図、 第4図は本発明に係る磁気テープ装置の一実施例構成図
、 第5図は本発明に係るブロック長記録動作フローチャー
ト、 第6図は本発明に係るバックスペース命令実行フローチ
ャート、 をそれぞれ示す。 さらに図において、 1はID部、2はデータ部、3はブロック、4はIBG
、11は、マイクロプロセッサ、24はブロック長レジ
スタをそれぞれ示す。 多″ 木Aむ明の&気テーフ′上0テ″−y7オー2・ノド“
才2g廼IJII t30yL目 ロロロロロロロ肖〜3 フ1シ吻ど叩つ石1令i〒−7°4モ?ボtの劫イ’E
、tEit萌邦閂第11A
FIG. 1 is a diagram for explaining the data format on the magnetic tape of the present invention. FIG. 2 is a diagram for explaining the operation of the magnetic tape device of the present invention. FIG. 3 is a diagram for explaining the magnetic tape block length 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 block length recording operation flowchart according to the present invention, and FIG. 6 is a backspace instruction execution flowchart according to the present invention. . Furthermore, in the figure, 1 is the ID section, 2 is the data section, 3 is the block, and 4 is the IBG.
, 11 is a microprocessor, and 24 is a block length register. Multi'' wood Amu Ming no & Ki Tefu 'upper 0 te''-y7 Oh 2 Nod''
Sai 2g 廼IJII t30yL 目RororororororoPorta ~ 3 Fu 1 shi smacking stone 1 age i〒-7°4mo? Bot no Koi'E
, tEit Moebunan No. 11A

Claims (3)

【特許請求の範囲】[Claims] (1)磁気テープ上にブロック単位でデータを記録する
磁気テープ装置であって、 磁気テープ装置にブロックの長さ情報を記憶し、バック
スペース命令受信時に、当該記録されたブロックの長さ
情報とバックスペースすべきブロック数よりバックスペ
ースすべき距離または時間を演算し、 該演算結果をもとに磁気テープのバックスペース命令を
実行するようにしたことを特徴とする磁気テープ装置に
おけるブロック位置付け制御方法。
(1) A magnetic tape device that records data in blocks on a magnetic tape, stores block length information in the magnetic tape device, and when a backspace command is received, the recorded block length information and A block positioning control method in a magnetic tape device, characterized in that the distance or time to be backspaced is calculated from the number of blocks to be backspaced, and a magnetic tape backspace command is executed based on the calculation result. .
(2)前記ブロックの長さ情報の記憶は、磁気テープ装
置がデータの記録/再生および、ファイルサーチ命令を
実行している時に行うことを特徴とする特許請求の範囲
第1項記載の磁気テープ装置におけるブロック位置付け
制御方法。
(2) The magnetic tape according to claim 1, wherein the block length information is stored when the magnetic tape device is recording/reproducing data and executing a file search command. A method for controlling block positioning in a device.
(3)前記ブロックは、ID部とデータ部より構成され
、該ID部は少なくともブロック番号と該データ部のバ
イト数が記録されて構成されていることを特徴とする特
許請求の範囲第1項記載の磁気テープ装置におけるブロ
ック位置付け制御方法。
(3) The block is composed of an ID section and a data section, and the ID section is configured such that at least a block number and the number of bytes of the data section are recorded. Block positioning control method in the described magnetic tape device.
JP62333138A 1987-12-25 1987-12-25 Block positioning control method in magnetic tape device Expired - Lifetime JPH0743852B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62333138A JPH0743852B2 (en) 1987-12-25 1987-12-25 Block positioning control method in magnetic tape device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62333138A JPH0743852B2 (en) 1987-12-25 1987-12-25 Block positioning control method in magnetic tape device

Publications (2)

Publication Number Publication Date
JPH01171145A true JPH01171145A (en) 1989-07-06
JPH0743852B2 JPH0743852B2 (en) 1995-05-15

Family

ID=18262714

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62333138A Expired - Lifetime JPH0743852B2 (en) 1987-12-25 1987-12-25 Block positioning control method in magnetic tape device

Country Status (1)

Country Link
JP (1) JPH0743852B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6057973A (en) * 1997-10-15 2000-05-02 Bar; Refael Method of seeking to tape segment without the use of inter-segment gap

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6057973A (en) * 1997-10-15 2000-05-02 Bar; Refael Method of seeking to tape segment without the use of inter-segment gap

Also Published As

Publication number Publication date
JPH0743852B2 (en) 1995-05-15

Similar Documents

Publication Publication Date Title
EP2328144B1 (en) Device and method for writing data in tape media
JP5065203B2 (en) Apparatus and method for converting data format
JPH01171145A (en) Block positioning control method for magnetic tape device
US6525894B1 (en) Tape drive apparatus and method for mounting a volume from a tape medium
JP2003272311A (en) Recording medium, method of recording, and recorder
JP2625796B2 (en) Magnetic tape unit
US5323276A (en) Error removal method for a multi-track tape recorder system
US5363253A (en) Tape drive fast seek to end-of-track
JP2538295B2 (en) Rotating head type tape recorder data recording / reproducing method
JP2884566B2 (en) Video signal recording device
JP2619131B2 (en) Tape initialization method
JP2797991B2 (en) Data retrieval system and data retrieval device for cartridge magnetic tape
JP3815635B2 (en) Initialization method of recording medium
JPH02123569A (en) Magnetic tape and data recording system using the same
JPH0721945B2 (en) Data error processing method in magnetic tape device
JPH04332990A (en) Method for adding partition to dat for data storage
JP2741943B2 (en) Data recording device
JPH053610B2 (en)
JP2624172B2 (en) Magnetic tape processing device
JP3068811B2 (en) Method of controlling storage device
JPH0626964Y2 (en) Magnetic tape device
JP2941045B2 (en) Digital audio tape recorder controller
JPH0834044B2 (en) Helical scan type magnetic tape storage device
JPS645364B2 (en)
JPH0528716A (en) Transferred information recorder using magnetic tape and recorded information reproducing device using magnetic tape

Legal Events

Date Code Title Description
S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081017

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091017

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 6

Free format text: PAYMENT UNTIL: 20091017

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20101017

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 7

Free format text: PAYMENT UNTIL: 20101017

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20111017

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121017

Year of fee payment: 9

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131017

Year of fee payment: 10