10200-002 Quick Reference Programming Guide
Datamax-O’Neil Tel: (949) 458-0500 www.datamax-oneil.com COPYRIGHT © 2010 Datamax-O’Neil All rights reserved. This manual and any examples contained herein are provided ‘as is’ and are subject to change without notice. Datamax-O’Neil makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose.
Table of Contents Introduction ......................................................................................... 1 Overview of Printing Modes.......................................................................... 1 Line Printer Mode.................................................................................... 1 Easy Print Mode...................................................................................... 1 Using Line Printer Mode .....................................................
Datamax-O’Neil Quick Reference Programming Querying the Printer ........................................................................ 41 Overview................................................................................................. 41 Sending Queries ................................................................................... 41 Interpreting Query Replies ..................................................................... 41 Query Formats .............................................
Introduction The Datamax-O’Neil Quick Reference Programming Guide is a reference guide for DatamaxO’Neil printers. This programming guide documents the functions and features of the printer's programming language. Note: The commands documented in this programming guide are available based upon which version of firmware is installed on your printer and which printer you are using. To determine which version of the firmware you are using, print a selftest.
Datamax-O’Neil Quick Reference Programming Introduction TO PRINT Labels (Butt Cut or Die Cut) with alignment “Q” mark or gap between labels Pre-Printed “fill in the blank” form Rotated image Rotated areas on image Use Datamax-O’Neil printer in system meant for another make of printer LINE PRINTER EASY PRINT X (Text Only) X (Complex) X X X 2 EMULATION
Using Line Printer Mode Overview Line printer mode is the simplest protocol supported by the Datamax-O’Neil thermal printers. Using Line Printer mode, you can send a line of text as a sequence of characters to the printer followed by a carriage return (0x0D), and/or a line feed (0x0A), or a form feed (0x0C) and the printer prints that line of text.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode Command Description Page ESC @ Resets the printer 7 ESC Hn Multiplies the height n times 8 ESC R n International font selection 8 ESC ! n Sets double wide and double high 8 ESC EZ Goes to Easy Print Mode 9 ESC D n Increases the darkness 9 ESC d n Decreases the darkness 9 ESC bn Back up 9 Note: Line Printer commands are case-sensitive. Make sure you use the correct case when entering commands.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode Esc V n1 n2 Bit-Mapped Graphics Format ESC V n1 n2 Dec 27 86 n1n2 Hex 1B 56 n1n2 Function Prints the next (n1*256 + n2) dotlines as bit-mapped graphics. n1n2 form a 16-bit binary number set, the most significant byte first. Used to print user-generated bitmap graphics across the width of the printhead. After receipt of this command, the printer dumps the binary data directly to the printhead.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode Esc B, ESC E Accept Compressed Graphics Format ESC B ESC E Dec 27 66 27 69 Hex 1B 42 1B 45 Function Accepts compressed graphics. The printer decompresses and prints the graphic. Each compressed dotline (using a run-length encoding scheme) is preceded by an uppercase G. Each uncompressed dotline is preceded by an uppercase U.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode FF Form Feed Format FF Dec 12 Hex 0C Function Prints the current line, then advances the paper to top of form (TOF). LF Line Feed Format LF Dec 10 Hex 0A Function Prints the current line and advances the paper. CR Carriage Return Format CR Dec 13 Hex 0D Function Prints the current line and advances the paper to top of form (TOF). The CR command is similar to LF — both commands are provided for your convenience.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode Note: Use the following Easy Print command to return to Line Printer mode while in Easy Print mode. {LP} is not a Line Printer command. If you mistakenly use {LP} while in Line Printer mode, {LP} prints on your receipt or label. Format: {LP} ESC Hn Heighten Font n Times Format ESC Hn Dec 27 72 n Hex 1B 48 n Function Multiplies the height of the font by n. Must apply to the entire line.
Datamax-O’Neil Quick Reference Programming Using Line Printer Mode 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 uppercase letters EZ. To turn ON MPCL, send the configuration request in Easy Print {CL:EMM1} followed by {COMMIT}. To turn ON this new extended CPCL, send the configuration request in Easy Print {CL:EMZ4} followed by {COMMIT}. ESC D n Format ESC D n Function Increases the darkness.
Using Easy Print Mode Overview The Easy Print protocol is much more than just a printing protocol. In its most basic form, Easy Print mode allows the user to send and execute commands. As part of the command execution, the printer may return data to the host. In addition to printing, commands also allow paper motion, configuring, and control of peripherals such as the magnetic and smart card readers.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode You can use Easy Print mode to design custom receipts, tickets, or reports with borders, lines, stored graphics, logos, bar codes, and text. For example, you can create a receipt with your company logo at the top, an identifying bar code in the middle, and a signature line at the bottom. Easy Print mode also allows you to use stored graphics, thus increasing your print speed.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Sample Easy Print Job 12
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Easy Print Commands Easy Print commands have a unique format and function. All but the Query class of commands are documented on the following pages. For information on queries, refer to Querying the Printer in the Datamax-O’Neil Thermal Programming Guide. Note: In this chapter, an n indicates ASCII numbers, not binary numbers. For more information, see the specific command listed in the following table.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Line Printer Mode Line Printer Mode {LP} { A left bracket begins the command set. LP LP puts the printer into Line Printer mode. Note: Do not send additional characters for 500ms (is this the time period?) after sending this command (need more info. Why not?) } A right bracket ends the command set. Self-Test Printout Self-test Printout {TP} { A left bracket begins the command set. TP TP commands a self-test printout.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Initial Program Load Initial Program Load {IPL:0xAA55} { A left bracket begins the command set. IPL:0xAA55 Erases the .BIN printer application file. This command is used in preparation to reload a new file. } A right bracket ends the command set.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Easy Print: Using the Print Command In Easy Print mode, the Print command includes all possible printer actions used to stop the paper, rotate images, print images, and alter images. Use the following format for Print commands: {Print, Global Options:@row,col:Name,Field Options|data|} { A left bracket ({) begins the print command set. Print, A comma (,) follows the Print command if there are additional global options.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Print Command: Guidelines • Use the correct terms for global and field options (for example, QSTOPn or WIDEn where n indicates a number in the range). If a global or field option is entered incorrectly, the print request is rejected. For more information, see the appropriate global or field option on the following pages.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode STOPnnn Stop Global Option Format STOPnnn Function Advances the paper to the proper point for tearing. This option stops the paper nnn dotlines (.005”/dotline or 200 dotlines/inch) after the beginning of the label or receipt. The data nnn is sent after the STOP option specifies the total number of dotlines high for the image.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode COLOFFSET x Format COLOFFSET x Function Will shift the entire image to the right by x dots if x is positive or to the left by x dots if x is negative (regardless of value, any given field cannot shift left beyond zero and the resulting image is undefined). The default value is zero. LEFT — Will use the value specified in COL (@ROW,COL:...) as the left hand edge of the field. This is the default value.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode ROWOFFSET x Format ROWOFFSET x Function Will shift the entire image down by x dots if x is positive or up by x dots if x is negative (regardless of value, any given field cannot shift left beyond zero and the resulting image is undefined). The default value is zero. The row can be given an explicit dot row number: ++ — will cause the field to start at the next available dot row after the previous field ends.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Print Command: Customizing Fonts Font Names {Print, Global Options:@row,column:NAME,Field Options|data|} Use the following options to customize fonts. Each font has a five-character name. The following is a partial list of font names. For a list of all available fonts, call your DatamaxO’Neil representative at (949) 458-0500. Font Name CPI Description MF055 5.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Print Command: Customizing Bar Codes Bar Code Names {Print, Global Options:@row,column:NAME,Field Options|data|} Use the following options to customize a bar code: Name Description Requirements for Data BC39N Code 39 2:1 ratio Use the following characters in the data field: Space $ % + . / 0-9 A-Z Auto inserts leading and trailing asterisk (*). BC39W Code 39 3:1 ratio Use the following characters in the data field: Space $ % + .
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Bar Code Field Options {Print, Global Options:@row,column:Name,FIELD OPTIONS|data|} Field Abbreviation Description Option HIGHn H nn Changes the height of the bar code in five dot-inch intervals. The default is five dots; 1
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Level Level Level Level 5 6 7 8 adds adds adds adds 64 codewords 128 codewords 256 codewords 512 codewords Using PDF4-17 Example {PRINT: @75,10:PD417,YDIM 6,XDIM 2,COLUMNS 2, SECURITY 3|ABCDEFGHIJKL|} Explanation: Prints a PDF-417 bar code containing ABCDEFGHIJKL with each element .010" wide and .
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Print Command: Customizing Graphic Names Graphic Names {Print, Global Options:@row,column:NAME,Field Options|data|} Function Prints a stored graphic. Example 1 {PRINT:@10,30:ALOGO|} Prints the logo stored under the five-character name (ALOGO), or a single character name. Example 2 {PRINT:@10,30:ALOGO,HMULT2, VMULT2|} Doubles the size of the logo.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Easy Print: Using Configuration Commands Configuration commands are either in two-letter or three-letter formats. One or several two letter commands can be sent to the printer but are not written to Flash memory and do not take effect until a {COMMIT} command is sent. When the printer receives the {COMMIT} command, the values received are written to Flash and the printer restarts. Each two-letter command changes one parameter.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Baud Rate {CB:nn} { A left bracket begins the command set. CB:nn Configures the baud rate. Use the following values to specify the baud rate: nn=00: nn=01: nn=02: nn=03: nn=04: nn=05: nn=06: nn=07: nn=08: nn=09: nn=10: } 1200 BAUD 2400 BAUD 4800 BAUD 9600 BAUD (default) 19.2K BAUD 38.4 BAUD 57.6 BAUD 115.2K BAUD 230.4K BAUD 460.8K BAUD 921.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Battery Eliminator {CE:n} Original MF2, MF3, 2t, 4t { A left bracket begins the command set. CE:n n = y or Y: Battery eliminator is present. n = n or N: None (default) Note: The battery eliminator can be used to power the printer from a wall charger. } A right bracket ends the command set. Form Feed Active {CF:n} { A left bracket begins the command set. CF:n n= y or Y: Act on form feed.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Job Status Reporting in Easy Print Mode{CJ:n} { A left bracket begins the command set.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Set Test Print {TP:n} { A left bracket begins the command set. TP:n Sets test print. n = 0 : Normal self test (default) n = 1 : Special MAC address label Original MF2, MF3, 2t, 4t Radio Ready 2t, 3l, 4t X X Original MF2, MF3, 2t, 4t Radio Ready 2t, 3l, 4t X X Original MF2, MF3, 2t, 4t Radio Ready 2t, 3l, 4t X X Note: When n is not zero, a special selftest label is printed.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode System Timeout (Printer Sleep Timer) {CT:nn} { 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 the specified time, the printer will "go to sleep" to save power. A button push or new communications will wake up the printer. } A right bracket ends the command set.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Three-Letter Configuration Commands TCP/IP 802.llb and Bluetooth Wireless configurations. Versions 5.13 and 6.13 and later only: Configure Default Values {CDV} { A left bracket begins the command set. CDV Reverts to non user-specific default values at time of manufacture for configuration parameters. } A right bracket ends the command set. Restore Default Values {RDV} { A left bracket begins the command set.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure 802.11b/TCP/IP {CTC:n} { A left bracket begins the command set. CTC:n Configures 802.11b/TCP/IP as follows: I:- IP Address. The IP Address is sent in ASCII format as nnn.nnn.nnn.nnn. For example, {CTC:I:192.168.2.99} configures the printer's IP address to 192.168.2.99. The default IP Address is 192.168.2.99. M: - Mask. The mask is sent in ASCII format as nnn.nnn.nnn.nnn. The default mask is 255.255.255.255.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Bluetooth {CBT:n} Original MF2, MF3, 2t, 4t { A left bracket begins the command set. CBT:n Configures Bluetooth as follows: A: - Authentication required. n = Y: Required; n = N: Not required B:n - Bondable. n = Y: Bondable; n = N: Not bonadable C:n - Connectable. n = Y: Connectable; n = N: Not connectable D:n - Discoverable. n = Y: Discoverble; n = N: Not discoverable E:n - Encryption turned on.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure CardReader {CCR:nnn} { Original MF2, MF3, 2t, 4t A left bracket begins the command set. CCR:nnn The CCR command requires data only to configure the general way the card reader uses the LED indicators when 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.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Infrared Protocol {CIP:nnn} Original MF2, MF3, 2t, 4t { A left bracket begins the command set. CIP:nnn Overview: The CIP command selects which protocol is to be used for Infrared communications. IrDA is a bidirectional communications protocol. All others are unidirectional unless noted as 2WAY.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure IrDA Baud Name {CIN:string} { Original MF2, MF3, 2t, 4t A left bracket begins the command set. CIN:string Overview: The CIN command requires data only to configure the name given to the printer when it connects to an IrDA host. X string: Can be a maximum of 19 characters. } A right bracket ends the command set. Configure IrDA Autovoid {CIV:n} Original MF2, MF3, 2t, 4t { A left bracket begins the command set.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Label Parameters {CLP:nn} Values/ Format { A left bracket begins the command set. CLP:nn Use the following information to specify the parameters: Original MF2, MF3, 2t, 4t Radio Ready 2t, 3l, 4t B:nn - Back up distance at the beginning of every Easy Print job. nn in dotlines (.005 inches) Deafult is 0 (off) X D:nn - Distance to advance after the QMark (or gap) is detected before stopping at the end of the label.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Label Parameters {CLP:nn} } Values/ Format Original MF2, MF3, 2t, 4t Radio Ready 2t, 3l, 4t W:n - Use QMark stock with Windows driver. Note: If turned ON, the printer automatically looks for the QMark at end of Windows Driver (RLE) print job. n = Y : On (Look for QMark) n = N : Off (Do not look for QMark) Default is OFF WB:Y - A backup automatically occurs when the printer receives an RLE image.
Datamax-O’Neil Quick Reference Programming Using Easy Print Mode Configure Magnetic CardReader {CMR:m} } Values/ Format Original 2t, 4t Radio Ready 2t,4t CR SCR SCR T2:m - Enables or disables magnetic m = ON : card track 2. enable track 2 m = OFF : disable track 2 X X X T3:m - Enables or disables magnetic m = ON : card track 3. enable track 3 m = OFF : disable track 3 X X X A right bracket ends the command set. Commit {COMMIT} { A left bracket begins the command set.
Querying the Printer Overview The printer can return a lot of information to the host. It can give some status of its current state as well as the current configuration. This is all done through a series of query commands that can be issued to the printer.
Datamax-O’Neil Quick Reference Programming Querying the Printer Query Commands Command Format Description Page Status ESC{ST?} Returns information about the ability of 43 the printer to print the next image and reports any errors from the last print request (for example, paper condition, command errors, buffer size and battery voltage).
Datamax-O’Neil Quick Reference Programming Querying the Printer Status Query Status Query Query Format ESC{ST?} Reply Format {ST!E:x;S:x;L:x;P:x;J:x;R:x;B:x;H:x} Function Returns information about the ability of the printer to print the next image and reports any errors from the last print request (for example, paper condition, command errors, buffer size and battery voltage). Note: If Job Status reporting is on, the printer automatically generates the Status query reply and sends it to the host.
Datamax-O’Neil Quick Reference Programming Querying the Printer Status Reply Explanation Query Reply Definition E N N = No error*. For radio ready 2t/3l/4t printers, fixed as “N.
Datamax-O’Neil Quick Reference Programming Querying the Printer Print Job Status Query Print Job Status Query Query Format ESC{Sn?} Reply Format {ST!E:x;N:x;S:x;L:x;P:x;J:x;R:x;B:x} Function Verifies data delivered to the printer was printed without any mechanical errors such as a head jam or an out of paper condition. n indicates the level of error reporting. The end of the print job is indicated by the Esc e command.
Datamax-O’Neil Quick Reference Programming Querying the Printer Print Job Status Reply Explanation Query Reply Definition E N N = No error* E c c = Command error/invalid command E d d= Data error (for example, an alpha character in a numericonly bar code) E f f = Font not available E g g = Global parameter error E o o = Overrun buffer* 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
Datamax-O’Neil Quick Reference Programming Querying the Printer Configuration Query Configuration Query Query Format ESC{CF?} Reply Format {CF!L:x; B:x; P:x; N:x; H:x;D:x;Y:x;S:x;M:x;T:x;R:x} Function Displays configurable options. Available for all printers except as noted. Reply Example {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.
Datamax-O’Neil Quick Reference Programming Querying the Printer Configuration Reply Explanation Query Reply Definition A Y,N Auto White Space Advance L LP, EZ Default mode = Line Printer (ESC) or Easy Print (EZ), The following are available for radio ready 2t/3l/4t printers: EMC1 (Custom 1), EMC2 (Custom 2), EMC3 (Custom 3), EMP1 (PGL), EMZ1 (CP CL), EMZ2 (Cog),EMZ3 (ZPL). B 012 (mf2/3), 024,048 (mf2/3), 096,192 (mf2/3), 384,576,115 Baud rate = 1200,2400, 4800, 9600, 19.2K, 38.4K, 57.6K, 115.
Datamax-O’Neil Quick Reference Programming Querying the Printer Battery Query Battery Query Original MF2/MF3/ 2t/4t Radio Ready 2t/3l/4t X X V1 and V2: Voltage of each of two X batteries- n.n volts (for V1); n.n volts (for V2) X Query Format ESC{BT?} Reply Format {BT!V:x;T:x;CH:x} Function Returns current battery voltage and temperature. Reply Example {BT!V:6.8;T:+25.8C,CH:C, PS:B} Reply Parameters V:Voltage of single - n.n volts VE: Voltage of battery eliminator - n.
Datamax-O’Neil Quick Reference Programming Querying the Printer Version Reply Explanation 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.nn. Memory Query Memory Query 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 amounts used and the amount remaining.
Datamax-O’Neil Quick Reference Programming Querying the Printer Printhead Query Printhead Query Query Format ESC{PH?} Reply Format {PH!TD:x;DD:x;T:x;M:x} Function Returns the printhead type used and the total number of dots across. Available for original MF2/MF3/2t/4t and radio ready 2t/3l/4t printers. Reply Example Thermal: {PH!TD:0384;DD:203;M:LPT3245;T:+25.6C;} Impact: {PH!IMPACT1;PINS:09;W:080} Reply Example Explanation Thermal: PH! - Reply to a printhead query.
Datamax-O’Neil Quick Reference Programming Querying the Printer Infrared Query Infrared Query 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. Also returns a unique name for the printer, communication capabilities, and peripherals. Although not all printers have infrared capabilities, the ESC{IR?} query is present in all printers to allow the user to determine uniquely which printer type is attached.
Datamax-O’Neil Quick Reference Programming Querying the Printer Infrared Reply Explanation Query Reply P OFF,IrDA,AS Original MF2/MF3/2t/4t Printers: Protocol selected is OFF, K, ASC-CRC, IrDA, ASK, ASK with CRC, DIRECT or DIRECT with CRC DIRECT, DIRECT-CRC Radio Ready 2t/3l/4t Printers: Fixed: N (None).
Datamax-O’Neil Quick Reference Programming Querying the Printer Query Reply IN x.x Definition IrDA nickname, up to 19 characters. Uniquely identifies the printer, its communication capabilities and its microFlash2, peripherals. microFlash2, 2t, 2i Thermal: • 2tR - 2t Radio firmware with RS-232 only • 2tRBT - 2t Radio firmware with RS-232 and Bluetooth • 2tR802 - 2t Radio firmware with RS-232 and 802.
Datamax-O’Neil Quick Reference Programming Querying the Printer Font Query Font Query Query Format ESC{FN?} Reply Format {FN!N5:x,N1:x,L:x,UV:x, UD:x,US:x, CPI:x} Function Lists 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 (;., ) separate each font. Available for original MF2/MF3/2t/4t and radio ready 2t/3l/4t printers.
Datamax-O’Neil Quick Reference Programming Querying the Printer Graphics Query Graphics Query Query Format ESC{GR?} Reply Format {GR!N5:x,N1:x,L:D,UV:x,UD:x,US:x} Function Lists graphics currently downloaded to the printer. The reply is similar to the fonts query reply but without the font-related information. Each graphic present in the printer will return one complete set of all parameters below. If there are no graphics present, the response will be {GR!}.
Datamax-O’Neil Quick Reference Programming Querying the Printer Formats Query Formats Query Query Format ESC{FM?} Reply Format {FM!N5:x,L:x,UV:x,UD:x,US:x} Function Lists formats downloaded to the printer. The reply is similar to the fonts query reply, but without the font-related information. Reply Example {FM!N5:LABEL,L:D,UV:1,UD:05/29/96,US:PROPERTY ID LABEL-BC} Reply Example Explanation FM! - Reply to a formats query. N5:LABEL, - The format has a five-character name of LABEL.
Datamax-O’Neil Quick Reference Programming Querying the Printer 802.11b/TCP/IP Reply Explanation Query Reply Definition E xxxxx Returns a variable length string specifying the ESSID (Extended Service Set Identification) configured in the printer. N xxxxx Returns a string name specifying the station name. T H,P Connection - H=AdHoc mode; P=Print point mode. D N,Y Dynamic Host Configuration Protocol (DHCP) status N=DHCP is off; Y=DHCP is on. I x.x.x.
Datamax-O’Neil Quick Reference Programming 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.
Datamax-O’Neil Quick Reference Programming 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.
Datamax-O’Neil Quick Reference Programming 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.
Datamax-O’Neil Quick Reference Programming 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.
Datamax-O’Neil Quick Reference Programming 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.
Datamax-O’Neil Quick Reference Programming Querying the Printer Label Configuration Query Label Configuration Query Original MF2/MF3/ 2t/4t 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} 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 (.
Datamax-O’Neil Quick Reference Programming 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!. The serial number is a string that can be entered in any format.
Index Numerics D A 802.
Datamax-O’Neil Quick Reference Programming bit-mapped graphics, 5 cancel buffer line, 4 carriage return, 7 EZ Print mode, 9 form feed, 7 line feed, 7 reset printer, 7 select font, 7 select international character set, 8 set double wide and high, 8 set double wide print, 6 set form length, 4 set interline spacing, 4 set single wide print, 6 memory query overview, 50 replies, 50 modes Easy Print, 11 P graphics query overview, 56 replies, 56 PDF-417 symbols, 23 Print Command Guidelines, 17 Print command b
Datamax-O’Neil Quick Reference Programming read magnetic card, 65 reset, 65 sending, 41 status, 43 table of, 42 version, 49 A B C D R read magnetic card query overview, 65 reset query overview, 65 Restore Default Values, 32 RF Radio Power Down Timeout, 30 Rotate Global Option, 17 E F G H S I Self Test Print, 30 Self-Test Printout command, 14 sending queries, 41 Status command, 14 status query overview, 43 replies, 44 Stop Global Option, 18 Stores Default Values, 32 System Timeout, 31 J K L M N V O