T480
Programmer’s Guide
T480
Extended Printer Control
100-14362
Rev A
Page 229
Function
Query File Status.
All
ASCII
[ESC] [RS] q
Hexadecimal
1BH 1EH 71H
Decimal
<27> <30> <113>
Description
The [ESC] [RS]q command will return the CRC and length of the currently
open file.
Return
ACK File open
NAK
File not open
Length High
0
Length Low
0
CRC High
0
CRC Low
0
Function
Write File command.
All
ASCII
[ESC] [RS] W <L
L
><L
H
><… 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.
Function
Read File command.
All
ASCII
[ESC] [RS] R <L
L
><L
H
>
Hexadecimal
1BH 1EH 52H
Decimal
<27> <30> <82>
Description
The [ESC] [RS]R command requests that data be read from the file and
returned to the host.
The <LL><LH> parameters specify the length of data that should be returned where LH *
256 + LL specifies the number of returned bytes. The data is treated as binary data with
no translations. If there is not enough data in the file to make up the requested length,
only the available data is returned.
Function
Generate and return a file directory report.
All
ASCII
[ESC] [RS] I
Hexadecimal
1BH 1EH 49H
Decimal
<27> <30> <73>
Description
The [ESC] [RS]I command requests that a formatted text directory be
returned from the printer. Each line is null terminated.
Function
Erase all files in a partition
All
ASCII
[ESC] [RS] X <p>
Hexadecimal
1BH 1EH 58H
Decimal
<27> <30> <88>
<p>
selects the partition. 0 = System, 1 = User.
Description
The [ESC] [RS]X command requests that the selected partition be
reformatted. Reformatting the system partition <0> is not recommended, as it will erase
all fonts and render the printer unusable.