background image

Chapter 4:

 Querying the Printer

62

O’Neil Programming Language Reference Manual

Magnetic Card Read Query

Magnetic Card Read Reply Explanation

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.

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 (?

)

.

Summary of Contents for microFlash2

Page 1: ...ilities transportation and an extensive range of business services We ve earned our reputation by building and supporting the most reliable portable printers in the industry O Neil printers are engine...

Page 2: ...ual or the examples herein This guide is copyrighted All rights are reserved This guide may not in whole or in part be reproduced translated stored in a retrieval system or transmitted in any form or...

Page 3: ......

Page 4: ...lf Test Printout 19 Status 19 Initial Program Load 19 Easy Print Using the Print Command 20 Print Command Guidelines 21 Print Command Specifying Global Options 21 Print Command Customizing Fonts 23 Fo...

Page 5: ...Explanation 51 Infrared Query 52 Infrared Reply Explanation 53 Font Query 55 Fonts Reply Explanation 55 Graphics Query 56 Graphics Reply Explanation 56 Formats Query 57 Formats Reply Explanation 57 8...

Page 6: ...gle line A series of ESCape code sequences can be sent to the printer to alter the look of the characters e g to make them double wide or to change the font or to change other aspects of the appearanc...

Page 7: ...es directory names references to other resources a value to be entered and emphasis Example Bold Indicates a window name field name or option Example TO PRINT LINE PRINTER EASY PRINT EMULATION Bar Cod...

Page 8: ...uage Reference Manual Graphic Conventions Use the following information Note The note symbol is followed by additional information about a topic Caution The caution symbol is followed by information t...

Page 9: ...e fonts you send ESC w n where n is the single character name of the font seen AN 3 or AN 12 If you do this at the beginning of the line it will affect the entire line But if you place this in the cen...

Page 10: ...ength Format ESC C n Dec 27 67 n Hex 1B 43 n Function Sets the page length in character lines In the command format n represents the number of lines in the form and n is a single byte The default for...

Page 11: ...indicates a dot is on 0 bit indicates the dot is off Graphics printed using this command must be the exact width of the head in bits Bit 7 of the first byte of data received prints at the left most d...

Page 12: ...e number of times the byte is repeated After the compressed graphics data command ESC B is received each dotline must be preceded by the G or U or an A may be sent followed by the number of lines to a...

Page 13: ...ent line and advances the paper to top of form TOF The CR command is similar to LF both commands are provided for your convenience Note To print and advance n lines use the number of CR commands or LF...

Page 14: ...k Format ESC Q n1n2 Dec 27 81 n Hex 1B 51 n Function Advances the paper n1n2 dotlines from the Q mark For information on the Q mark refer to Specifications in the O Neil Thermal Programming Guide ESC...

Page 15: ...Line Printer Mode 14 O Neil Programming Language Reference Manual ESC EZ Go to Easy Print Mode Format ESC EZ Dec 27 69 90 Hex 1B 45 5A Function Puts the printer in Easy Print Mode You must use upperc...

Page 16: ...t curly bracket or ASCII 0x7D The commands immediately follows the opening bracket A colon separates the command from the data that follows The general format of any Easy Print command is COMMAND DATA...

Page 17: ...ontains the following information Easy Print Commands Easy Print Using the Print Command Easy Print Using Configuration Commands COMMAND MEANING ORIGINAL MF2 MF3 2t 4t RADIO READY 2t 3l 4t PAPER MOVEM...

Page 18: ...ions to carry out a command For more information about the Print command see Easy Print Using the Print Command If the printer is asleep null characters must precede Easy Print or Line Printer command...

Page 19: ...command listed in the table below Command Page Ahead 18 Back 18 LP 18 Self Test Printout 18 Status 18 Initial Program Load 19 Print Commands 20 Configuration 27 Ahead Command Format AHEAD nnn A left...

Page 20: ...est Printout TP A left bracket begins the command set TP TP commands a self test printout A right bracket ends the command set Limited Self test Printout TP1 A left bracket begins the command set TP1...

Page 21: ...h row is 1 65 000 dotlines The column range for the 2t printer and LP3 printer and microFlash 2 printer is 1 384 dotlines The column range for the microFlash 3 printer is 1 576 dotlines The column ran...

Page 22: ...obal Option Format QSTOPnnn 1 nnn 65000 microFlash 2 3 2t Function Stops nnn dotlines after sensing the Q mark When the Q mark is found the paper advances by nnn dotlines and stops even if the image i...

