JP3456530B2 - Magnetic tape processing device - Google Patents
Magnetic tape processing deviceInfo
- Publication number
- JP3456530B2 JP3456530B2 JP2000232895A JP2000232895A JP3456530B2 JP 3456530 B2 JP3456530 B2 JP 3456530B2 JP 2000232895 A JP2000232895 A JP 2000232895A JP 2000232895 A JP2000232895 A JP 2000232895A JP 3456530 B2 JP3456530 B2 JP 3456530B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- magnetic tape
- read
- write
- sector number
- 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
Links
- 238000000034 method Methods 0.000 description 47
- 238000010586 diagram Methods 0.000 description 7
- 101100432135 Caenorhabditis elegans lap-2 gene Proteins 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、主として外部の上
位装置から送信される書込み又は読込みの命令に付加さ
れるブロック識別情報としてのパケット番号に基づいて
投入された磁気テープにおけるブロックの書込み又は読
込みの動作を行うブロック識別情報管理機能を有する磁
気テープ処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention mainly relates to writing or reading of a block in a magnetic tape which is input based on a packet number as block identification information added to a writing or reading command transmitted from an external host device. The present invention relates to a magnetic tape processing device having a block identification information management function for performing the above operation.
【0002】[0002]
【従来の技術】従来、この種のブロック識別情報管理機
能を有する磁気テープ処理装置としては、例えば図8に
示されるような構成のものが挙げられる。この磁気テー
プ処理装置20は、投入された磁気テープ12に対して
外部の上位装置10から送信される書込み又は読込みの
命令を受信処理して各部の動作並びに駆動に要する制御
を行う主制御部30と、主制御部30から送出される書
込み受信時の書込み制御信号に従ってブロックを書込む
ためのブロック書込信号を生成する書込回路18と、ブ
ロック書込信号を磁気テープ12に対して出力してブロ
ックの書込みを行う書込ヘッド9と、磁気テープ12か
らブロックを読込んでブロック読込信号を出力する読込
ヘッド7と、主制御部30から送信される読込み受信時
の読込み制御信号に従って磁気テープ12からブロック
を読込むためのブロック読込み指示信号を読込ヘッド7
へ送出し、且つ読込ヘッド7からのブロック読込信号を
取得する読込回路16と、主制御部30から送信される
書込み受信時又は読込み受信時の書込み用駆動制御信号
又は読込み用駆動制御信号に従って磁気テープ12を両
側で巻回したリール11a,11bを駆動して磁気テー
プ12を所定量走行させるための書込み用駆動信号又は
読込み用駆動信号を送出する駆動回路40とを備えてい
る。2. Description of the Related Art Conventionally, as a magnetic tape processing apparatus having this type of block identification information management function, there is one having a structure as shown in FIG. The magnetic tape processing device 20 receives a writing or reading command transmitted from an external higher-level device 10 to the inserted magnetic tape 12 and performs a control for operating and driving each part. A write circuit 18 for generating a block write signal for writing a block in accordance with a write control signal at the time of receiving a write sent from the main controller 30, and a block write signal for outputting to the magnetic tape 12. A write head 9 for writing blocks, a read head 7 for reading blocks from the magnetic tape 12 and outputting a block read signal, and a magnetic tape 12 according to a read control signal at the time of read reception transmitted from the main controller 30. A block read instruction signal for reading a block from the read head 7
A read circuit 16 for sending a block read signal from the read head 7 and a magnetic signal according to a write drive control signal or a read drive control signal at the time of write reception or read reception transmitted from the main control unit 30. A drive circuit 40 is provided for driving the reels 11a and 11b wound with the tape 12 on both sides to drive a write drive signal or a read drive signal for running the magnetic tape 12 by a predetermined amount.
【0003】この磁気テープ処理装置20の場合、外部
の上位装置10から送信される書込み又は読込みの命令
に付加されるブロック識別情報としてのパケット番号が
最大値以内であるか否かを主制御部30で判別した結果
に基づいて、投入された磁気テープ12におけるブロッ
クの書込み・読込みの動作を行うブロック識別情報管理
機能を有している。In the case of the magnetic tape processing device 20, the main control unit determines whether or not the packet number as the block identification information added to the writing or reading command transmitted from the external host device 10 is within the maximum value. It has a block identification information management function for writing / reading a block in the inserted magnetic tape 12 based on the result determined in 30.
【0004】具体的に言えば、書込みの動作を行う場
合、上位装置10から書込み命令を受信した主制御部3
0は、書込回路18に対して書込み制御信号を送出する
と共に、駆動回路40に対して書込み用駆動制御信号を
送出する。これにより、駆動回路40は、リール11
a,11bに対して書込み用駆動信号を送出してリール
11a,11bを駆動することで磁気テープ12が所定
量走行され、この状態で書込ヘッド9が書込回路18で
生成されたブロック書込信号を磁気テープ12に対して
出力することでブロックの書込みを行う。このとき、同
時に主制御部30から読込み制御信号が読込回路16に
送出されていると、読込回路16ではブロック読込み指
示信号を読込ヘッド7へ送出し、書込ヘッド9のテープ
走行方向に隣接している読込ヘッド7では書込ヘッド9
が磁気テープ12に書込んだブロックを読込み、ブロッ
ク読込信号として読込回路16へ出力することでブロッ
クの追従読込みが行われる。これにより、読込ヘッド7
は書込ヘッド9が磁気テープ12上に書き込んだブロッ
クを磁気テープ12の走行を停止させることなく読むこ
とができ、書込み命令によって書き込まれたブロックの
正当性を判別することができる。更に、その後は主制御
部30で動作の続行判断を行い、その結果に従って動作
の続行か、或いは終了かを処理する。Specifically, when performing a write operation, the main control unit 3 which receives a write command from the host device 10
0 sends a write control signal to the write circuit 18 and a write drive control signal to the drive circuit 40. As a result, the drive circuit 40 causes the reel 11
The magnetic tape 12 runs a predetermined amount by sending a writing drive signal to a and 11b to drive the reels 11a and 11b. In this state, the writing head 9 generates the block writing generated by the writing circuit 18. A block is written by outputting an embedded signal to the magnetic tape 12. At this time, if the read control signal is sent from the main control unit 30 to the read circuit 16 at the same time, the read circuit 16 sends a block read instruction signal to the read head 7 so that the write head 9 is adjacent to the read head 9 in the tape running direction. The read head 7 has a write head 9
The block written in the magnetic tape 12 is read and is output to the reading circuit 16 as a block read signal, so that follow-up reading of the block is performed. As a result, the reading head 7
The block written by the write head 9 on the magnetic tape 12 can be read without stopping the running of the magnetic tape 12, and the validity of the block written by the write command can be determined. Further, thereafter, the main control unit 30 determines whether to continue the operation, and processes whether the operation is continued or ended according to the result.
【0005】一方、読込みの動作を行う場合、上位装置
10から読込み命令を受信した主制御部30は、読込回
路16に対して読込み制御信号を送出すると共に、駆動
回路40に対して読込み用駆動制御信号を送出する。こ
れにより、駆動回路40は、リール11a,11bに対
して読込み用駆動信号を送出してリール11a,11b
を駆動することで磁気テープ12が所定量走行され、こ
の状態で読込回路16からブロック読込み指示信号を受
けた読込ヘッド7が磁気テープ12からブロックを読込
んでブロック読込信号として読込回路16へ出力するこ
とでブロックの読込みが行われる。On the other hand, when performing the read operation, the main control unit 30 which has received the read command from the higher-level device 10 sends a read control signal to the read circuit 16 and drives the drive circuit 40 for reading. Send a control signal. As a result, the drive circuit 40 sends a read drive signal to the reels 11a and 11b to send them to the reels 11a and 11b.
The magnetic tape 12 is driven by a predetermined amount by driving, and in this state, the reading head 7 which has received the block reading instruction signal from the reading circuit 16 reads the block from the magnetic tape 12 and outputs it to the reading circuit 16 as a block reading signal. This causes the block to be read.
【0006】因みに、このような磁気テープ処理装置、
並びにそのブロック識別に関連する周知技術としては、
特開昭61−60149号公報に開示されたブロック識
別番号管理方式、特開平4−291617号公報に開示
された磁気テープのデータ読み出し制御方式等が挙げら
れる。Incidentally, such a magnetic tape processing device,
And as a well-known technique related to the block identification,
The block identification number management system disclosed in Japanese Patent Laid-Open No. 61-60149 and the magnetic tape data read control system disclosed in Japanese Patent Laid-Open No. 4-291617 can be cited.
【0007】[0007]
【発明が解決しようとする課題】上述した磁気テープ処
理装置の場合、上位装置から送信される書込み又は読込
みの命令に付加されるブロック識別情報としてのパケッ
ト番号が最大値以内であるか否かを主制御部で判別した
結果に基づいて、投入された磁気テープにおけるブロッ
クの書込み又は読込みの動作を行っているため、パケッ
ト番号が最大値となった磁気テープの残り部分が未使用
部(残部ブロック)となって無駄を生じているという問
題がある他、パケット番号の最大値を越えた残部ブロッ
クに対して書込みや読込みを実行しても、基本動作上に
エラーが発生するか、或いはブロック識別情報の管理機
能にエラーが生じて不正なブロックを磁気テープに書込
む等により磁気テープを破壊してしまう可能性があるた
め、現状ではパケット番号の最大値を越えた書込みや読
込みを有効にして無難に実施できないという問題があ
る。In the case of the above-described magnetic tape processing device, it is determined whether the packet number as the block identification information added to the write or read command transmitted from the host device is within the maximum value. Based on the result determined by the main control unit, since the operation of writing or reading the block in the inserted magnetic tape is performed, the remaining part of the magnetic tape with the maximum packet number is the unused part (remaining block ) And waste is generated, and even if writing or reading is performed to the remaining block that exceeds the maximum value of the packet number, an error occurs in the basic operation or the block identification Currently, there is a possibility that the magnetic tape may be destroyed by writing an illegal block to the magnetic tape due to an error in the information management function. To enable the writing and reading that exceeds the maximum value of the port number there is a problem that can not be safe to implement.
【0008】本発明は、このような問題点を解決すべく
なされたもので、その技術的課題は、ブロック識別情報
としてのパケット番号が最大値を越えても磁気テープの
残り部分を基本動作上において無理無く有効に使用でき
るブロック識別情報管理機能を有する磁気テープ処置装
置を提供することにある。The present invention has been made to solve such a problem, and its technical problem is that even if the packet number as the block identification information exceeds the maximum value, the remaining part of the magnetic tape is basically operated. In order to provide a magnetic tape processing device having a block identification information management function that can be used effectively and reasonably.
【0009】[0009]
【課題を解決するための手段】本発明によれば、外部の
上位装置から送信される書込み又は読込みの命令に付加
されるブロック識別情報としてのパケット番号に基づい
て投入された磁気テープにおけるブロックの書込み又は
読込みの動作を行うブロック識別情報管理機能を有する
磁気テープ処理装置において、書込みの命令に従って書
込回路を介して書込ヘッドにより磁気テープ上にブロッ
クを書込むための書込み制御を行うと共に、書込まれた
ブロックを読込回路を介して読込ヘッドにより読込むた
めの追従読込み制御を行う主制御部と、追従読込み制御
で読込まれたブロックのパケット番号を読込回路を介し
て読込み保持した上で主制御部へ送出するブロック識別
情報管理部と、ブロック識別情報管理部から送出されて
主制御部により判別されたパケット番号が最大値に達し
たブロック以降を示す残部ブロックに対応するセクタ番
号を記憶する記憶部とを備え、更に、主制御部は、上位
装置からの書込み命令が継続して受信されるときにパケ
ット番号が最大値に達した時点で残部ブロックに対応す
るセクタ番号を記憶部に記憶させてからブロック識別情
報管理部に保持された該パケット番号を零にリセットし
た後、該記憶部に記憶された該セクタ番号を参照して書
込回路を介して書込ヘッドにより磁気テープ上における
該残部ブロックを書込むための残部ブロック用書込み制
御を行う磁気テープ処置装置が得られる。According to the present invention, a block in a magnetic tape inserted based on a packet number as block identification information added to a write or read command transmitted from an external higher-level device. In a magnetic tape processing device having a block identification information management function that performs a write or read operation, while performing write control for writing a block on a magnetic tape by a write head via a write circuit according to a write command, A main control unit that performs follow-up read control to read the written block by the read head via the read circuit, and the main control after reading and holding the packet number of the block read by the follow-up read control via the read circuit. Block identification information management section for sending to the control section, and the main control section for sending out from the block identification information management section. And a storage unit that stores a sector number corresponding to a remaining block indicating a block after the block whose packet number has reached the maximum value. Further, the main control unit continuously receives the write command from the host device. When the packet number reaches the maximum value, the sector number corresponding to the remaining block is stored in the storage unit, and then the packet number held in the block identification information management unit is reset to zero and then stored in the storage unit. There is obtained a magnetic tape treatment device which refers to the stored sector number and performs write control for the remaining block for writing the remaining block on the magnetic tape by the write head via the write circuit.
【0010】又、本発明によれば、上記磁気テープ処置
装置において、主制御部は、読込みの命令に従って読込
回路を介して読込ヘッドにより磁気テープ上からブロッ
クを読込む読込み制御を行い、ブロック識別情報管理部
は、読込み制御で読込まれたブロックのパケット番号を
読込回路を介して読込み保持した上で主制御部へ送出
し、記憶部は、ブロック識別情報管理部から送出されて
主制御部により判別されたパケット番号が最大値に達し
たブロック以降を示す残部ブロックに対応するセクタ番
号を記憶し、更に、主制御部は、上位装置からの読込み
命令が継続して受信されるときにパケット番号が最大値
に達した時点で残部ブロックに対応するセクタ番号を記
憶部に記憶させてからブロック識別情報管理部に保持さ
れた該パケット番号を零にリセットした後、該記憶部に
記憶された該セクタ番号を参照して読込回路を介して読
込ヘッドにより磁気テープ上から該残部ブロックを読込
むための残部用ブロック読込み制御を行う磁気テープ処
置装置が得られる。Further, according to the present invention, in the above magnetic tape processing apparatus, the main control unit performs read control of reading a block from the magnetic tape by the read head via the read circuit in accordance with a read instruction to identify the block. The information management unit reads and holds the packet number of the block read by the read control through the read circuit and then sends it to the main control unit.The storage unit is sent from the block identification information management unit and is sent by the main control unit. The sector number corresponding to the remaining block indicating the block after the discriminated packet number reaches the maximum value is stored, and further, the main control unit stores the packet number when the read command from the host device is continuously received. The packet number stored in the block identification information management unit after the sector number corresponding to the remaining block is stored in the storage unit when After resetting to zero, there is provided a magnetic tape treatment device which refers to the sector number stored in the storage unit, and performs block remaining control for reading the remaining block from the magnetic tape by a reading head through a reading circuit. can get.
【0011】更に、本発明によれば、上記何れかの磁気
テープ処置装置において、上位装置は、残部ブロックに
対する書込み又は読込みの命令に付加される位置付け命
令を送信し、主制御部は、位置付け命令を受信したとき
に位置付け処理として指定されたセクタ番号と記憶部に
記憶されたセクタ番号との大きさを比較した結果に基づ
いて、該指定された該セクタ番号が該記憶部に記憶され
た該セクタ番号以上であるときに該記憶部に記憶された
該セクタ番号に位置付けを行ってから該指定されたパケ
ット番号に位置付けを行い、該指定された該セクタ番号
が該記憶部に記憶された該セクタ番号未満であるときに
該指定された該パケット番号に位置付けを行った後、該
位置付けの結果に基づく書込み動作又は読込みの動作に
際して磁気テープを両側で巻回したリールを駆動回路に
より駆動して該磁気テープを所定量走行させる駆動制御
を行う磁気テープ処置装置が得られる。Furthermore, according to the present invention, in any one of the above magnetic tape processing devices, the host device transmits a positioning command to be added to a write or read command for the remaining block, and the main control unit causes the positioning command. The sector number designated as the positioning process when the position information is received is compared with the sector number stored in the storage unit, and the designated sector number is stored in the storage unit. When the sector number is equal to or greater than the sector number, the sector number stored in the storage unit is positioned and then the designated packet
A packet number, and when the designated sector number is less than the sector number stored in the storage unit, the designated packet number is positioned, and then the positioning result is obtained. There is obtained a magnetic tape treatment device which performs drive control in which a drive circuit drives a reel having a magnetic tape wound on both sides in a writing operation or a reading operation based on the drive circuit to drive the magnetic tape by a predetermined amount.
【0012】加えて、本発明によれば、上記何れか一つ
の磁気テープ処置装置において、主制御部は、磁気テー
プの排出時に記憶部に記憶されたセクタ番号を読み出し
て書込回路を介して書込ヘッドにより該磁気テープ上に
おける所定の位置に書込むためのセクタ番号用書込み制
御を行う磁気テープ処置装置が得られる。この磁気テー
プ処置装置において、セクタ番号用書込み制御では、所
定の位置として残部ブロックに対応する書込み又は読込
みに供されるブロック以外の領域を対象としてセクタ番
号の書込みを行うことは好ましい。In addition, according to the present invention, in any one of the above magnetic tape processing devices, the main control unit reads the sector number stored in the storage unit at the time of ejecting the magnetic tape, and reads it through the writing circuit. A magnetic tape treatment device for performing write control for sector number for writing at a predetermined position on the magnetic tape by the write head is obtained. In this magnetic tape processing apparatus, in the sector number write control, it is preferable to write the sector number to a region other than the block provided for writing or reading corresponding to the remaining block as a predetermined position.
【0013】又、本発明によれば、上記何れかの磁気テ
ープ処置装置において、主制御部は、磁気テープの排出
後の再投入時に読込回路を介して読込ヘッドにより磁気
テープ上からセクタ番号を読み出した結果に基づいて残
部ブロックの有無を認識する磁気テープ処置装置が得ら
れる。Further, according to the present invention, in any one of the above magnetic tape processing devices, the main control unit uses the read circuit to read the sector number from the magnetic tape through the read circuit when the magnetic tape is re-input after being ejected. A magnetic tape treatment device that recognizes the presence or absence of the remaining block based on the read result is obtained.
【0014】[0014]
【発明の実施の形態】以下に実施例を挙げ、本発明の磁
気テープ処置装置について、図面を参照して詳細に説明
する。BEST MODE FOR CARRYING OUT THE INVENTION The magnetic tape treatment apparatus of the present invention will be described below in detail with reference to the drawings.
【0015】図1は、本発明の一実施例に係るブロック
識別情報管理機能を有する磁気テープ処理装置2の基本
構成を示したブロック図である。この磁気テープ処理装
置2の場合も、図8に示した従来装置と同様な機能構成
部分、即ち、投入された磁気テープ12に対して外部の
上位装置1から送信される書込み又は読込みの命令を受
信処理して各部の動作並びに駆動に要する制御を行う主
制御部3と、主制御部3から送出される書込み受信時の
書込み制御信号に従ってブロックを書込むためのブロッ
ク書込信号を生成する書込回路8と、ブロック書込信号
を磁気テープ12に対して出力してブロックの書込みを
行う書込ヘッド9と、磁気テープ12からブロックを読
込んでブロック読込信号を出力する読込ヘッド7と、主
制御部3から送信される読込み受信時の読込み制御信号
に従って磁気テープ12からブロックを読込むためのブ
ロック読込み指示信号を読込ヘッド7へ送出し、且つ読
込ヘッド7からのブロック読込信号を取得する読込回路
6と、主制御部3から送信される書込み受信時の書込み
用駆動制御信号又は読込み受信時の読込み用駆動制御信
号に従って磁気テープ12を両側で巻回したリール11
a,11bを駆動して磁気テープ12を所定量走行させ
るための書込み用駆動信号又は読込み用駆動信号を送出
する駆動回路4とを備えている。FIG. 1 is a block diagram showing the basic construction of a magnetic tape processing apparatus 2 having a block identification information management function according to an embodiment of the present invention. Also in the case of this magnetic tape processing device 2, the same functional component as that of the conventional device shown in FIG. 8, that is, a writing or reading command transmitted from the external host device 1 to the inserted magnetic tape 12 is executed. A main control unit 3 that performs reception processing to control the operation and driving of each unit, and a writing unit that generates a block write signal for writing a block according to a write control signal sent from the main control unit 3 at the time of writing reception. An input circuit 8, a write head 9 for writing a block by outputting a block write signal to the magnetic tape 12, a read head 7 for reading a block from the magnetic tape 12 and outputting a block read signal, A block read instruction signal for reading a block from the magnetic tape 12 is sent to the read head 7 in accordance with a read control signal at the time of read reception sent from the control unit 3, and The read circuit 6 for obtaining the block read signal from the read head 7 and the magnetic tape 12 on both sides according to the write drive control signal at the time of writing reception or the read drive control signal at the time of reading reception transmitted from the main control unit 3. Wound reel 11
and a drive circuit 4 for transmitting a write drive signal or a read drive signal for driving the magnetic tape 12 by a predetermined amount by driving a and 11b.
【0016】但し、この磁気テープ処理装置2の場合、
上位装置1からは書込み又は読込みの命令以外にこれら
に付加される位置付け命令が送信されるようになってお
り、主制御部3では位置付け命令を受信したときに磁気
テープ12を両側で巻回したリール11a,11bを駆
動回路4により駆動して磁気テープ12を所定量走行さ
せる駆動制御を行う。又、主制御部3では、この他に上
位装置1からの書込みの命令に従って書込回路8を介し
て書込ヘッド9により磁気テープ12上にブロックを書
込むための書込み制御を行うと共に、書込まれたブロッ
クを読込回路6を介して読込ヘッド7により読込むため
の追従読込み制御を行うと共に、上位装置1からの読込
みの命令に従って読込回路6を介して読込ヘッド7によ
り磁気テープ12上からブロックを読込む読込み制御を
行う。However, in the case of this magnetic tape processing device 2,
In addition to the write or read command, a positioning command added to these is transmitted from the host device 1, and the main controller 3 winds the magnetic tape 12 on both sides when the positioning command is received. Drive control is performed to drive the reels 11a and 11b by the drive circuit 4 to run the magnetic tape 12 by a predetermined amount. In addition to this, the main control unit 3 performs write control for writing a block on the magnetic tape 12 by the write head 9 via the write circuit 8 in accordance with a write instruction from the host device 1, and The follow-up read control for reading the read block by the read head 7 via the read circuit 6 is performed, and the block is read from the magnetic tape 12 by the read head 7 via the read circuit 6 in accordance with the read instruction from the host device 1. Read control is performed.
【0017】そこで、この磁気テープ処理装置2では、
主制御部3の追従読込み制御で読込まれたブロックのパ
ケット番号を読込回路6を介して読込み保持した上で主
制御部3へ送出すると共に、読込み制御で読込まれたブ
ロックのパケット番号を読込回路6を介して読込み保持
した上で主制御部3へ送出するブロック識別情報(BI
D)管理部5と、ブロック識別情報管理部5から送出さ
れて主制御部3により判別されたパケット番号が最大値
に達したブロック以降を示す残部ブロックに対応するセ
クタ番号を記憶する記憶部13とが備えられている。Therefore, in this magnetic tape processing device 2,
The packet number of the block read by the follow-up read control of the main control unit 3 is read and held via the read circuit 6 and then sent to the main control unit 3, and the packet number of the block read by the read control is read by the read circuit. Block identification information (BI
D) The management unit 5 and the storage unit 13 for storing the sector numbers corresponding to the remaining blocks indicating the blocks after the packet number sent from the block identification information management unit 5 and determined by the main control unit 3 reaches the maximum value. And are provided.
【0018】このため、主制御部3は、上位装置1から
の書込み命令が継続して受信されるときにパケット番号
が最大値に達した時点で残部ブロックに対応するセクタ
番号を記憶部13に記憶させてからブロック識別情報管
理部5に保持されたパケット番号を零にリセットした
後、記憶部13に記憶されたセクタ番号を参照して書込
回路8を介して書込ヘッド9により磁気テープ12上に
おける残部ブロックを書込むための残部ブロック用書込
み制御を行うと共に、上位装置1から読込み命令が継続
して受信されるときにパケット番号が最大値に達した時
点で残部ブロックに対応するセクタ番号を記憶部13に
記憶させてからブロック識別情報管理部5に保持された
パケット番号を零にリセットした後、記憶部13に記憶
されたセクタ番号を参照して読込回路6を介して読込ヘ
ッド7により磁気テープ12上から残部ブロックを読込
むための残部用ブロック読込み制御を行う。Therefore, the main control unit 3 stores the sector number corresponding to the remaining block in the storage unit 13 at the time when the packet number reaches the maximum value when the write command from the higher-level device 1 is continuously received. After storing, the packet number held in the block identification information management unit 5 is reset to zero, and then the sector number stored in the storage unit 13 is referred to and the magnetic tape is written by the write head 9 via the write circuit 8. 12 write control for the remaining block for writing the remaining block is performed, and at the time when the packet number reaches the maximum value when the read command is continuously received from the host device 1, the sector corresponding to the remaining block. After the number is stored in the storage unit 13, the packet number held in the block identification information management unit 5 is reset to zero, and then the sector number stored in the storage unit 13 is set. Irradiation to perform balance block reading control for reading the block of residues from the magnetic tape 12 on the read head 7 via the read circuit 6.
【0019】又、主制御部3は、磁気テープ12の排出
時に記憶部13に記憶されたセクタ番号を読み出して書
込回路8を介して書込ヘッド9により磁気テープ12上
における残部ブロックに対応する書込み又は読込みに供
されるブロック以外の領域である所定の位置に書込むた
めのセクタ番号用書込み制御を行い、磁気テープ12の
排出後の再投入時に読込回路6を介して読込ヘッド7に
より磁気テープ12上からセクタ番号を読み出した結果
に基づいて残部ブロックの有無を認識する。The main control unit 3 reads the sector number stored in the storage unit 13 when the magnetic tape 12 is ejected, and the write head 9 via the write circuit 8 corresponds to the remaining block on the magnetic tape 12. Sector number write control for writing at a predetermined position, which is an area other than the block for writing or reading, is performed by the read head 7 via the read circuit 6 when the magnetic tape 12 is reloaded after being ejected. Whether or not there is a remaining block is recognized based on the result of reading the sector number from the magnetic tape 12.
【0020】更に、主制御部3は、このような残部ブロ
ックに対する書込み又は読込みの命令に際して位置付け
命令が付加されている場合、位置付け処理として指定さ
れたセクタ番号と記憶部13に記憶されたセクタ番号と
の大きさを比較した結果に基づいて、指定されたセクタ
番号が記憶部13に記憶されたセクタ番号以上であると
きに記憶部13に記憶されたセクタ番号に位置付けを行
ってから指定されたパケット番号に位置付けを行い、指
定されたセクタ番号が記憶部13に記憶されたセクタ番
号未満であるときに指定されたパケット番号に位置付け
を行った後、位置付けの結果に基づく書込み動作又は読
込みの動作に際して磁気テープ12を両側で巻回したリ
ール11a,11bを駆動回路4により駆動して磁気テ
ープ12を所定量走行させる駆動制御を行う。Further, when a positioning command is added to such a write command or a read command for the remaining block, the main control unit 3 designates the sector number designated as the positioning process and the sector number stored in the storage unit 13. When the designated sector number is equal to or greater than the sector number stored in the storage unit 13, the sector number stored in the storage unit 13 is positioned and designated based on the result of the comparison of the sizes of perform positioning in a packet number, after the specified sector number was positioned to the specified packet number when less than the sector number stored in the storage unit 13, a write operation or read operation based on the results of the positioning At this time, the reels 11a and 11b wound with the magnetic tape 12 on both sides are driven by the drive circuit 4 to move the magnetic tape 12 by a predetermined amount. Performing drive control for the row.
【0021】即ち、この磁気テープ処理装置2の場合、
主制御部3が上位装置1から位置付け命令が付加された
書込み又は読込みの命令を受信すると、駆動回路4によ
り磁気テープ12を所定量走行させる駆動制御を行うと
共に、書込みの命令であればそれに従って書込回路8を
介して書込ヘッド9により磁気テープ12上にブロック
を書込むための書込み制御を行い、且つ書込まれたブロ
ックを読込回路6を介して読込ヘッド7により磁気テー
プ12上から読込むための追従読込み制御を行い、読込
みの命令であればそれに従って読込回路6を介して読込
ヘッド7により磁気テープ12上からブロックを読込む
ための読込み制御を行い、基本動作上は図8に示した従
来装置の場合と同様に動作する。That is, in the case of this magnetic tape processing device 2,
When the main control unit 3 receives a writing or reading command to which a positioning command is added from the higher-level device 1, the driving circuit 4 drives the magnetic tape 12 by a predetermined amount, and if it is a writing command, it follows it. Write control for writing a block on the magnetic tape 12 is performed by the write head 9 via the write circuit 8, and the written block is read from the magnetic tape 12 by the read head 7 via the read circuit 6. Follow-up read control for reading is performed, and if it is a read instruction, read control for reading a block from the magnetic tape 12 by the read head 7 via the read circuit 6 is performed according to the instruction, and the basic operation is shown in FIG. It operates as in the case of the device.
【0022】ところが、この磁気テープ処理装置2の場
合、書込み又は読込みの命令が継続するときに読込ヘッ
ド7により投入された磁気テープ12上から読込まれた
ブロック識別情報のパケット番号が読込回路6を介して
ブロック識別情報管理部5及び主制御部3へ送出されて
おり、主制御部3がパケット番号が最大値に達した時点
でその最大値に達したブロック以降の残部ブロックに対
応するセクタ番号を記憶部13に記憶させてからブロッ
ク識別情報管理部5に保持されたパケット番号を零にリ
セットした後、記憶部13に記憶されたセクタ番号を参
照して磁気テープ12上における残部ブロックを書込む
ための残部ブロック用書込み制御を行うか、或いは磁気
テープ12上から残部ブロックを読込むための残部ブロ
ック用読込み制御を行う機能と、磁気テープ12の排出
動作時に記憶部13から読み出したセクタ番号を磁気テ
ープ12上における残部ブロックに対応する書込み又は
読込みに供されるブロック以外の領域に書込回路8を介
して書込ヘッド9により書込むためのセクタ番号用書込
み制御を行う機能と、排出後の再投入時に読込回路6を
介して読込ヘッド7により磁気テープ12上からセクタ
番号を読み出した結果に基づいて残部ブロックの有無を
認識する機能とを有するため、投入された磁気テープ1
2における外部の上位装置1から送信されるブロック識
別情報としてのパケット番号が最大値に達したブロック
以降を示す残部ブロックを対象として書込み,読込み,
位置付けの命令を正常に処理し、且つ残部ブロックに対
応するセクタ番号を磁気テープ12に記録・再生するこ
とでその磁気テープ12を排出後に再投入しても残部ブ
ロックの有無を認識可能なブロック識別情報管理機能が
構築されることになる。However, in the case of this magnetic tape processing device 2, the packet number of the block identification information read from the magnetic tape 12 inserted by the read head 7 when the write or read command continues is stored in the read circuit 6. Is sent to the block identification information management unit 5 and the main control unit 3 via the sector identification number, and when the main control unit 3 reaches the maximum value, the sector number corresponding to the remaining block after the block that has reached the maximum value. Is stored in the storage unit 13, the packet number held in the block identification information management unit 5 is reset to zero, and then the remaining block on the magnetic tape 12 is written with reference to the sector number stored in the storage unit 13. Write control for the remaining block to read in, or read control for the remaining block to read the remaining block from the magnetic tape 12 The function to perform and the sector number read from the storage unit 13 during the ejecting operation of the magnetic tape 12 are written via the writing circuit 8 to an area other than the block for writing or reading corresponding to the remaining block on the magnetic tape 12. The remaining block based on the function of performing the write control for the sector number for writing by the read head 9 and the result of reading the sector number from the magnetic tape 12 by the read head 7 through the read circuit 6 at the time of re-input after ejection. Since it has the function of recognizing the presence or absence of
2, write and read to the remaining block indicating the block after the packet number as the block identification information transmitted from the external higher-level device 1 in FIG.
Block identification by which the positioning command is processed normally and the sector number corresponding to the remaining block is recorded / reproduced on the magnetic tape 12 so that the presence / absence of the remaining block can be recognized even if the magnetic tape 12 is ejected again. The information management function will be built.
【0023】具体的に言えば、書込み動作を行う場合、
上位装置1から書込み命令並びにそれに付加された位置
付け命令を受信した主制御部3は、書込回路8に対して
書込み制御信号を送出すると共に、駆動回路4に対して
位置付け命令の内容に従った書込み用駆動制御信号を送
出し、同時に読込回路6に対して追従読込み制御信号を
送出する。これにより、駆動回路4は、リール11a,
11bに対して書込み用駆動信号を送出してリール11
a,11bを駆動することで磁気テープ12が所定量走
行され、この状態で書込ヘッド9が書込回路8で生成さ
れたブロック書込信号を磁気テープ12に対して出力す
ることでブロックの書込みを行い、同時に追従読込み制
御信号を受けた読込回路6が書込ヘッド9のテープ走行
方向に隣接している読込ヘッド7により磁気テープ12
上に書き込んだブロックを読込み、ブロック読込信号と
して読込回路6へ出力することでブロックの追従読込み
が行われる。即ち、ここでは主制御部3における書込み
動作時の追従読込み制御により、磁気テープ12の走行
を停止させることなく書込み命令によって書き込まれた
ブロックを読込んでその正当性を判別できることを示し
ている。Specifically, when performing a write operation,
Upon receiving the write command and the positioning command added thereto from the host device 1, the main control unit 3 sends a write control signal to the writing circuit 8 and follows the contents of the positioning command to the drive circuit 4. The write drive control signal is sent, and at the same time, the follow-up read control signal is sent to the read circuit 6. As a result, the drive circuit 4 causes the reels 11a,
11b to send a write drive signal to the reel 11
By driving a and 11b, the magnetic tape 12 runs by a predetermined amount, and in this state, the write head 9 outputs the block write signal generated by the write circuit 8 to the magnetic tape 12 so that the block The writing circuit 6 which has performed writing and simultaneously received the follow-up reading control signal is read by the reading head 7 which is adjacent to the writing head 9 in the tape running direction.
By reading the block written above and outputting it to the reading circuit 6 as a block read signal, follow-up reading of the block is performed. That is, here, it is shown that the follow-up read control at the time of the write operation in the main control unit 3 can read the block written by the write command without stopping the running of the magnetic tape 12 and determine its validity.
【0024】引き続いて、ブロック識別情報管理部5が
読込回路6を介してブロックのパケット番号をブロック
読込信号として読込み保持した上で主制御部3に送出
し、パケット番号が送出された主制御部3では、パケッ
ト番号が最大値に達したと判定したならば、最大値に達
したブロック以降を示す残部ブロックに対応するセクタ
番号を記憶部13に記憶させ、更に、主制御部3が継続
して書込み命令を受信したときにブロック識別情報管理
部5に保持されたパケット番号を零にリセットした後、
記憶部13に記憶された残部ブロックに対応するセクタ
番号を参照して書込回路8を介して書込ヘッド9により
磁気テープ12上の残部ブロックを書込む残部書込み制
御を行う。Subsequently, the block identification information management unit 5 reads and holds the packet number of the block as a block read signal via the read circuit 6 and sends it to the main control unit 3, and the main control unit to which the packet number is sent out. In 3, it is determined that the packet number has reached the maximum value, the sector number corresponding to the remaining block indicating the block after the maximum value is stored in the storage unit 13, and the main control unit 3 continues. After resetting the packet number held in the block identification information management unit 5 when the write command is received,
With reference to the sector number corresponding to the remaining block stored in the storage unit 13, the remaining write control is performed to write the remaining block on the magnetic tape 12 by the write head 9 via the writing circuit 8.
【0025】一方、読込み動作を行う場合、上位装置1
から読込み命令並びにそれに付加された位置付け命令を
受信した主制御部3は、読込回路6に対して読込み制御
信号を送出すると共に、駆動回路4に対して位置付け命
令の内容に従った読込み用駆動制御信号を送出する。こ
れにより、駆動回路4は、リール11a,11bに対し
て読込み用駆動信号を送出してリール11a,11bを
駆動することで磁気テープ12が所定量走行され、この
状態で読込回路6からブロック読込み指示信号を受けた
読込ヘッド7が磁気テープ12からブロックを読込んで
ブロック読込信号として読込回路6へ出力することでブ
ロックの読込みが行われる。On the other hand, when the reading operation is performed, the host device 1
The main control unit 3, which has received the read command and the positioning command added thereto, sends the read control signal to the read circuit 6 and drives the drive circuit 4 for read drive control according to the content of the position command. Send a signal. As a result, the drive circuit 4 sends a read drive signal to the reels 11a and 11b to drive the reels 11a and 11b, so that the magnetic tape 12 runs a predetermined amount, and in this state, the block read from the read circuit 6 is performed. The reading head 7 receiving the instruction signal reads the block from the magnetic tape 12 and outputs the block as a block reading signal to the reading circuit 6 to read the block.
【0026】引き続いて、ブロック識別情報管理部5が
読込回路6を介してブロックのパケット番号をブロック
読込信号として読込み保持した上で主制御部3に送出
し、パケット番号が送出された主制御部3では、パケッ
ト番号が最大値に達したと判定したならば、最大値に達
したブロック以降を示す残部ブロックに対応するセクタ
番号を記憶部13に記憶させ、更に、主制御部3が継続
して読込み命令を受信したときにブロック識別情報管理
部5に保持されたパケット番号を零にリセットした後、
記憶部13に記憶された残部ブロックに対応するセクタ
番号を参照して読込回路6を介して読込ヘッド7により
磁気テープ12上から残部ブロックを読込む残部読込み
制御を行う。Subsequently, the block identification information management unit 5 reads and holds the packet number of the block as a block read signal via the read circuit 6 and sends it to the main control unit 3, and the main control unit to which the packet number is sent out. In 3, it is determined that the packet number has reached the maximum value, the sector number corresponding to the remaining block indicating the block after the maximum value is stored in the storage unit 13, and the main control unit 3 continues. After resetting the packet number held in the block identification information management unit 5 when the read command is received,
With reference to the sector number corresponding to the remaining block stored in the storage unit 13, the remaining head read control is performed to read the remaining block from the magnetic tape 12 by the reading head 7 via the reading circuit 6.
【0027】又、主制御部3は、上述したように磁気テ
ープ処理装置2における磁気テープ12の排出時に書込
回路8を介して書込ヘッド9により磁気テープ12上に
おける残部ブロックに対応する書込み又は読込みに供さ
れるブロック以外の領域である所定の位置に記憶部13
に記憶されたセクタ番号を書込むためのセクタ番号用書
込み制御を行う他、磁気テープ12の排出後の再投入時
に読込回路6を介して読込ヘッド7により磁気テープ1
2上からセクタ番号を読込んだ結果に基づいて残部ブロ
ックの有無を認識する。As described above, the main control unit 3 writes the magnetic tape 12 in the magnetic tape processing device 2 by the write head 9 via the write circuit 8 corresponding to the remaining block on the magnetic tape 12. Alternatively, the storage unit 13 may be provided at a predetermined position that is an area other than the block provided for reading.
Sector number write control for writing the sector number stored in the magnetic tape 1 is performed by the read head 7 through the read circuit 6 when the magnetic tape 12 is re-input after being ejected.
2 Whether or not there is a remaining block is recognized based on the result of reading the sector number from above.
【0028】このように、この磁気テープ処理装置2で
は、ブロック識別情報管理部5及び記憶部13を設け、
ブロック識別情報管理部5が書込みや読込みに際してブ
ロック識別情報のパケット番号を識別して主制御部3へ
送出し、主制御部3によりパケット番号が最大値に達し
たことを判定したならば、パケット番号が最大値以上と
なる残部ブロックに対応するセクタ番号を検出して記憶
部13に記憶させてからブロック識別情報管理部5に保
持されたパケット番号を零にリセットした後、記憶部1
3に記憶されたセクタ番号を参照して磁気テープ12上
における残部ブロックを書込むための残部ブロック用書
込み制御を行うか、或いは磁気テープ12上から残部ブ
ロックを読込むための残部ブロック用読込み制御を行う
ため、磁気テープ12上における残部ブロックとなる領
域を判別した上、この領域に対して主制御部3の残部ブ
ロック用書込み制御や残部ブロック用読込み制御により
読込みや書込みを行うことが可能となり、更に、主制御
部3のセクタ番号用書込み制御により磁気テープ12上
の所定の位置に残部ブロックが存在するセクタ番号を書
込むため、磁気テープ12の排出時や投入時に主制御部
3により磁気テープ12が残部ブロックを有しているか
否かを認識することが可能となる。As described above, the magnetic tape processing device 2 is provided with the block identification information management section 5 and the storage section 13,
When the block identification information management unit 5 identifies the packet number of the block identification information at the time of writing or reading and sends it to the main control unit 3, if the main control unit 3 determines that the packet number has reached the maximum value, the packet After the sector number corresponding to the remaining block having the number equal to or larger than the maximum value is detected and stored in the storage unit 13, the packet number held in the block identification information management unit 5 is reset to zero, and then the storage unit 1
The remaining block write control for writing the remaining block on the magnetic tape 12 or the remaining block read control for reading the remaining block from the magnetic tape 12 is performed by referring to the sector number stored in # 3. Therefore, it becomes possible to discriminate an area to be the remaining block on the magnetic tape 12, and to read or write to this area by the remaining block write control and the remaining block read control of the main control unit 3. Since the sector number in which the remaining block exists is written at a predetermined position on the magnetic tape 12 by the write control for the sector number of the main controller 3, the main controller 3 causes the magnetic tape 12 to be ejected or loaded. It is possible to recognize whether or not has a remaining block.
【0029】図2は、ブロック識別情報管理部5で管理
されるブロック識別情報を模式的に示したフォーマット
である。尚、このブロック識別情報は、「JIS X
6135 1/2インチ幅36トラック情報交換用磁気
テープカートリッジ(以下JIS規格と略す)」におい
て規格されているものである。FIG. 2 is a format schematically showing the block identification information managed by the block identification information management section 5. The block identification information is "JIS X
6135 1/2 inch width 36 track information exchanging magnetic tape cartridge (hereinafter abbreviated as JIS standard) ".
【0030】図3は、このJIS規格に従った磁気テー
プ12上に書込み又は読込みされるブロックを示した概
略図である。FIG. 3 is a schematic diagram showing blocks written or read on the magnetic tape 12 according to the JIS standard.
【0031】ブロック識別情報(BID)とは、4バイ
ト=32ビットからなる情報であり、全てのブロック
(図3に示されるC1〜C7)がこの情報を持ち、ビッ
ト32のラップ情報(図2に示されるB1)、ビット2
5〜31のセクタ番号(図2に示されるB2)、0のビ
ット24(図2に示されるB3)、1のビット23(図
2に示されるB4)、ビット1〜ビット22のパケット
番号(図2に示されるB5)から成る。The block identification information (BID) is information consisting of 4 bytes = 32 bits, all blocks (C1 to C7 shown in FIG. 3) have this information, and the wrap information of bit 32 (FIG. 2). B1), bit 2
Sector numbers 5 to 31 (B2 shown in FIG. 2), 0 bit 24 (B3 shown in FIG. 2), 1 bit 23 (B4 shown in FIG. 2), bit 1 to bit 22 packet number ( B5) shown in FIG.
【0032】図3では、ブロック識別情報のうち、図2
に示されるB1、B3、B4の情報を割愛して示してい
る。ラップ情報はハーフラップ1ならば0となり、ハー
フラップ2ならば1となる。ハーフラップに関しては、
JIS規格で規定されているが、本発明には関係しない
ので説明を省略する。セクタ番号はJIS規格附属書F
に従って値が決定される。セクタ番号は磁気テープ12
の大まかな物理的位置を表わすため、複数のブロックが
同じセクタ番号(図3に示されるC1〜C3、又は図3
に示されるC4〜C7)を持つ。パケット番号はビット
数22で表わすため、0から始まり、最大値が16進数
で表わした場合に3FFFFF[H](但し、以下もそ
うであるように16進数表記を[H]とする)となる。In FIG. 3, the block identification information of FIG.
The information of B1, B3, and B4 shown in is omitted. The lap information is 0 for half wrap 1 and 1 for half lap 2. Regarding half lap,
Although it is defined by the JIS standard, it is not related to the present invention, and therefore its explanation is omitted. Sector number is JIS standard Annex F
The value is determined according to. Sector number is magnetic tape 12
Of the same sector number (C1 to C3 shown in FIG. 3, or FIG.
C4 to C7) shown in FIG. Since the packet number is represented by the number of bits 22, it starts from 0 and becomes 3FFFFF [H] when the maximum value is represented in hexadecimal (however, the hexadecimal notation is [H] as described below). .
【0033】従って、400000[H]個を越える数
のブロックが同一の磁気テープ12上に存在する場合、
異なるパケット番号で表わすことができない。JIS規
格によれば、パケット番号は0から始まる一連の番号で
なければならないため、3FFFFF[H]を越えるブ
ロックに関しては、同一の磁気テープ12上で読込み/
書き込みをすることはできない。Therefore, when there are more than 400000 [H] blocks on the same magnetic tape 12,
It cannot be represented by a different packet number. According to the JIS standard, the packet number must be a series of numbers starting from 0. Therefore, with respect to blocks exceeding 3FFFFF [H], read / write on the same magnetic tape 12.
It is not possible to write.
【0034】ところが、図3に示されるように、パケッ
ト番号は等しいが、セクタ番号の異なるブロック識別情
報(図3に示されるC1、C6並びにC2、C7)を作
成することによって、400000[H]個を越えるブ
ロックの書込み/読込みを可能とすることができる。However, as shown in FIG. 3, by creating block identification information (C1, C6 and C2, C7 shown in FIG. 3) having the same packet number but different sector numbers, 400000 [H] is obtained. It is possible to write / read more than blocks.
【0035】図4は、この磁気テープ処理装置2による
磁気テープ12の残部ブロックを対象にした書込み動作
処理の一例を示したフローチャートであり、同図(a)
は全動作処理に関するもの,同図(b)は同図(a)の
全動作処理に含まれる位置付け処理に関するものであ
る。FIG. 4 is a flow chart showing an example of the write operation process for the remaining block of the magnetic tape 12 by the magnetic tape processing device 2, and FIG.
Shows the whole operation process, and FIG. 18B shows the positioning process included in the whole operation process of FIG.
【0036】先ず、図4(a)を参照すれば、ここでは
磁気テープ12の磁気テープ処理装置2への投入によ
り、磁気テープ12の所定位置の値(セクタ番号)を記
憶部13に通知する処理、並びにブロック識別情報管理
部5が管理するパケット番号を0とする処理(ステップ
S1)が行われるが、初期状態の磁気テープ12の所定
位置には何も情報が書込まれていない。First, referring to FIG. 4A, here, by inserting the magnetic tape 12 into the magnetic tape processing device 2, the value (sector number) of a predetermined position of the magnetic tape 12 is notified to the storage unit 13. Although the process and the process of setting the packet number managed by the block identification information management unit 5 to 0 (step S1) are performed, no information is written at a predetermined position of the magnetic tape 12 in the initial state.
【0037】次に、上位装置1が主制御部3へ命令を送
信することで、磁気テープ12へ命令(ステップS2)
が下されると、その命令が位置付け命令であるか否かの
判定(ステップS3)を行う。ここで、位置付け命令で
あれば位置付け処理(ステップS4)を行うが、位置付
け命令でなければ書込み命令であるか否かの判定(ステ
ップS5)を行う。ここで、書込み命令であれば、主制
御部3が書込回路8に対して書込み制御信号を送出する
と共に、駆動回路4に対して書込み用駆動制御信号を送
出し、同時に読込回路6に対して追従読込み制御信号を
送出し、これにより駆動回路4が磁気テープ12をテー
プ走行方向に所定量走行させ、書込回路8は書込ヘッド
9を介して磁気テープ12上の所定の位置にセクタ番号
を1、パケット番号0のブロック識別情報のブロックを
書込むことで書込ヘッド9がテープにデータを書く処理
(ステップS6)が行われ、この後は書込み命令でなか
った場合と同様に読込回路6が読込ヘッド7を介して磁
気テープ12上に書込まれたブロックを読込むことで読
込ヘッド7がテープのブロック識別情報(BID)を読
む処理(ステップS7)が行われる。因みに、書込み後
に読込まれたブロックのブロック識別情報のパケット番
号は、読込回路6を介してブロック識別情報管理部5で
取得される。Next, the higher-level device 1 sends a command to the main controller 3 to send a command to the magnetic tape 12 (step S2).
Is issued, it is determined whether or not the instruction is a positioning instruction (step S3). Here, if it is a positioning command, the positioning process (step S4) is performed, but if it is not a positioning command, it is determined whether it is a write command (step S5). Here, if it is a write command, the main control unit 3 sends a write control signal to the write circuit 8 and a write drive control signal to the drive circuit 4, and at the same time to the read circuit 6. Then, the drive circuit 4 causes the magnetic tape 12 to travel a predetermined amount in the tape running direction, and the writing circuit 8 causes the writing head 9 to move the sector to a predetermined position on the magnetic tape 12 via the write head 9. The write head 9 writes the data on the tape by writing the block of the block identification information with the number 1 and the packet number 0 (step S6). After that, the read operation is performed in the same manner as when the write command is not issued. The circuit 6 reads the block written on the magnetic tape 12 via the read head 7 so that the read head 7 reads the block identification information (BID) of the tape (step S7). Incidentally, the packet number of the block identification information of the block read after writing is acquired by the block identification information management unit 5 via the reading circuit 6.
【0038】この後は、位置付け処理(ステップS4)
の後の場合と同様に、書込み命令を400000[H]
回受信した状態(図3に示されるC5)に相当するパケ
ット(番号)が3FFFFFであるか否かの判定(ステ
ップS8)を行い、パケット番号が3FFFFFであれ
ばブロック識別情報管理部5が記憶部13に例えばセク
タ番号10[H]を通知(ステップS9)してからパケ
ット番号を零(0)にリセット(ステップS10)した
後、書込みを続行するか否かの判定(ステップS12)
を行うが、パケット番号が3FFFFFでなければ、ブ
ロック識別情報管理部5がパケット番号を1つ増やす処
理(ステップS11)を行った後、同様に書込みを続行
するか否かの判定(ステップS12)を行う。After this, the positioning process (step S4)
As in the case after, the write command is set to 400000 [H]
It is judged whether or not the packet (number) corresponding to the state (C5 shown in FIG. 3) that has been received once is 3FFFFF (step S8), and if the packet number is 3FFFFF, the block identification information management unit 5 stores it. For example, after the sector number 10 [H] is notified to the unit 13 (step S9) and the packet number is reset to zero (0) (step S10), it is determined whether or not to continue writing (step S12).
If the packet number is not 3FFFFF, the block identification information management unit 5 performs a process of increasing the packet number by 1 (step S11), and then similarly determines whether or not to continue writing (step S12). I do.
【0039】書込みを続行する場合、磁気テープ12へ
命令(ステップS2)が下される処理の前にリターンし
て待機するが、以上の処理(ステップS2〜S13)に
より書き込みを続行すると、書き込まれたブロックはセ
クタ番号が10[H]、パケット番号が0のブロック識
別情報を持った図3に示されるC6の状態となり、更に
引き続いて書き込みを続行すると、セクタ番号が10
[H]、パケット番号が1のブロック識別情報を持った
図3に示されるC7の状態となり、これらの状態で磁気
テープ12上への書込みが行われることになる。When the writing is continued, the magnetic tape 12 returns and waits before the command (step S2) is given. When the writing is continued by the above processing (steps S2 to S13), the writing is performed. The block becomes the state of C6 shown in FIG. 3 having the block identification information of the sector number 10 [H] and the packet number 0, and when the writing is further continued, the sector number becomes 10
[H], the state of C7 shown in FIG. 3 having the block identification information with the packet number of 1 is entered, and writing on the magnetic tape 12 is performed in these states.
【0040】これに対し、書込みを続行しなければ、主
制御部3が磁気テープ12の所定位置に記憶部13に記
憶されたブロック識別情報のセクタ番号10[H]を書
込むことでテープ所定位置に記憶部13のブロック識別
情報(BID)を書込んだ後に磁気テープ12を排出す
る処理(ステップS13)を行ってから全ての処理を終
了する。On the other hand, if the writing is not continued, the main control unit 3 writes the sector number 10 [H] of the block identification information stored in the storage unit 13 at a predetermined position of the magnetic tape 12 so that the tape is predetermined. After writing the block identification information (BID) of the storage unit 13 at the position, the process of ejecting the magnetic tape 12 (step S13) is performed, and then all the processes are ended.
【0041】ところで、先の位置付け命令であるか否か
の判定(ステップS3)で位置付け命令である場合に行
われる位置付け処理(ステップS4)は、具体的には図
4(b)に示される処理を含んでいる。ここで、位置付
け命令とはブロック識別情報のパケット番号を指定して
目的のブロックの位置までテープを走行させることであ
るが、通常位置付け処理は指定されたブロック識別情報
のパケット番号まで磁気テープ12を走行させる処理を
行うものであるため、図3に示したように同じパケット
番号が2つ以上存在する場合にはどちらのブロックに位
置付けるべきかを判断できないという問題を生じる。そ
こで、ここでの位置付け処理においては、位置付け先と
して指定されたブロック識別情報のセクタ番号と記憶部
13の保持するセクタ番号との大きさを比較することに
より問題を解決させる。By the way, the positioning process (step S4) performed when the command is the positioning command in the determination (step S3) is specifically the process shown in FIG. 4 (b). Is included. Here, the positioning command is to run the tape to the position of the target block by designating the packet number of the block identification information, but in the normal positioning processing, the magnetic tape 12 is moved to the packet number of the designated block identification information. Since the processing is performed, the problem arises that when two or more same packet numbers exist as shown in FIG. 3, it cannot be determined which block should be positioned. Therefore, in the positioning processing here, the problem is solved by comparing the size of the sector number of the block identification information designated as the positioning destination with the sector number held in the storage unit 13.
【0042】図4(b)を参照すれば、位置付け先とし
て指定されたブロック識別情報がセクタ番号10
[H]、パケット番号が1であるとした場合、位置付け
処理を開始すると、記憶部13に記憶されたセクタ番号
が10[H]であり、位置付け先ブロック識別情報のセ
クタ番号が10[H]であるため、主制御部3は指定セ
クタ(番号)が記憶部13に記憶されたセクタ(番号)
以上であるか否かの判定(ステップS41)を行い、指
定セクタ(番号)が記憶部13に記憶されたセクタ(番
号)以上であれば、記憶部13のセクタ番号に位置付け
(ステップS42)を行った後、指定パケット番号へ位
置付け(ステップS43)を行ってから位置付け処理を
終了するが、指定セクタ(番号)が記憶部13に記憶さ
れたセクタ(番号)よりも小さければ、記憶部13のセ
クタ番号に位置付け(ステップS42)をジャンプして
指定パケット番号へ位置付け(ステップS43)を行っ
てから位置付け処理を終了する。Referring to FIG. 4B, the block identification information designated as the positioning destination is the sector number 10.
[H], assuming that the packet number is 1, when the positioning process is started, the sector number stored in the storage unit 13 is 10 [H], and the sector number of the positioning destination block identification information is 10 [H]. Therefore, the main control unit 3 determines that the designated sector (number) is the sector (number) stored in the storage unit 13.
Whether or not it is above (step S41) is determined, and if the designated sector (number) is greater than or equal to the sector (number) stored in the storage unit 13, the sector number of the storage unit 13 is positioned (step S42). After that, the positioning process is ended after positioning to the designated packet number (step S43). If the designated sector (number) is smaller than the sector (number) stored in the storage unit 13, Positioning processing is ended after jumping to the sector number (step S42) and positioning to the designated packet number (step S43).
【0043】因みに、ここで指定パケット番号へ位置付
け(ステップS43)を行う場合、駆動回路4で磁気テ
ープ12を走行させ、記憶部13のセクタ番号10
[H]に位置付けて図3に示されるC4の状態とする。
ここでパケット番号が1のブロックはテープの始端方向
に1つで図3に示されるC2の状態と、テープ終端方向
に1つで図3に示されるC7の状態とによる総計2つの
状態が存在するが、ブロック識別情報管理部5は終端方
向にブロックが存在することを認識しているため、主制
御部3が駆動回路4を介して磁気テープ12をテープ終
端方向へ走行させた上、指定されたブロックとして図3
に示されるC7の状態へと位置付けることができる。Incidentally, when positioning to the designated packet number here (step S43), the magnetic tape 12 is made to run by the drive circuit 4 and the sector number 10 of the storage unit 13 is set.
It is positioned at [H] and is in the state of C4 shown in FIG.
Here, there is a total of two states with one block having a packet number of 1 in the tape starting end direction, the state of C2 shown in FIG. 3, and one in the tape end direction, and the state of C7 shown in FIG. However, since the block identification information management unit 5 recognizes that there is a block in the end direction, the main control unit 3 causes the magnetic tape 12 to run in the tape end direction via the drive circuit 4 and then specifies. Figure 3 as a block
It can be located in the C7 state shown in FIG.
【0044】図5は、磁気テープ処理装置2による磁気
テープ12の残部ブロックを対象にした書込み動作処理
の他例を示したフローチャートであり、同図(a)は全
動作処理に関するもの,同図(b)は同図(a)の全動
作処理に含まれる位置付け処理に関するものである。FIG. 5 is a flow chart showing another example of the write operation process for the remaining block of the magnetic tape 12 by the magnetic tape processing device 2, and FIG. 5 (a) relates to the entire operation process. (B) relates to the positioning processing included in all the operation processing in FIG.
【0045】この書込み動作処理の場合、先の図4に示
した一例の場合と比べ、位置付け命令であるか否かの判
定(ステップS3)において、位置付け命令である場合
の位置付け処理(ステップS4)の内容を一部変更する
と共に、位置付け命令でない場合に物理終端であるか否
かの判定(ステップS5)を加え、それ以降の処理はほ
ぼを同様に、書込み命令であるか否かの判定(ステップ
S6),書込み命令である場合の書込ヘッド9がテープ
にデータを書く処理(ステップS7),書込み命令であ
るか否かの成否によらないその後の読込回路6が読込ヘ
ッド7を介して磁気テープ12上に書込まれたブロック
を読込むことで読込ヘッド7がテープのブロック識別情
報(BID)を読む処理(ステップS8),及び書込み
命令を400000[H]回受信した状態(図3に示さ
れるC5)に相当するパケット(番号)が3FFFFF
であるか否かの判定(ステップS9)を行い、パケット
(番号)が3FFFFF[H]である場合に残部ブロッ
クへの書込み・読込みを行うときにセクタ番号が10
[H]であるとすると、ブロック識別情報管理部5が記
憶部13にセクタ番号10[H]のセクタ番号を通知
(ステップS10)してからパケット番号を零(0)に
リセットせずに磁気テープ12の物理終端を主制御部3
に通知(ステップS11)した後、書込みを続行するか
否かの判定(ステップS13)を行うようにする[尚、
パケット(番号)が3FFFFF[H]に到達していな
い場合にはパケット番号を1つ増やす処理(ステップS
12)を行った後、書込みを続行するか否かの判定(ス
テップS13)を行う]ことで、それ以降の書込み・読
込み命令や対応可能なセクタ番号を越えるような位置付
け命令に際して物理終端であるという通知を行うという
点が異なっている。In the case of this writing operation process, as compared with the case of the example shown in FIG. 4 above, in the determination of whether it is a positioning command (step S3), the positioning process when it is a positioning command (step S4). In addition to partially changing the contents of the above, if it is not a positioning instruction, it is determined whether it is a physical end (step S5), and the subsequent processing is almost the same, it is determined whether it is a write instruction ( Step S6), a process of writing data to the tape by the write head 9 in the case of a write command (step S7), and the subsequent read circuit 6 does not depend on the success or failure of the write command via the read head 7. The read head 7 reads the block identification information (BID) of the tape by reading the block written on the magnetic tape 12 (step S8), and the write command is 40,000. [H] times received status packet corresponding to (C5 shown in FIG. 3) (number) 3FFFFF
Is determined (step S9), and when the packet (number) is 3FFFFF [H], the sector number is 10 when writing / reading to the remaining block.
If it is [H], the block identification information managing unit 5 notifies the storage unit 13 of the sector number of the sector number 10 [H] (step S10), and then the packet number is not reset to zero (0). The physical end of the tape 12 is used as the main control unit 3.
After notifying (step S11), it is determined whether or not to continue writing (step S13).
If the packet (number) has not reached 3FFFFF [H], the process of incrementing the packet number by 1 (step S
12) is performed, and then it is determined whether or not to continue writing (step S13)], which is the physical end for subsequent write / read commands and positioning commands that exceed the applicable sector number. The difference is that notification is given.
【0046】即ち、ここではブロック識別情報管理部5
が記憶部13にセクタ番号10[H]を通知(ステップ
S10)した後にパケット番号を零(0)にリセットせ
ず磁気テープ12の物理終端を主制御部3に通知(ステ
ップS11)した時点において、それ以降に書込み命令
があっても先の物理終端であるか否かの判定(ステップ
S5)により物理終端と判定されて磁気テープ12へ命
令(ステップS2)が下される処理の前にリターンして
待機するため、結果として書込み動作が行われなくな
る。That is, here, the block identification information management unit 5
After notifying the storage unit 13 of the sector number 10 [H] (step S10) and not resetting the packet number to zero (0), the physical end of the magnetic tape 12 is notified to the main control unit 3 (step S11). Even if there is a write command after that, it returns before the processing of determining the physical end (step S5) and determining the physical end and issuing an instruction to the magnetic tape 12 (step S2). As a result, the write operation is not performed as a result.
【0047】ところで、先の位置付け命令であるか否か
の判定(ステップS3)で位置付け命令である場合に行
われる位置付け処理(ステップS4)は、具体的には図
5(b)に示されるような処理が行われる。By the way, the positioning process (step S4) carried out when it is the positioning command in the determination (step S3) as described above is concretely shown in FIG. 5 (b). Processing is performed.
【0048】図5(b)を参照すれば、位置付け命令が
あった場合、主制御部3は指定セクタ(番号)が記憶部
13に記憶されたセクタ(番号)以上であるか否かの判
定(ステップS41)を行い、指定セクタ(番号)が記
憶部13に記憶されたセクタ(番号)以上であれば、磁
気テープ12を走行させることなくブロック識別情報管
理部5が磁気テープ12の物理終端を主制御部3に通知
(ステップS42)した後に位置付け処理を終了する
が、指定セクタ(番号)が記憶部13に記憶されたセク
タ(番号)よりも小さければ、指定パケット番号へ位置
付け(ステップS43)を行ってから位置付け処理を終
了する。Referring to FIG. 5B, when there is a positioning command, the main control unit 3 determines whether the designated sector (number) is greater than or equal to the sector (number) stored in the storage unit 13. (Step S41), if the designated sector (number) is equal to or greater than the sector (number) stored in the storage unit 13, the block identification information management unit 5 causes the physical end of the magnetic tape 12 without running the magnetic tape 12. The positioning process is terminated after notifying the main control unit 3 (step S42), but if the designated sector (number) is smaller than the sector (number) stored in the storage unit 13, the positioning is performed to the designated packet number (step S43). ), And then the positioning process ends.
【0049】尚、ここでの書込み動作処理の他例では、
物理終端に到達したという通知を行う動作を説明した
が、これはあくまでも具体例の一つであり、パケット番
号が最大値に達した場合のセクタ番号以上への書込みや
読込みの命令に際して、それ以外にも例えば解読不能な
エラーが検出されたとする旨や、或いは不正処理が行わ
れたとする旨等を通知するようにしても良い。Incidentally, in another example of the write operation processing here,
The operation of notifying that the physical end has been reached has been described, but this is only one specific example, and when a packet number reaches the maximum value, a write or read instruction to a sector number or higher is performed. Also, for example, it may be notified that an undecipherable error has been detected or that illegal processing has been performed.
【0050】図6は、磁気テープ処理装置2による磁気
テープ12の残部ブロックを対象にした書込み動作処理
の別例を示したフローチャートであり、同図(a)は全
動作処理に関するもの,同図(b)は同図(a)の全動
作処理に含まれる位置付け処理に関するものである。
又、図7は、この書込み動作処理で磁気テープ12上に
書込まれるブロックを例示した概略図である。FIG. 6 is a flow chart showing another example of the write operation processing for the remaining blocks of the magnetic tape 12 by the magnetic tape processing device 2. FIG. 6A shows the whole operation processing, (B) relates to the positioning processing included in all the operation processing in FIG.
FIG. 7 is a schematic diagram exemplifying blocks written on the magnetic tape 12 in this writing operation process.
【0051】この書込み動作処理の場合、先の図4に示
した一例の場合と比べ、書込み命令を400000
[H]回受信した状態(図3に示されるC5)に相当す
るパケット(番号)が3FFFFFであるか否かの判定
(ステップS8)を行い、パケット(番号)が3FFF
FF[H]である場合に残部ブロックへの書込み・読込
みを行うときにブロック識別情報管理部5が記憶部13
にセクタ番号を累積的に記憶通知(ステップS9)さ
せ、パケット番号が最大値に達する場合が2回以上発生
したときに記憶部13の記憶容量を拡張し、各々セクタ
番号を記憶する機能を持たせた点が相違している。In the case of this write operation process, the write command is 400000 as compared with the case of the example shown in FIG.
It is determined whether or not the packet (number) corresponding to the state of being received [H] times (C5 shown in FIG. 3) is 3FFFFF (step S8), and the packet (number) is 3FFF.
When it is FF [H], the block identification information management unit 5 causes the storage unit 13 to perform writing / reading to the remaining block.
Has a function of storing the sector numbers cumulatively (step S9), expanding the storage capacity of the storage unit 13 when the packet number reaches the maximum value more than once, and storing each sector number. The differences are different.
【0052】具体的に言えば、パケット(番号)が3F
FFFFであるか否かの判定(ステップS8)で例えば
書込み命令を800000[H]回受信して書込み処理
を行う場合、パケット番号が最大値に2回到達した状態
(図7に示されるD5,D9)であるならば、セクタ番
号を累積的に記憶通知(ステップS9)させる処理で
は、記憶部13にそれぞれのセクタ番号(例えば10
[H]と20[H])が保持される。Specifically, the packet (number) is 3F
When it is determined whether or not it is FFFF (step S8), for example, when the write command is received 800,000 [H] times and the write processing is performed, the packet number reaches the maximum value twice (D5 shown in FIG. 7). If it is D9), in the process of cumulatively notifying the storage of sector numbers (step S9), each sector number (for example, 10) is stored in the storage unit 13.
[H] and 20 [H]) are retained.
【0053】ここで、位置付け命令であるか否かの判定
(ステップS3)において、上位装置1からセクタ番号
20[H]、パケット番号1への位置付け命令を受信し
たとすると、図6(b)に示される位置付け処理では、
主制御部3は指定セクタ(番号)が記憶部13に記憶さ
れたセクタ(番号)以上であるか否かの判定(ステップ
S41)で記憶部13に保持された10[H],20
[H]という2つのセクタ番号と指定されたブロック識
別情報のセクタ番号20[H]とを比較するが、指定セ
クタ(番号)が記憶部13に記憶されたセクタ(番号)
以上であれば、記憶部13のセクタ番号に位置付け(ス
テップS42)を行った後、指定パケット番号へ位置付
け(ステップS43)を行ってから位置付け処理を終了
するが、指定セクタ(番号)が記憶部13に記憶された
セクタ(番号)よりも小さければ、記憶部13のセクタ
番号に位置付け(ステップS42)をジャンプして指定
パケット番号へ位置付け(ステップS43)を行ってか
ら位置付け処理を終了する。20[H]が一致するた
め、記憶部13のセクタ番号に位置付け(ステップS4
2)ではそのセクタ番号20[H]に位置付けを行った
後、指定パケット番号へ位置付け(ステップS43)で
は指定されたパケット番号1のブロック(図7に示され
るD11)へ位置付けを行う。Here, if it is assumed that the positioning command to the sector number 20 [H] and the packet number 1 is received from the host device 1 in the judgment of whether or not it is the positioning command (step S3), FIG. 6B. In the positioning process shown in,
The main control unit 3 determines whether the designated sector (number) is equal to or larger than the sector (number) stored in the storage unit 13 (step S41) and holds 10 [H], 20 in the storage unit 13.
Two sector numbers [H] are compared with the sector number 20 [H] of the designated block identification information, but the designated sector (number) is stored in the storage unit 13 (sector (number)).
In the above case, after the sector number of the storage unit 13 is positioned (step S42), the positioning process is ended after positioning the designated packet number (step S43), but the designated sector (number) is stored in the storage unit. If it is smaller than the sector (number) stored in 13, the positioning (step S42) is jumped to the sector number of the storage unit 13, the positioning is performed to the designated packet number (step S43), and then the positioning process is ended. Since 20 [H] match, the sector number of the storage unit 13 is set (step S4).
In 2), the sector number 20 [H] is positioned, and then the designated packet number is positioned (step S43), and the block of the designated packet number 1 (D11 shown in FIG. 7) is positioned.
【0054】即ち、この書込み動作処理の別例の場合、
記憶部13の記憶容量を拡張した上、各々セクタ番号を
記憶する機能を持たせるようにしているので、上述した
手順に従えば、同一のパケット番号が3つ以上存在する
(図7に示されるD2,D7,D11)ような場合で
も、正確に位置付け処理を行うことができる。That is, in the case of another example of the write operation process,
Since the storage capacity of the storage unit 13 is expanded and each sector has a function of storing the sector number, there are three or more identical packet numbers according to the procedure described above (shown in FIG. 7). Even in the case of D2, D7, D11), the positioning process can be performed accurately.
【0055】[0055]
【発明の効果】以上に述べた通り、本発明の磁気テープ
処理装置によれば、上位装置から書込み又は読込みの命
令が継続するときに読込ヘッドにより磁気テープ上から
読込んだブロック識別情報としてのパケット番号が読込
回路を介してブロック識別情報管理部及び主制御部へ送
出され、主制御部がパケット番号が最大値に達した時点
でその最大値に達したブロック以降の残部ブロックに対
応するセクタ番号を記憶部に記憶させてからブロック識
別情報管理部に保持されたパケット番号を零にリセット
した後、記憶部に記憶されたセクタ番号を参照して磁気
テープ上における残部ブロックを書込むための残部ブロ
ック用書込み制御を行うか、或いは磁気テープ上から残
部ブロックを読込むための残部ブロック用読込み制御を
行う機能と、磁気テープの排出動作時に記憶部から読み
出したセクタ番号を磁気テープ上における残部ブロック
に対応する書込み又は読込みに供されるブロック以外の
領域に書込回路を介して書込ヘッドにより書込むための
セクタ番号用書込み制御を行う機能と、排出後の再投入
時に読込回路を介して読込ヘッドにより磁気テープ上か
らセクタ番号を読み出した結果に基づいて残部ブロック
の有無を認識する機能とを有するため、磁気テープの残
部ブロックに対して更に読込み・書き込みの動作を適確
に実行できるようになると共に、上位装置から新規に送
信した位置付け命令に対して正確に動作処理を行うこと
ができるようになる他、残部ブロックを持つ磁気テープ
であることを容易に認識でき、追加記録を行うと不正に
なることを適確に防止できるようになる。結果として、
この磁気テープ処置装置の場合、投入された磁気テープ
における外部の上位装置から送信されるブロック識別情
報としてのパケット番号が最大値に達したブロック以降
を示す残部ブロックを対象として書込み,読込み,位置
付けの命令を正常に処理し、且つ残部ブロックに対応す
るセクタ番号を磁気テープに記録・再生することでその
磁気テープを排出後に再投入しても残部ブロックの有無
を認識可能なブロック識別情報管理機能が構築され、ブ
ロック識別情報としてのパケット番号が最大値を越えて
も磁気テープの残り部分を基本動作上において無理無く
有効に使用できるようになる。As described above, according to the magnetic tape processing apparatus of the present invention, the block identification information is read from the magnetic tape by the read head when the write or read command is continued from the host device. The packet number is sent to the block identification information management unit and the main control unit via the reading circuit, and when the main control unit reaches the maximum value, the sector corresponding to the remaining block after the block that has reached the maximum value After the number is stored in the storage unit, the packet number held in the block identification information management unit is reset to zero, and then the remaining block on the magnetic tape is written by referring to the sector number stored in the storage unit. A function to perform write control for the remaining block or read control for the remaining block to read the remaining block from the magnetic tape; Sector for reading the sector number read from the storage unit during the write operation of the group in the area other than the block for writing or reading corresponding to the remaining block on the magnetic tape through the write circuit by the write head. Since it has the function of performing write control for numbers and the function of recognizing the presence or absence of the remaining block based on the result of reading the sector number from the magnetic tape by the read head via the read circuit at the time of recharging after ejection, In addition to being able to perform more accurate read / write operations on the remaining blocks of the tape, it will also be possible to perform accurate operation processing for positioning commands newly sent from the host device. It is possible to easily recognize that it is a magnetic tape with a remaining block and properly prevent it from becoming illegal if additional recording is performed. That. as a result,
In the case of this magnetic tape processing device, writing, reading, and positioning are performed on the remaining blocks after the block in which the packet number as the block identification information transmitted from the external higher-level device on the input magnetic tape reaches the maximum value. A block identification information management function that can process the command normally and record / reproduce the sector number corresponding to the remaining block on the magnetic tape to recognize the presence or absence of the remaining block even if the magnetic tape is ejected again after being ejected. Even if the packet number as the block identification information exceeds the maximum value, the remaining part of the magnetic tape can be effectively used without difficulty in basic operation.
【図1】本発明の一実施例に係るブロック識別情報管理
機能を有する磁気テープ処理装置の基本構成を示したブ
ロック図である。FIG. 1 is a block diagram showing a basic configuration of a magnetic tape processing device having a block identification information management function according to an embodiment of the present invention.
【図2】図1に示す磁気テープ処理装置に備えられるブ
ロック識別情報管理部で管理されるブロック識別情報を
模式的に示したフォーマットである。FIG. 2 is a format schematically showing block identification information managed by a block identification information management unit provided in the magnetic tape processing device shown in FIG.
【図3】図1に示す磁気テープ処理装置に備えられる磁
気テープ上に書込み又は読込みされるブロックを示した
概略図である。3 is a schematic diagram showing blocks to be written or read on a magnetic tape provided in the magnetic tape processing device shown in FIG. 1. FIG.
【図4】図1に示す磁気テープ処理装置による磁気テー
プの残部ブロックを対象にした書込み動作処理の一例を
示したフローチャートであり、(a)は全動作処理に関
するもの,(b)は(a)の全動作処理に含まれる位置
付け処理に関するものである。4A and 4B are flowcharts showing an example of a write operation process for the remaining block of the magnetic tape by the magnetic tape processing device shown in FIG. 1, where FIG. 4A is for all operation processes, and FIG. ) Related to the positioning process included in the whole operation process.
【図5】図1に示す磁気テープ処理装置による磁気テー
プの残部ブロックを対象にした書込み動作処理の他例を
示したフローチャートであり、(a)は全動作処理に関
するもの,(b)は(a)の全動作処理に含まれる位置
付け処理に関するものである。5A and 5B are flowcharts showing another example of the write operation processing for the remaining blocks of the magnetic tape by the magnetic tape processing apparatus shown in FIG. 1, where FIG. 5A is for all operation processing, and FIG. The present invention relates to the positioning process included in the whole operation process of a).
【図6】図1に示す磁気テープ処理装置による磁気テー
プの残部ブロックを対象にした書込み動作処理の別例を
示したフローチャートであり、(a)は全動作処理に関
するもの,(b)は(a)の全動作処理に含まれる位置
付け処理に関するものである。6A and 6B are flowcharts showing another example of the write operation processing for the remaining blocks of the magnetic tape by the magnetic tape processing apparatus shown in FIG. 1, where FIG. 6A is for all operation processing, and FIG. The present invention relates to the positioning process included in the whole operation process of a).
【図7】図6で説明した書込み動作処理で磁気テープ上
に書込まれるブロックを例示した概略図である。FIG. 7 is a schematic diagram exemplifying blocks written on the magnetic tape in the writing operation process described in FIG. 6;
【図8】従来のブロック識別情報管理機能を有する磁気
テープ処理装置の基本構成を示したブロック図である。FIG. 8 is a block diagram showing a basic configuration of a conventional magnetic tape processing device having a block identification information management function.
1,10 上位装置 2,20 磁気テープ処理装置 3,30 主制御部 4,40 駆動回路 5 ブロック識別情報(BID)管理部 6,16 読込回路 7 読込ヘッド 8,18 書込回路 9 書込ヘッド 11a,11b リール 12 磁気テープ 13 記憶部 1,10 Host device 2,20 Magnetic tape processor 3,30 Main control unit 4,40 drive circuit 5 Block identification information (BID) management unit 6,16 Read circuit 7 reading head 8,18 Writing circuit 9 writing head 11a, 11b reel 12 magnetic tape 13 Storage
───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G11B 20/10 G11B 20/12 G11B 27/10 G11B 27/28 G06F 3/06 ─────────────────────────────────────────────────── ─── Continuation of the front page (58) Fields surveyed (Int.Cl. 7 , DB name) G11B 20/10 G11B 20/12 G11B 27/10 G11B 27/28 G06F 3/06
Claims (6)
は読込みの命令に付加されるブロック識別情報としての
パケット番号に基づいて投入された磁気テープにおける
ブロックの書込み又は読込みの動作を行うブロック識別
情報管理機能を有する磁気テープ処理装置において、前
記書込みの命令に従って書込回路を介して書込ヘッドに
より前記磁気テープ上にブロックを書込むための書込み
制御を行うと共に、書込まれたブロックを読込回路を介
して読込ヘッドにより読込むための追従読込み制御を行
う主制御部と、前記追従読込み制御で読込まれたブロッ
クのパケット番号を前記読込回路を介して読込み保持し
た上で前記主制御部へ送出するブロック識別情報管理部
と、前記ブロック識別情報管理部から送出されて前記主
制御部により判別された前記パケット番号が最大値に達
したブロック以降を示す残部ブロックに対応するセクタ
番号を記憶する記憶部とを備え、更に、前記主制御部
は、前記上位装置からの前記書込み命令が継続して受信
されるときに前記パケット番号が最大値に達した時点で
前記残部ブロックに対応する前記セクタ番号を前記記憶
部に記憶させてから前記ブロック識別情報管理部に保持
された該パケット番号を零にリセットした後、該記憶部
に記憶された該セクタ番号を参照して前記書込回路を介
して前記書込ヘッドにより前記磁気テープ上における該
残部ブロックを書込むための残部ブロック用書込み制御
を行うことを特徴とする磁気テープ処理装置。1. Block identification information for performing a writing or reading operation of a block in a magnetic tape which is input based on a packet number as a block identification information added to a writing or reading command transmitted from an external host device. In a magnetic tape processing device having a management function, write control is performed for writing a block on the magnetic tape by a write head via a write circuit according to the write command, and the written block is read by a read circuit. A main control unit for performing a follow-up read control for reading by a read head through a block, and a block for reading and holding the packet number of the block read by the follow-up read control via the read circuit and then sending the block to the main control unit. It is sent from the identification information management unit and the block identification information management unit and is discriminated by the main control unit. A storage unit that stores a sector number corresponding to a remaining block indicating a block after the packet number that has reached the maximum value, and the main control unit is further configured to continue the write command from the host device. When the packet number reaches the maximum value when it is received, the sector number corresponding to the remaining block is stored in the storage unit, and then the packet number held in the block identification information management unit is set to zero. Reset control to write the remaining block on the magnetic tape by the write head through the write circuit with reference to the sector number stored in the storage unit. A magnetic tape processing device characterized by performing.
いて、前記主制御部は、前記読込みの命令に従って前記
読込回路を介して前記読込ヘッドにより前記磁気テープ
上からブロックを読込む読込み制御を行い、前記ブロッ
ク識別情報管理部は、前記読込み制御で読込まれたブロ
ックのパケット番号を前記読込回路を介して読込み保持
した上で前記主制御部へ送出し、前記記憶部は、前記ブ
ロック識別情報管理部から送出されて前記主制御部によ
り判別された前記パケット番号が最大値に達したブロッ
ク以降を示す残部ブロックに対応するセクタ番号を記憶
し、更に、前記主制御部は、前記上位装置からの前記読
込み命令が継続して受信されるときに前記パケット番号
が最大値に達した時点で前記残部ブロックに対応する前
記セクタ番号を前記記憶部に記憶させてから前記ブロッ
ク識別情報管理部に保持された該パケット番号を零にリ
セットした後、該記憶部に記憶された該セクタ番号を参
照して前記読込回路を介して前記読込ヘッドにより前記
磁気テープ上から該残部ブロックを読込むための残部用
ブロック読込み制御を行うことを特徴とする磁気テープ
処理装置。2. The magnetic tape processing apparatus according to claim 1, wherein the main control unit performs read control for reading a block from the magnetic tape by the read head via the read circuit according to the read instruction. The block identification information management unit reads and holds the packet number of the block read by the read control via the reading circuit and then sends the packet number to the main control unit, and the storage unit stores the block identification information management. A sector number corresponding to a remaining block indicating a block after the packet number that has been sent out from the unit and determined by the main control unit has reached the maximum value, and the main control unit stores the sector number from the higher-level device. When the read command is continuously received, when the packet number reaches the maximum value, the sector number corresponding to the remaining block After the packet number held in the block identification information management unit after being stored in the storage unit is reset to zero, the read head is read through the read circuit with reference to the sector number stored in the storage unit. The magnetic tape processing apparatus is characterized in that the block reading control for the remaining portion for reading the remaining block from the magnetic tape is performed by the following.
置において、前記上位装置は、前記残部ブロックに対す
る前記書込み又は前記読込みの命令に付加される位置付
け命令を送信し、前記主制御部は、前記位置付け命令を
受信したときに位置付け処理として指定されたセクタ番
号と前記記憶部に記憶された前記セクタ番号との大きさ
を比較した結果に基づいて、該指定された該セクタ番号
が該記憶部に記憶された該セクタ番号以上であるときに
該記憶部に記憶された該セクタ番号に位置付けを行って
から該指定された前記パケット番号に位置付けを行い、
該指定された該セクタ番号が該記憶部に記憶された該セ
クタ番号未満であるときに該指定された該パケット番号
に位置付けを行った後、該位置付けの結果に基づく書込
み動作又は読込みの動作に際して前記磁気テープを両側
で巻回したリールを駆動回路により駆動して該磁気テー
プを所定量走行させる駆動制御を行うことを特徴とする
磁気テープ処理装置。3. The magnetic tape processing device according to claim 1, wherein the host device transmits a positioning command added to the write or read command for the remaining block, and the main control unit: Based on the result of comparing the size of the sector number designated as the positioning processing when the positioning command is received with the sector number stored in the storage unit, the designated sector number is stored in the storage unit. When the sector number stored in the storage unit is greater than or equal to the sector number stored in, then the designated packet number is positioned.
When the designated packet number is less than the sector number stored in the storage unit, the designated packet number is positioned, and then the writing operation or the reading operation is performed based on the positioning result. A magnetic tape processing apparatus, characterized in that a drive circuit drives a reel having the magnetic tape wound on both sides to drive the reel by a predetermined amount.
テープ処理装置において、前記主制御部は、前記磁気テ
ープの排出時に前記記憶部に記憶された前記セクタ番号
を読み出して前記書込回路を介して前記書込ヘッドによ
り該磁気テープ上における所定の位置に書込むためのセ
クタ番号用書込み制御を行うことを特徴とする磁気テー
プ処理装置。4. The magnetic tape processing apparatus according to claim 1, wherein the main controller reads the sector number stored in the storage unit when the magnetic tape is ejected, and the main controller reads the sector number. A magnetic tape processing apparatus, wherein write control for a sector number for writing at a predetermined position on the magnetic tape is performed by the write head via a write circuit.
いて、前記セクタ番号用書込み制御では、前記所定の位
置として前記残部ブロックに対応する書込み又は読込み
に供されるブロック以外の領域を対象として前記セクタ
番号の書込みを行うことを特徴とする磁気テープ処理装
置。5. The magnetic tape processing device according to claim 4, wherein, in the sector number write control, an area other than a block provided for writing or reading corresponding to the remaining block as the predetermined position is targeted. A magnetic tape processing device characterized by writing a sector number.
置において、前記主制御部は、前記磁気テープの排出後
の再投入時に前記読込回路を介して前記読込ヘッドによ
り前記磁気テープ上から前記セクタ番号を読み出した結
果に基づいて前記残部ブロックの有無を認識することを
特徴とする磁気テープ処理装置。6. The magnetic tape processing apparatus according to claim 4 or 5, wherein the main control unit causes the read head to read the magnetic tape from above the magnetic tape via the read circuit when the magnetic tape is reloaded after being ejected. A magnetic tape processing apparatus, wherein the presence or absence of the remaining block is recognized based on a result of reading a sector number.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000232895A JP3456530B2 (en) | 2000-08-01 | 2000-08-01 | Magnetic tape processing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000232895A JP3456530B2 (en) | 2000-08-01 | 2000-08-01 | Magnetic tape processing device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2002049471A JP2002049471A (en) | 2002-02-15 |
| JP3456530B2 true JP3456530B2 (en) | 2003-10-14 |
Family
ID=18725503
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000232895A Expired - Fee Related JP3456530B2 (en) | 2000-08-01 | 2000-08-01 | Magnetic tape processing device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3456530B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6089856B2 (en) * | 2013-03-26 | 2017-03-08 | 富士通株式会社 | Virtual tape device, tape control device, and tape control method |
-
2000
- 2000-08-01 JP JP2000232895A patent/JP3456530B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2002049471A (en) | 2002-02-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2008016117A (en) | Data writing method to tape, data writing program to tape, and tape storage device | |
| WO2011023610A1 (en) | Data storage drive overwrite protection of non-worm cartridges | |
| JP3456530B2 (en) | Magnetic tape processing device | |
| JPH08335372A (en) | Method and apparatus for storage of defined information intodirect-access storage device together with error correctioncode | |
| US6833970B2 (en) | Data storage | |
| JP3431582B2 (en) | Desk storage device and processing method when hang-up occurs applied to the device | |
| US20050169126A1 (en) | Library for storing and retrieving removable information storage elements | |
| JP4452269B2 (en) | Tape recording apparatus with improved data writing performance and data writing control method thereof | |
| US7389378B2 (en) | Write processing method for stream type commands and medium storage apparatus | |
| US7324297B2 (en) | Data storage apparatus and method | |
| JP3077667B2 (en) | Magnetic tape device and computer-readable magnetic tape medium | |
| US7167332B2 (en) | Method and apparatus for recording data onto a recording medium including warning of the approach to an end of medium position | |
| JPH02103778A (en) | Data recording and playback method | |
| JPH10161942A (en) | Information storage method, information storage device, and information processing device | |
| JP2002042303A (en) | Magnetic disk drive and error processing method for magnetic disk drive | |
| JP2972365B2 (en) | Access control method for magnetic tape storage | |
| JPH04285783A (en) | System for managing magnetic tape storage device | |
| JP2004013327A (en) | Information processing apparatus and information processing method | |
| JP3689128B2 (en) | Information recording / reproducing device | |
| JP3402777B2 (en) | Write-once information recording medium sector management method | |
| JP2000030369A (en) | Information recording device | |
| JPS58143408A (en) | Magnetic tape writing control circuit | |
| JPH10255359A (en) | Accessor control device | |
| JPH10269729A (en) | Disk unit | |
| JPS6013360A (en) | Storage device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20030702 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070801 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090801 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090801 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100801 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |