Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0743852B2 - Block positioning control method in magnetic tape device - Google Patents
[go: Go Back, main page]

JPH0743852B2 - Block positioning control method in magnetic tape device - Google Patents

Block positioning control method in magnetic tape device

Info

Publication number
JPH0743852B2
JPH0743852B2 JP62333138A JP33313887A JPH0743852B2 JP H0743852 B2 JPH0743852 B2 JP H0743852B2 JP 62333138 A JP62333138 A JP 62333138A JP 33313887 A JP33313887 A JP 33313887A JP H0743852 B2 JPH0743852 B2 JP H0743852B2
Authority
JP
Japan
Prior art keywords
magnetic tape
block
backspace
data
tape device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP62333138A
Other languages
Japanese (ja)
Other versions
JPH01171145A (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 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

Landscapes

  • Digital Magnetic Recording (AREA)

Description

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

〔発明の利用分野〕[Field of Use of 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 block positioning control method in a magnetic tape device that records information in blocks.

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

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

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

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

〔従来の技術〕[Conventional technology]

上記したようなバックスペース命令を実行するために従
来は、下記の方法が採られてる。
Conventionally, the following method has been adopted to execute the backspace instruction as described above.

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

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

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

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

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

本発明上記の問題を解決し、単時間でバックスペース命
令に対する磁気テープのブロック位置付け制御を行うこ
とを目的とする。
An object of the present invention is to solve the above problems and perform block positioning control of a magnetic tape in response to a backspace instruction 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 a backspace command is received, the backspace is set based on the recorded block length information and the number of blocks to be backspaced. The power distance or time is calculated, and the backspace command of the magnetic tape is executed based on the calculation result.

〔作 用〕[Work]

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

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

この結果、バックスペース命令の実行が従来に比較して
高速化される。
As a result, the execution of the backspace instruction is accelerated as compared with the conventional case.

〔実施例〕〔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 is an ID part, 2 is a data part, 3 is a block,
4 shows IBG, respectively.

ブロック3は、図に示すように固定長のID部1と、デー
タ部2よりなり、各ブロック間は固定長のIBG4により分
割されている。
The block 3 is composed of a fixed length ID part 1 and a data part 2 as shown in the figure, and each block is divided by a fixed length IBG4.

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

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

このような磁気テープ上のデータフオーマットを基に以
下に本発明の動作を説明する。
The operation of the present invention will be described 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の間隔を開けて
記録されているものとする。
Reference numeral 3 denotes a block similar to the block described with reference to FIG. 1, which is assumed to be recorded with a predetermined IBG interval in the longitudinal direction of the magnetic tape.

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

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

この状態で、磁気テープ装置が接続されている上位装置
から6ブロックのバックスペース命令を受信したとす
る。
In this state, it is assumed that a backspace command of 6 blocks 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 (positioned in block n)
Need to be positioned in IBG.

後述するように、磁気テープ装置内部には、磁気テープ
上の1つのブロックの長さを、ブロック3のID部より認
識してデータ部のデータバイト数と他の固定定数より演
算して記憶されている。
As will be described later, the length of one block on the magnetic tape is recognized in the magnetic tape device by the ID part of the block 3, calculated from the number of data bytes in the data part 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したブロック数に相当する距離または時
間だけバックスペース動作を行う。
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.

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

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

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

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

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

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

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

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

従って、このブロックの長さLをレジスタ等に記憶して
おくことにより、第2図で説明した動作を達成すること
が出来る。
Therefore, by storing the length L 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図は、本発明が実施される磁気テープ装置の位置実
施例構成を説明する図である。
FIG. 4 is a diagram for explaining the configuration of the position embodiment of the magnetic tape device according to the present invention.

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

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

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

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

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

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

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

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

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

22はマイクロプロセッサ11から所定の値がセットされ、
その間の時間を計算することによりマイクロプロセッサ
に割り込みをかけるためのタイマである。
22 is set a predetermined value from the microprocessor 11,
It is a timer for interrupting the microprocessor by calculating the time between them.

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

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

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

次に第5図および第6図により第4図の磁気テープ装置
の本発明に係る動作を説明する。
Next, the operation of the magnetic tape device of FIG. 4 according to the present invention will be described 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 is brought into an operable state by performing a predetermined initialization process after the power is turned on.

処理ステップ101 スタート後、最初は、インターフエースレジスタ10によ
り上位装置からの命令の受信を受けるまでの間上位装置
からの命令の受信を続ける。
After the processing step 101 is started, the interface register 10 continues to receive the command from the host device until the interface register 10 receives the command from the host device.

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

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

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

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

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

処理ステップ104 処理ステップ104は、本発明に関係しない部分の処理で
あり、例えば、フアイルサーチ命令や、診断命令などに
対する処理であり、本発明には関係しない処理であるの
で、単にその他の処理として説明を省略する。
Process step 104 Process step 104 is a process of a part that is not related to the present invention, for example, a process for a file search command, a diagnostic command, etc., and is a process that is not related to the present invention. The description is omitted.

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

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

処理ステップ106 処理ステップ105により磁気テープの走行が開始され、
磁気テープが所定の速度になったことにより、磁気テー
プに対するデータの記録/再生を行う。
Process step 106 The magnetic tape is started to travel by process step 105,
When the magnetic tape reaches a predetermined speed, data recording / reproduction is performed 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 predetermined block format shown in FIG. 1 is sent to the recording circuit 16 via the external register 13, And the data is recorded on the magnetic tape by the magnetic head 20.

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

そして、マイクロプロセッサ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 そしてこの処理ステップ106の動作を1つのブロック終
了まで続けられ、1のブロック記録/再生が終了した時
点で次のステップに進む。
Processing step 107 Then, the operation of this processing step 106 is continued until the end of one block, and when the recording / reproducing of one block is completed, the process proceeds to the next step.

処理ステップ108 処理ステップ108においては、記録/再生が行われた当
該ブロックにおけるブロック長の記録が行われる。
Processing Step 108 In processing step 108, the block length of the block 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 of the ID part in the block is naturally discriminated by the control of the formatter 21, so the data of this ID part is fetched by the microprocessor 11 and is shown in FIG. ID part 1 explained
It is possible to determine the number of bytes d of the data part 2 in

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

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

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

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

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

また、上記ステップにおいては、一度の命令で複数ブロ
ックのテータの記録/再生を行う場合に各ブロックに記
録/再生終了時点において、ブロック長レジスタ24の更
新が行われたが、一般には、ブロック長は、一つのフア
イルの中では変化せず、一度の命令においては、一つの
フアイル内のブロックに対する記録/再生しか行われな
いので、一つの記録/再生命令に対して一度のブロッチ
長レジスタの記録,更新のみでも良い。
In the above steps, when recording / reproducing data of a plurality of blocks with one command, the block length register 24 is updated at the end of recording / reproducing in each block. Does not change in one file, and recording / playback is performed only for blocks in one file in one command, so recording of the blotch length register once for one recording / playback command. , Renewal only is acceptable.

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

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

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

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

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

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

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

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

尚、バックスペース数に+1するのは、第2図で説明し
た理由による。
The number of backspaces is incremented by 1 for the reason described in FIG.

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

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

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

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

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

即ち磁気テープの走行速度がN(インチ)/秒であるあ
るとすると、 先のステップで記憶されているテープ走行距離M(イン
チ)をこのN(インチ)で割ることにより走行時間が決
定される。
That is, assuming that the running speed of the magnetic tape is N (inch) / second, 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にセッ
トする。
Process step 115 The time calculated in process 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 to drive the motor (not shown) of the reels 18 and 19 by the tape running control circuit 15 to start moving the magnetic tape in the reverse direction. Start timer 22.

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

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

処理ステップ119 そして、このステップにより、磁気テープから磁気ヘッ
ド20および再生回路を介してフオーマッタ21の制御によ
り第2図におけるn−1のブロックのID部を外部レジス
タ14を介して読み取り、そして読み取られたブロック番
号を先にマイクロプロセッサ11のRAM25内に記録されて
いたバックスペース開始時点のブロックのID番号と比較
し、バックスペース命令で位置付けるためのブロックの
一つ前のブロックであるかを確認する。
Processing step 119 Then, in this step, the ID section of the block n-1 in FIG. 2 is read from the magnetic tape via the magnetic head 20 and the reproducing circuit by the control of the formatter 21, and is read. The block number that was previously recorded in the RAM 25 of the microprocessor 11 is compared with the ID number of the block at the time of starting the backspace, and it is confirmed whether the block is one block before the block to be positioned by the backspace instruction. .

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

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

〔効果〕〔effect〕

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

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

第1図は本発明の磁気テープ上のデータフオーマットを
説明する図、 第2図は本発明の磁気テープ装置の動作を説明する図、 第3図は本発明の磁気テープブロック長を説明する図、 第4図は本発明に係るテープ装置の一実施例構成図、 第5図は本発明に係るブロック長記録動作フローチャー
ト、 第6図は本発明に係るバックスペース命令実行フローチ
ャート、 をそれそれ示す。 さらに図において、 1はID部、2はデータ部、3はブロック、4はIBG、11
は、マイクロプロセッサ、24はブロック長レジスタをそ
れぞれ示す。
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, and FIG. 3 is a diagram for explaining the magnetic tape block length of the present invention. FIG. 4 is a block diagram of an embodiment of a 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. . Further, in the figure, 1 is an ID part, 2 is a data part, 3 is a block, 4 is an IBG, 11
Indicates a microprocessor, and 24 indicates a block length register.

Claims (3)

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

Families Citing this family (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
JPH01171145A (en) 1989-07-06

Similar Documents

Publication Publication Date Title
KR20100084625A (en) Method for controlling write on magnetic and magnetic tape device for executing the method
JP2627498B2 (en) Video signal recording device
JPH0743852B2 (en) Block positioning control method in magnetic tape device
JP2625796B2 (en) Magnetic tape unit
US5323276A (en) Error removal method for a multi-track tape recorder system
JP2550018B2 (en) Recording and playback device
JPH0845182A (en) Magnetic tape device and recording method
JP2624172B2 (en) Magnetic tape processing device
JPH0749664Y2 (en) Audio file device
JP2941045B2 (en) Digital audio tape recorder controller
JPH0626964Y2 (en) Magnetic tape device
JPH0721945B2 (en) Data error processing method in magnetic tape device
JPH0614277Y2 (en) Magnetic recording / reproducing device
JP2921134B2 (en) Signal recording device and signal reproducing device
JP2976988B2 (en) Signal recording device
JPS601670A (en) Data recording method and data recorder used for said recording method
JPS60207938A (en) Magnetic tape device and its accessing method
JPH04332990A (en) Method for adding partition to dat for data storage
JP2001006274A (en) Tape streamer
JPH0770200B2 (en) Playback device
JPS6292105A (en) Magnetic tape recording method
JPH0242669A (en) Recording end edge retrieving device for digital audio tape recorder
JPH02130743A (en) Data recorder
JPH02310843A (en) Recording method for rotary head type digital recording and reproducing device
JPH05135432A (en) Magnetic tape, program searching device and program searching method