Page 23: ...he paper to where it stops under the printhead If the paper has advanced nnn dotlines and the printed part of the image is not yet complete the image is truncated If the printed part of the image is c...

Page 24: ...tions to heighten or widen the font Font Name CPI Description MF055 5 5 96 characters large block 26 characters for lowercase 26 characters for uppercase plus symbols etc MF072 7 5 96 characters large...

Page 25: ...ly must be even Controller inserts leading zero to ensure an even number of digits BCI25 Int 2 of 5 2 1 ratio 0 9 Digits only must be even Controller inserts leading zero to ensure an even number of d...

Page 26: ...ords Level 5 adds 64 codewords Level 6 adds 128 codewords Level 7 adds 256 codewords Level 8 adds 512 codewords Using PDF4 17 Example PRINT 75 10 PD417 YDIM 6 XDIM 2 COLUMNS 2 SECURITY 3 ABCDEFGHIJKL...

Page 27: ...ash configuration program to automatically store a graphic Example 2 PRINT 10 30 ALOGO HMULT2 VMULT2 Doubles the size of the logo Field Option Abbreviation Description HMULTn HMn Multiplies the width...

Page 28: ...figuration commands After issuing the NORESET command and configuring the printer send the COMMIT command COMMIT to write to Flash and restart the printer In earlier versions of the software the struc...

Page 29: ...iginal MF2 MF3 2t 4t Radio Ready 2t 3l 4t A left bracket begins the command set CD nn Configures print darkness aka burn adjust The value of nn is normal plain paper nn 25 25 for very sensitive stock...

Page 30: ...or Y Beep N n or N Do not beep default X X A right bracket ends the command set Configure RS 232 Handshaking CH n Original MF2 MF3 2t 4t Radio Ready 2t 3l 4t A left bracket begins the command set CH n...

Page 31: ...rint n 0 Normal self test default n 1 Special MAC address label Note When n is not zero a special self test label is printed After a special label is printed performing another self test within 10 sec...

Page 32: ...2t 4t Radio Ready 2t 3l 4t A left bracket begins the command set CT nn nnn in seconds default 10s to 60s nnn 9999 Never times out Note If there is no activity communications or button pushes within th...

Page 33: ...ommand set CS n Configures the beeper on or off Y Beeper on N Beeper off A right bracket ends the command set Configure Default Values CDV A left bracket begins the command set CDV Reverts to non user...

Page 34: ...e for printing The default is 515 T data Type of network n Network type H AdHoc default P Infrastructure access point S data Security n Level 0 None open default 5 40 bit 13 128 bit K1 data Key 1 If t...

Page 35: ...es the friendly device name For example CBT F MyPrinter configures the Bluetooth friendly name to MyPrinter You can enter up to 32 ASCII characters I nnn Inactivity timeout Bluetooth disconnects if th...

Page 36: ...hen reading a card Use the following information nnn HOST The host needs to control the LEDs be sending the appropriate commands to turn the red and green LEDs off on or to flashing nnn AUTO The print...

Page 37: ...RC Direct with CRC protocol DIRECT CRC 2W bidirectional DIRECT CRC PULSE PULSE IR with IrDA modulation only PULSE CRC Pulse with CRC protocol PULSE CRC 2W bidirection PULSE CRC Note The CRC protocol a...

Page 38: ...and set Configure IrDA Autovoid CIV n Original MF2 MF3 2t 4t Radio Ready 2t 3l 4t A left bracket begins the command set CIV n Overview The CIV command can be used to turn autovoid on or off default is...

Page 39: ...hes Default is 2400 or 12 inches X P n Presenter should be used holds off subsequent print jobs until printed image is removed Requires re threading of label stock n Y Presenter is on n N Presenter is...

Page 40: ...ns the command set CMR m D m Direction card is moving when read m IN read on insert m OUT on withdrawal m BOTH in and with X P m Automatically prints data when card is inserted m ON print enabled m OF...

Page 41: ...o letter configuration commands to the printer When the commit command is sent the configuration commands are written to Flash memory and the printer restarts When the printer restarts it uses the def...

Page 42: ...Data is returned as a list of parameters Each parameter contains identifiers followed by a colon followed by the data Each parameter is separated from the next by a semicolon For download queries suc...

Page 43: ...MY Returns the amount of memory available the amount of memory used and the amount remaining 50 Printhead ESC PH Returns the type of printhead used and the number of dots across 51 Infrared ESC IR Re...

Page 44: ...y Example Explanation ST Reply to a status query E N There are no errors S I The printer is idle L D The paper release lever is down ready to print P P Paper is present J N There is no head jam R 62 6...

