Appendix b: query – O'Neil microFlash Series User Manual

Page 111

Advertising
background image

User Manual and Technical Guide The O'Neil microFlash Series of Printers

101

Appendix B: Query

Queries can be sent to the microFlash via the infrared link 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 (e.g. 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.

Query Format

Query Format:

ESC

{Query?}

Reply Format:

{Query!Query1:Reply1;...QueryN:ReplyN}

Function:

The word “Query” in the Query Format above is
replaced in each case by a specific command.
For example, send the string {BT?}.

Interpreting the Reply to a Query

Consult the table for each Query command to interpret the reply. Each
reply will contain several pairs of letters. The first letter or “query
character.” is separated from the reply character by a colon “:” and the
pair is followed by a semi-colon “;”. 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.”

11

Advertising