User's Guide

Commands: Rewind (01h) Page 149
REWIND (01h)
The REWIND command causes the drive to rewind the cartridge to the Beginning-
of-Partition (BOP). Any write data remaining in the buffer will be first recorded to the
tape, and an EOD marker will be recorded. The REWIND operation is done in the
high speed mode.
REWIND Command Descriptor Block
The following table shows the layout of the CDB.
Byte
Bits
7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 1
1 0 0 0 0 0 0 0 IMMED
2 0 0 0 0 0 0 0 0
3 0 0 0 0 0 0 0 0
4 0 0 0 0 0 0 0 0
5 vendor unique* 0 0 0 0 Flag Link
* This vendor-unique field is reserved and must be set to zero.
Command Descriptor Block Field Description
The immediate (IMMED) bit (byte 1, bit 0) can be used to specify that status be
returned as soon as the operation is initiated. When this bit is 1, the status is
returned as soon as the rewind operation is initiated.
When this bit is 0, the status is not returned until the REWIND operation is
completed.
Completion Status
The Completion Status for the REWIND command is shown in the following table.
Code Message Description
00h Good
Status
The drive is ready to perform any appropriate command.
The drive remains in any previously set mode.
The tape position is BOP (if not IMMED).
02h Check
Condition
Extended Sense Byte 02h:
Code Message Description
02h Not Ready No cartridge is inserted in the drive, or the
cartridge is being positioned to BOT.
03h Medium Error See previous Exception Condition.
04h Hardware Error Drive hardware failure detected.
05h Illegal Request
The CDB contains an invalid bit.
The Link bit and IMMED bit are both set
to 1.
06h Unit
Cartridge was changed prior to accepting
Attention this command
The drive was reset prior to this command.
08h Busy An immediate command is in progress.