Page 45: ...out available in Job Status only L u d Lever Up or Down P P N Paper Present or Not present J J N Head jam condition N No head jam J A head jam has occurred and has not been cleared press the feed butt...

Page 46: ...4 Determines if printer times out during printing bit 5 Determines if forward reverse buttons were pressed during printing bit 6 Cancels timeout Printer always stays on timeout set to 9999 but does no...

Page 47: ...r E p p Field parameter error E q q Qmark not found E r r Row column error E s s Syntax error S C c Complete S I I Idle S K K Key pressed to cancel print job available in Job Status only S O O Printer...

Page 48: ...mple CF L LP B 096 P N N 8 H B D 10 Y 1 S Y M Y T 0060 R 65535 Reply Example Explanation CF Reply to a configuration query L LP The default mode is Line Printer B 096 The baud rate is 9600 P N No pari...

Page 49: ...e B J Y N EZ Print Job Status Report Yes Y or No No D 25 35 Darkness 25 20 15 10 05 10 15 20 25 or 35 F Y N Form feed act on FF only available on radio ready 2t 3l 4t printers Yes Y or No N G Y N Beep...

Page 50: ...n n volts T Temperature of battery depends on battery type CH Charge Y Connected N Not connected PS Power Source A DC over battery B Battery over DC C Battery eliminator X X 4t Only nn nC X X X X 4t O...

Page 51: ...9152 DR 000512 Reply Example Explanation MY 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...

Page 52: ...is 203 dots per mm M LPT3245 The printhead model number is LPT3245 T 25 6C The current printhead temperature is 25 6 centigrade Impact PH IMPACT1 1920 dots across at maximum density 960 dots across a...

Page 53: ...have infrared capabilities the ESC IR query is present in all printers to allow the user to determine uniquely which printer type is attached Reply Example IR P IrDA AV 00 DV 00 IV 1 02 IN microFlash2...

Page 54: ...1 DV nn Original MF2 MF3 2t 4t Printers DIRECT software version nn Current 01 Radio Ready 2t 3l 4t printers Fixed 00 IV n n mm Original MF2 MF3 2t 4t Printers Version of IrDA specifications supported...

Page 55: ...ith RS 232 and 802 11b with SCard Reader 4tR 4t Radio firmware with RS 232 only 4tRBT 4t Radio firmware with RS 232 and Bluetooth 4tR802 4t Radio firmware with RS 232 and 802 11b 4tRS 4t Radio firmwar...

Page 56: ...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 Example Explanation FN Reply to a font query N5 MF107 The first font name is MF107 N1 26...

Page 57: ...d radio ready 2t 3l 4t printers Reply Example GR N5 LOGO1 N1 z 7A L D UV 1 UD 05 29 96 US Big Logo Reply Example Explanation GR Reply to a graphics query N5 LOGO1 The graphic has a five character name...

Page 58: ...has a five character name of LABEL L D The format is a downloaded format UV 1 The user version is 1 UD 05 29 96 The user date is 05 29 96 US PROPERTY The user descriptive summary is PROPERTY ID LABEL...

Page 59: ...use NA 0 to 3 Network authentication 0 None 1 LEAP Cisco 2 WPA PSK Symbol 3 WPA future Symbol S 0 5 13 Authentication algorithm 0 No security 5 40 bit algorithm 5 byte key 13 128 bit algorithm 13 byt...

Page 60: ...anation 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 T...

Page 61: ...ported 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 c...

Page 62: ...rd 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 w...

Page 63: ...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 Q...

Page 64: ...ically 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 reade...

Page 65: ...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 Reply Explanation CL Reply to a label configuration query T Type of stock used P P...

Page 66: ...the label on the printer Query ESC SN Response note that the serial number string can have different formats SN MH00035 Demand Quantity Query Cancel Query Reset Query Magnetic Card Data Zero Command...

Page 67: ...rkness 28 Configure RS 232 Handshaking 29 D demand query overview 65 E Easy Print Ahead command 18 auto white space advance 27 Back command 18 Commands guidelines 17 commands 18 configuration commands...

Page 68: ...Mode Command 19 M Magnetic Card Configuration Query 61 Magnetic Card Read Query 62 memory query overview 50 replies 50 modes Easy Print 16 P PDF 417 symbols 25 Print Command Guidelines 21 Print comma...

Page 69: ...erview 65 reset query overview 65 Restore Default Values 32 RF Radio Power Down Timeout 31 Rotate Global Option 21 S Self Test Print 30 Self Test Printout command 19 sending queries 41 Status command...

Reviews: