Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 12 of 14

User Manual and Technical Guide: The O'Neil microFlash Series of Printers, pages 111 to 120

Pages 111 to 120 of 135

The original document is the PDF (727 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the O'Neil MicroFLASH-2, O'Neil MicroFLASH-2I, O'Neil MicroFLASH-2T (MF2T), Datamax MicroFLASH-2, Datamax MicroFLASH-2I and Datamax MicroFLASH-2T (MF2T)

Page 111

Appendix B: Query

11 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.”

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

• 101

Page 112

Quick Reference

Command

Format

Description

Status

ESC{ST?}

Returns info about ability of printer to print next image, and reports any errors from the last print request, e.g. paper condition, command errors, buffer size, battery voltage.

Configuration

ESC{CF?}

Returns information about configuration options, e.g. baud rate, default mode, time-out, etc.

Battery

ESC{BT?}

Returns current battery voltage, temperature and conditions.

Version

ESC{VR?}

Returns version number of loaded firmware, boot code and download files.

Memory

ESC{MY?}

Returns the size of all memory available- the amount used and amount remaining for application.

Print head

ESC{PH?}

Returns type of print head in use and number of dots across.

Infrared

ESC{IR?}

Returns info about IR settings.

Fonts

ESC{FN?}

Returns a list of fonts available.

Graphics

ESC{GR?}

Returns list of downloaded graphics.

Formats

ESC{FM?}

Returns list of all formats. Shows Easy Print commands with variable and fixed data that represent a unique print layout.

Demand

ESC{DQ?}

Returns remaining quantity of images

Cancel

ESC{CN!}

Cancels all demand printing

Reset

ESC{RE!}

Resets printer

Read Status

ESC{RS?}

Returns Satus of Card Reader

Read Mag. Data

ESC{MR?}

Returns Magnetic card data

The order of the printer’s reply to a query may change, and new queries will be added. Therefore, the programmer should search for the “Query character” to find data whenever interpreting the reply to a query.

102 • Appendix B: Query

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

Page 113

ESC{ST?} Status Query Format:

ESC{ST?}

Reply Format:

{ST!E:x;L:x;P:x;R:x;B:x;H:x}

Function:

Shows whether next print request is doable, or returns info about errors from the last request.

Reply Example:

{ST!E:N;L:D;P:P;R:62;B:O,H:O}

Reply Explanation: ST!

This is a reply to a STATUS query.

E:N;

There are no errors.

L:D;

The paper release lever is down, ready to print.

P:P;

Paper is present.

R:62;

62K bytes remain in the input buffer.

B:O;

Acceptable battery voltage and temperature.

H:O;

Print head temperature is in acceptable range.

*Rows marked with asterisk apply to Easy Print and Line Printer Mode. Rows without an asterisk apply only to Easy Print. Query

Reply

Definition

E

N

N = no error*

E c c = command error (invalid command)

E d d = data error (e.g. letter in numeric-only bar code)

E f f = font not available

E g g = global parameter error

E o o = overrun of buffer*

E p p = field parameter error

E q q = qmark not found*

E r r = row/column error

E s s = syntax error

L

U,D

Lever = Up or Down

P

P,N

Paper = Present or Not present

R nn

RAM buffer size remaining, in K bytes.

B

O,T, V

Battery condition - O = OK; T = out of Temperature range; V = out of Voltage range.

H

O,T

Printhead Temperature - O = OK, T = out of range.

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

Appendix B: Query • 103

Page 114

ESC{CF?} Configuration Query Format:

ESC{CF?}

Reply Format:

{CF!L:x; B:x; P:x; N:x; H:x;D:x;Y:x;S:x;T:x}

Function:

Returns information about configurable options .

Reply Example:

{CF!L:LP;B:096;P:N;N:8;H:B;D:+10%; Y:1;S:Y;T:0060}

Reply Explanation:

104 • Appendix B: Query

CF!

This is a reply to a Configuration query.

L:LP;

The default mode is Line Printer.

B:096;

The baud rate is 9600.

P: N;

No parity is set.

N:8;

There are 8 data bits.

H:B;

Hardware and software handshaking are enabled.

D:+10%;

The darkness (burn time) is set to +10%.

Y:1;

The paper is 1 ply.

S:Y;

The sound is on.

T:0060

The time-out is set for 60 seconds.

Query

Reply

Definition

L

LP, EZ

Default mode -Line Printer or Easy Print (EZ)

B

012,024, 048,096, 192,384

Baud rate = 1200, 2400, 4800, 9600, 19.2K or 38.4 baud

P

N,E,O

Parity is None, Even, or Odd

N

7,8

Number of Data Bits is 7 or 8

H

N,H,S,B

Handshaking = None, Hardware, Software, or Both

D

-25% ...+35%

Darkness can be -25%, -20%, -15%, -10%, -05%, +10%, +15%, +20%,25%, +35%

Y

1,2

Ply of paper = 1 or 2

S

Y,N

Beeper (Sound) = Y (Yes) or N (No)

T nnnn

Timeout value in seconds (9999 = always on)

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

Page 115

ESC{BT?} Battery Query Format:

ESC{BT?}

Reply Format:

{BT!V:x;Tx}

Function:

Returns current battery voltage and temperature.

Reply Example:

{BT!V:6.8;T:+25.8C,CH:C}

Reply Explanation: BT!

This is a reply to a BATTERY query.

V:6.8;

The current battery voltage is 6.8 Volts.

T:+25.8

Battery temperature is 25.8 degrees Centigrade.

CH:C

Complete charge.

Query

Reply

V n.n

Definition

T

+ nn.nC

Battery Temperature = +nn.n degrees C or -nn.nn degrees C

CH

C,F,I,N, T, W

C= Complete, F- Fast Charge, I = Initialization, N = No Charge, T = Trickle Charge, W = Wait to restart.

SB00..SB nn

TBD

Reserved future option for smart battery data. Query characters may change.

Battery Voltage = n.n volts

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

Appendix B: Query • 105

Page 116

ESC{VR?} Version Query Format:

ESC{VR?}

Reply Format:

{VR!F:x;B:x;D:x}

Function:

Firmware, boot code, and download file #.

Reply Example:

{VR!F:4.09;B:2.05;D:1.0}

Reply Explanation: VR!

This is a reply to a VERSION query.

F:4:09;

The firmware (main program) version is 4.09.

B:2.05;

The boot code version is 2.05.

D:1.0;

The download file version is 1.0.

Query

106 • Appendix B: Query

Reply

Definition

F n.nn

Firmware version is n.nn

B n.nn

Boot code version is n.nn

D n.n

Download (fonts, graphics, formats) version is n.n

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

Page 117

ESC{MY?} Memory Query Format:

ESC{MY?}

Reply Format:

{MY!FS:x;FM:x;RS:x;DT:x;DR:x}

Function:

Returns the size of all memory available in the printer, including the amount used and the amount remaining for the application.

Reply Example:

{MY!FS:1M;FM:AMD;RS:1M;DT:049152; DR:000512}

Reply Explanation: MY!

This is a reply to a MEMORY query.

FS:1M;

This printer contains a 1M bit flash memory

FM:AMD;

The Flash Manufacturer is AMD.

RS:1M;

RAM Size = 1M.

DT:049152;

Total Flash area available for Download is 49,152 bytes.

DR:000512;

Download Flash memory Remaining. Out of the 49,152 bytes, 512 bytes remain available.

Query

Reply

Definition

FS

1 Meg, 4 Meg

Flash S ize = 1 Meg (128K bytes) or 4 Meg (512K)

FM

AMD

Flash Manufacturer is AMD

RS

1 Meg

RAM S ize = 1 Meg (128K bytes)

DT nnnnnn

Download Total area = nnnnnn bytes

DR nnnnnn

Download RAM remaining = nnnnnn bytes

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

Appendix B: Query • 107

Page 118

ESC{PH?} Printhead Query:

ESC{PH?}

Reply Format:

{PH!TD:x;DD:x;T:x;M:x}

Function:

Returns the type of print head in use in this printer and the total number of dots across.

Reply Example: {PH!TD:0384;DD:203;M:LPT3245T:+25.6C;} Reply Explanation:

108 • Appendix B: Query

PH!

This is a reply to a PRINTHEAD query.

TD:0384;

The print head in this printer has 384 dots across.

DD:203;

The dot density is 203 dots per mm.

M:LPT3245

The print head model number is LPT3245.

T:+25.6C;

The current print head temperature is +25.6 degrees Centigrade.

Query

Reply

Definition

TD

Nnnn

Total Number of dots across this print head

DD

Nnn

Dot Density of this print head (dots per mm)

M x...x (variable width)

Model number of this print head

T

+ nn.nC

Current Temperature of print head

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

Page 119

ESC{IR?} Infrared Query Format:

ESC{IR?}

Reply Format:

{IR!P:x;AV:x;DV:x;IV:x;IN:x;ID:x}

Function:

Returns information about the current infrared settings.

Reply Example:

{IR!P:IrDA;AV:00;DV:00;IV:1.02; IN:microFlash2;ID:1234567890123456789}

Reply Explanation: IR!

This is a reply to an INFRARED query.

P:IrDA;

This printer has the IrDA protocol turned on.

AV:00;

The ASK version is 00.

DV:00;

The DIRECT version is 00.

IV:1.0-06;

The IrDA version specification supported is 1.0. and the firmware is version 06.

IN:microFlash2;

The device nickname is microFlash 2.

ID:

The device name is 1234567890123456789. Query

Reply

Definition

P

OFF,IrDA,ASK, ASC-CRC, DIRECT, DIRECT-CRC

Protocol selected is OFF, IrDA, ASK, ASK with CRC, DIRECT or DIRECT with CRC

AV nn

ASK software Version = nn

DV nn

DIRECTS software Version = nn

IV n.n-mm

Version of IrDA specifications supported is n.n; firmware version of IrDA loaded into this printer is mm.

IN x..x (up to 19 chars)

IrDA Nickname microflash2, microFlash3, 2t, 2i ID x..x (up to 19 chars)

IrDA Device name

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

Appendix B: Query • 109

Page 120

ESC{FN?} Fonts Query Format:

ESC{FN?}

Reply Format:

{FN!N5:x,N1:x,L:x,UV:x, UD:x,US:x, CPI:x}

Function:

Returns a list of fonts, both permanent and downloaded. Within a complete font definition, each query character is separated from the next with a comma. A semicolon, carriage return and line feed (“;”<CR>, <LF>) separates each font.

Reply Example:

{FN!N5:MF107,N1:&(26),L:R,UV:1, UD:01/02/96,US:96CHARS BLOCKBOLD, CPI:10.7;N5:MF204,N1:!(21),L:D, UV:1,UD:01/02/96,US:224 CHR BLOCK NORMAL, CPI:20.4}

Reply Explanation:

110 • Appendix B: Query

FN!

This is a reply to a FONT query.

N5:MF107,

The first font has the name MF107.

N1:&(26),

The one-character name is "&", or 26H.

L:

The first font is a resident font.

UV:1,

The user version is 1.

UD:01/02/96

The user date is 01/02/96.

US:96chars blockbold

The font is a 96 character block bold font.

CPI:10.7

The font has 10.7 characters per inch.

N5:MF204,

The next font begins and is read similarly.

Query

Reply

Definition

N5 xxxxx

5 character Name is xxxxx

N1 x(nn)

1 character Name - also in HEX

L

R,D

Location is Resident or Download

UV x

User Version number

UD mm/dd/yy

User Date- month, day, year

US x..x (20 chars)

User Descriptive Summary of font

CPI nn.n

Characters Per Inch is nn.nn

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