T480
Extended Printer Control
T480
Programmer’s Guide
Page
228
Rev A
100-14362
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
Return File CRC command.
All
ASCII
[ESC] [RS] G <Filename><0>
Hexadecimal
1BH 1EH 47H
Decimal
<27> <30> <71>
FileName
File name from 1 to 30 characters including a three character extension,
null terminated.
Description
The [ESC] [RS]G command will return the CRC of the specified file.
Note:
If the file does not exist a CRC will not be valid and the last file
system status will be updated.