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 9 of 10

O'Neil Programming Language Reference Manual: Querying the Printer, pages 60 to 66

Pages 60 to 66 of 69, from O'Neil Programming Language Reference Manual

The original document is the PDF (2.1 MB). 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 4T (MF4T) and Datamax MicroFLASH 4T (MF4T)

Page 60

Chapter 4: Querying the Printer

Bluetooth Query Bluetooth Query Query Format

ESC{BL?}

Reply Format

{BL!AD:x;F:x;SN:x;PR:x;CL:x;D:x;C:x;B:x;E:x;A:x;P:x;I: x;PWR:x;W:x}

Function

Returns the current Bluetooth configuration (if applicable).

Reply Example

{BL!AD:00:80:37:1A:0F:F7;F:Wireless Printer;SN:2t Bluetooth;PR:SPP;CL:040680;D:Y;C:Y;B:Y;E:N;A:N;P:Y; S:0;PWR:ON}

Reply Example Explanation

BL! - Reply to a Bluetooth query. AD:00:80:37:1A:0F:F7; - The Bluetooth device address is 00:80:37:1A:0F:F7. F:Wireless Printer; - The bluetooth friendly device name is Wireless Printer. SN:2t Bluetooth; - The service name is 2t Bluetooth. PR:SPP; - The profile support is Serial Port Profile (SPP). CL:040680; - The device class is 040680, a rendering, imaging printer. D:Y; - The device is discoverable. C:Y; - The device is connectable. B:Y; - The device is bondable. E:N; - Encryption is off. A:N; - Authentication is on. P:Y; - A passkey is stored on this device. I:nn; - Inactivity timeout S:0; - Security is open. PWR:ON; - RF module power is on. W:nn; Watchdog period.

O’Neil Programming Language Reference Manual

59

Page 61

Chapter 4: Querying the Printer

Bluetooth Reply Explanation Query

Reply

Definition

AD xx:xx:xx:xx: Returns the Bluetooth module's address. xx:xx

F xxxxx

Returns the Bluetooth device name string. Note: In most printers, the device name is configured to the printer's serial number.

SN xxxxx

Returns the service name string.

PR

SPP

The supported profile is Serial Port Profile (fixed).

CL

040680

The device class is 040680, a rendering, imaging, printer.

D

Y,N

Y=The device is discoverable; N=The device is not discoverable.

C

Y,N

Y=The device is connectable; N=The device is not connectable.

B

Y,N

Y=The device is bondable; N=The device is not bondable.

E

Y,N

Y=Encryption is on; N=Encryption is off.

A

Y,N

Y=Authentication is on; N=Authentication is off.

P

Y,N

Y=A passkey is stored on this device (default);N=A passkey is not stored on this device.

S

0,1

0=Open;1=Secure.

PWR

ON,OFF

ON=RF module power is on; OFF=RF module power is off.

O’Neil Programming Language Reference Manual

60

Page 62

Chapter 4: Querying the Printer

Magnetic Card Configuration Query Magnetic Card Configuration Query Query Format

ESC{MC?}

Reply Format

{MC!EN:x;DIR:x;T1:x;T2:x;T3}

Function

Displays the magnetic card reader configuration.

Reply Example

{MC!EN:ON;DIR:WITH;T1:ON;T2:ON;T3:ON}

Reply Explanation

MC! - Reply to a magnetic card configuration query. EN:ON; - The magnetic card reader is enabled (default). DIR:WITH; - The card is read when withdrawn from the reader. T1:ON; - Track one is enabled and will try to read from the card. T2:ON; - Track two is enabled and will try to read from the card. T3:ON; - Track three is enabled and will try to read from the card.

Magnetic Card Configuration Reply Explanation Query

Reply

Definition

EN

ON

The magnetic card reader is enabled (default).

DIR

WITH (more?)

WITH=The card is read when withdrawn from the reader.

T1

ON,OFF

ON=Track is enabled and attempts to read from card; OFF=Track is disabled and any data is ignored.

T2

ON,OFF

ON=Track is enabled and attempts to read from card; OFF=Track is disabled and any data is ignored.

T3

ON,OFF

ON=Track is enabled and attempts to read from card; OFF=Track is disabled and any data is ignored.

O’Neil Programming Language Reference Manual

61

Page 63

Chapter 4: Querying the Printer

Magnetic Card Read Query Magnetic Card Read Query Query Format

ESC{MR?}

Reply Format

{MR!T1:x|T2:x|T3:x|}

Function

Displays the magnetic card reader configuration.

Reply Example

No card read: {MR!T1:N|T2:N|T3:N} Card read: {MR!T1:%B9900 888888 89789^PUBLIC/JOHN Q ^9901960805542?|T2:;373027766473005=9901960805542 ?|T3:;1234567890=1234567890=1234567890= 1234567890?}

Reply Explanation

