beautypg.com

Card reader status query, Card reader status reply explanation, Querying the printer – Datamax-O'Neil microFlash 2te Quick Reference Programming Guide User Manual

Page 67

background image

Querying the Printer

63

Datamax-O’Neil Quick Reference Programming

Card Reader Status Query

Card Reader Status Reply Explanation

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.

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.

This manual is related to the following products: