3.2.3WRITE (0A)
Byte | Bit | 7 | 6 | 5 |
| 4 |
| 3 |
| 2 | 1 |
| 0 |
|
|
|
|
| |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
0 |
|
|
|
|
|
| X‘0A’ |
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |||
1 |
|
| LUN |
|
|
| Logical Block Address (MSB) |
| |||||
|
|
|
|
|
|
|
|
|
|
| |||
2 |
|
|
|
| Logical Block Address |
|
|
|
| ||||
|
|
|
|
|
|
|
| ||||||
3 |
|
|
| Logical Block Address (LSB) |
|
|
| ||||||
|
|
|
|
|
|
|
|
|
| ||||
4 |
|
|
|
| Transfer Block Count |
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
| ||
5 |
| 0 | 0 | 0 | 0 | 0 |
| 0 | Flag |
| Link | ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This command transfers the number of blocks of data specified in the "Transfer block count" field from the INIT and writes them in continuous logical data blocks with the logical data block on the disk media specified in the "Logical block address" field in the CDB as the top.
The transfer block count can be specified up to a maximum of 256 logical data blocks. When zero is specified in the "Transfer block count" field in byte 4 of the CDB, it specifies transfer of 256 logical data blocks and when a value other than zero is specified, it specifies the number of logical data blocks that should be transferred.
When transfer of multiple data blocks is instructed by this command, when the data blocks which are to be processed come to a track boundary, cylinder boundary or zone boundary, a head switch or cylinder switch is executed automatically and writing of the specified number of blocks is performed.
When the specifications in the "Logical block address" field and "Transfer block count" field in the CDB exceed the maximum logical block address in the IDD, that command is terminated with a CHECK CONDITION status (ILLEGAL REQUEST [=5] / Logical block address out of range
The IDD does not perform data transfer immediately after receiving the CDB, but after performing automatic disconnect processing once, it executes
If the write cache function is enabled, the IDD reports a status byte at the point when reception of all the data transferred from the INIT is completed. If an error occurs while data are being written to the disk media, a CHECK CONDITION status is reported for the command to be executed next. If the write cache function is disabled, a status byte is reported after writing to the disk media of all the data transferred from the INIT is completed, then execution of the command is terminated.
3 - 77 |