MR! - Reply to a magnetic card read query. T1:;%B9900 888888 89789^PUBLIC/JOHN Q ^9901960805542?| - Returns data read from track one of magnetic card. T2:;373027766473005=9901960805542?| - Returns data read from track two of magnetic card. T3:;1234567890=1234567890=1234567890= 1234567890? - Returns data read from track three of magnetic card.

Magnetic Card Read Reply Explanation Query

Reply

Definition

T1

N,xxxxx

N=No data read; xxxxx=Returns the data read from track one of the magnetic card. Note: Most encodings (banking specifications), data begin an percentage mark (%) and end with an question mark (?).

T2

N,xxxxx

N=No data read; xxxxx=Returns the data read from track two of the magnetic card. Note: Most encodings (banking specifications), data begin an percentage mark (%) and end with an question mark (?).

T3

N,xxxxx

N=No data read; xxxxx=Returns the data read from track three of the magnetic card. Note: Most encodings (banking specifications), data begin an percentage mark (%) and end with an question mark (?).

O’Neil Programming Language Reference Manual

62

Page 64

Chapter 4: Querying the Printer

Card Reader Status Query Card Reader Status Query Query Format

ESC{RS?}

Reply Format

{RS!P:n;S:n;G:n;R:n}

Function

Returns data read for a swiped magnetic card. The reply to the card reader status query can be automatically generated if the AutoSend option is on.

Reply Example

{RS!P:0;S:0;G:0;R:0}

Reply Explanation

RS! - Reply to a card reader status query. P:0; - SmartCard power is off. S:0; - A card is not seated in the reader. G:0; - The green LED is off. R:0; - The red LED is off.

Card Reader Status Reply Explanation Query

Reply

Definition

P

0,1

0=SmartCard power is off; 1=SmartCard power is on.

S

0,1

0=A card is not seated in reader; 1=A card is seated in reader.

G

0,1,F

0=Green LED is off; 1=Green LED is on; F=Green LED is flashing.

R

0,1,F

0=Red LED is off; 1=Red LED is on; F=Red LED is flashing.

O’Neil Programming Language Reference Manual

63

Page 65

Chapter 4: Querying the Printer

Label Configuration Query Label Configuration Query

Query Format

ESC{CL?}

Reply Format

{CL!T:n;D:n;M:n;S:n;P:n;U:n;B:n;W:n}

Reply Example

{CL!T:P;D:1;M:1;S:T;P:Y;U:3;B:2;W:N}

Original MF2/MF3/ 2t/4t

Radio Ready 2t/3t/4t

Reply CL! - Reply to a label configuration query. Explanation T: Type of stock used P=Plain paper T=Top QMark B=Bottom QMark

X

D: Distance to advance after QMark is sensed before stop - Distance given in dotlines (.005 inches)

X

M: Maximum distance to advance if QMark is not sensed - Distance given in dotlines (.005 inches)

X

S: Sensor to use for paper out T=Top sensor B=Bottom sensor

LP3 only

P: Presenter Y=Yes (use) N=N (do not use)

LP3 only

U: Label under presenter timeout - Time in seconds to not go to sleep if label is left under the presenter sensor.

LP3 only

B: Backup distance - Distance given in dotlines (.005 inches)

X

W: Windows driver QMark (automatically advance to find QMark after print job from Windows driver) Y=Yes (assume stock is QMarked) N=No (assume stock is plain paper)

X

Manufacturing Date Query: ESC{MD?} The manufacturing date of the printer is returned, if the manufacturing date has been written to the printer, otherwise the data field returned is None. Since the manufacturing date is actually the parameter returned, there is no need for the Parameter:Data after the MD! in the response (MD!<date string>. The date is a string that can be entered in any format. Typically, the format is MM/DD/YY. Query: ESC{MD?} Response (note that the date string can have different formats): {MD!12/10/2005}

O’Neil Programming Language Reference Manual

64

Page 66

Chapter 4: Querying the Printer

Serial Number Query: ESC {SN?} The serial number of the printer is returned, if the serial number has been written to the printer, otherwise the data field returned is None. Since the serial number is actually the parameter returned, there is no need for the Parameter:Data after the SN! in the response (SN!<serial number string>. The serial number is a string that can be entered in any format. Typically, it is the serial number printed on the label on the printer. Query: ESC{SN?} Response (note that the serial number string can have different formats): {SN!MH00035}

Demand Quantity Query Demand Query Query Format

ESC{DQ?}

Reply Format nnn

Function

Returns remaining quantity of images.

Cancel Query Cancel Query Query Format

ESC{CN!}

Reply Format

ESC{CN!}

Function

Cancels demand printing.

Reset Query Reset Query Query Format

ESC{RE!}

Reply Format

ESC{RE!}

Function

Resets the printer. All data, transient states, and connections are lost. The printer restarts as if power was disconnected and reconnected.

Magnetic Card Data Zero Command Magnetic Card Data Zero Command Query Format

ESC{MZ!}

Reply Format

ESC{MZ!}

Function

Flashes the magnetic card data buffer to zero.

O’Neil Programming Language Reference Manual

65