File System
Function | Return the last file command status. | All | |
ASCII | [ESC] [RS] ? |
| |
Hexadecimal | 1BH 1EH 3FH |
| |
Decimal | <27> <30> <63> |
|
The [ESC][RS]? Command requests the file system to return the status of the last file operation.
This command returns an identifier byte, followed by 2 bytes indicating the status results of the last file command. The format will be as follows:
?<Status><Details> | or | 3F, (47 or 42), <Details> |
Where:
Status = ‘G’ for success and ‘B’ for Failure
Detail = Detailed status as a binary byte with bit definitions as follows:
| Bit |
| Hex | Decimal | Function |
|
| 0 |
| 01 | 1 | File Open |
|
| 1 |
| 02 | 2 | File in Write Mode |
|
| 2 |
| 04 | 4 | The Read response is shorter than requested |
|
|
|
|
|
| and EOF has been encountered. |
|
| 3 |
| 08 | 8 | The file is already open. |
|
| 4 |
| 10 | 16 | The file system has no space for the preceding |
|
|
|
|
|
| operation. Could be out of Flash or out of Buffer |
|
|
|
|
|
| space. |
|
| 5 |
| 20 | 32 | A write operation has been attempted to a read |
|
|
|
|
|
| only file. |
|
| 6 |
| 40 | 64 | File requested was not found |
|
| 8 |
| 80 | 128 | An error has occurred. Other bits may be set that |
|
|
|
|
|
| give additional detail. (This bit determines the G |
|
|
|
|
|
| or B status in the previous byte) |
|
|
|
| ||||
Function | Write File command. | All |
ASCII [ESC] [RS] W <LL><LH><… data ..>
Hexadecimal 1BH 1EH 57H Decimal <27> <30> <87>
Description The [ESC] [RS]W command sends data to the printer to be stored in the file. The <LL><LH> parameters specify the length of data that will follow where the length is LH * 256 + LL. The data is treated as binary data with no translations.
Page 224 |
|
|
|