Intermec PK80 Printer User Manual


 
CommandsAppendix A
46 PK80 Series 80-Column Printer User’s Manual
Query Commands
Note: Any time ESC is used in a command, the command needs to con-
tain the actual ASCII character for ESC (0x1B), not the letters E-S-C.
Thereshouldbenospacesbeforethenextcharacter.Sometimesaspaceis
included in the documentation for readability.
Queries can be sent to the PK80 Printer via the Bluetooth or the RS-232
data link. The printer’s reply to a query returns information about the
printer or the print request. There are three steps involved:
1 Frame your query using the correct command format.
2 Send the Query (for example, via an applications program or a terminal
emulator such as “Terminal” in the Windows Accessories group).
3 Use the appropriate table to interpret the printer’s reply.
Interpreting the Reply to a Query
Consult the table for each Query command to interpret the reply. Each
reply contains several pairs of letters. The f irst letter or “query character” is
separated from the reply character by a colon (:) and the pair is followed
by a semicolon (;). Example: E:N; (part of the reply to a STATUS query).
According to the STATUS table, the E refers to “errors“ in Easy Print
Commands. An N means “no errors.”
Quick Reference
Command Format Description
Status ESC{ST?} Returns information about the printer’s ability to print
the next report, and reports any errors from the last
print requ e s t, su ch as paper condition, command errors,
buffer size, or battery voltage.
Configuration ESC{CF?} Returns information about configuration options, such
as baud rate, default mode, time-out, etc.
Version ESC{VR?} Returns th e version number of the loaded firmware,
boot code, and download files.
Memory ESC{MY?} Retu rns the size of all memory available the amount
used and the amount remaining for the application.
Print Head ESC{PH?} Returnstheprintheadtypeinuseandthenumberof
dots across.
Fonts ESC{FN?} Returns a list of available fonts.
Note: The order of the printer’s reply to a query may change, and new
queries will be added. Therefore, search for the “Query character” to find
data whenever interpreting the reply to a query.