6.3.31 ATA Card Information Acquire Command [ESC] WI
Function
Format
Term
Explanation
Sends information regarding the use of the ATA card to the host.
[ESC] WI; a, b [LF] [NUL]
a:Drive
1: | Slot 1 | ATA card |
2: | Slot 2 | ATA card |
b:Information to be acquired
A:Free space
B:Writable character list
C:Stored PC command save file
(1)The format of information to be returned to the host is as follows: A: Free space
SOH | STX | “A” | Slot |
| Free space (Kbyte) |
| ETX | EOT | CR | LF | |||
01H | 02H | 41H | xxH | 3xH | 3xH | 3xH | 3xH | 3xH | 3xH | 03H | 04H | 0DH | 0AH |
Free space (in units of Kbytes):
Slot:
000000 (KB) to 999999 (KB)
“1” (31H): Slot 1
“2” (32H): Slot 2
When the ATA card is not inserted into a specified slot, “00H, 00H, 00H, 00H, 00H, 00H” is returned for the free spaces.
B: Writable character list
SOH | STX | “B” | Slot | Storage information for writable character | ETX | EOT | CR | LF | |||||
| (55 bytes) | ||||||||||||
|
|
|
|
|
|
|
|
| |||||
01H | 02H | 42H | xxH | “0”/“1” | “0”/“1” | ········ | “0”/“1” | “0”/“1” |
| 03H | 04H | 0DH | 0AH |
Writable character No. 55
Writable character No. 54
Writable character No. 02
Writable character No. 01 “0” (30H): Not stored “1” (31H): Stored
Slot
“1” (31H): Slot 1
“2” (32H): Slot 2
If only one writable character is stored, information of the writable character No. is set to “1” (Stored). The storage information of a specified character code can be acquired by using the ATA Card Writable Character Information Acquire Command ([ESC] WG).
The storage information for the writable character has a total of 55 bytes. The writable character No. is assigned from 01 to 44, and from 51 to 55. Therefore, bytes to which Nos. 45 to 50 are assigned are sure to be set to “0” (30H). When the ATA card is not inserted in the specified slot, “00H” for the storage information for the writable character is returned.
- 184 -