Page 2 - TRADEMARKS; REVISION HISTORY; ii
FOREWORD This manual provides programming information for printers featuring Zebra’s EPL2 Pro- gramming and command language, which are manufactured by Zebra Technologies Corpora- tion, Camarillo, California. COPYRIGHT NOTICE This document contains information proprietary to Zebra Technologies Corpo...
Page 3 - Table of Contents; Command - End Form Store
Table of Contents Introduction . . . . . . . . . . . . . . . . . . . . . . 1-1 Command Conventions . . . . . . . . . . . . . . . . 1-2 Basic Command Syntax . . . . . . . . . . . . . . . . 1-3 Command Editor . . . . . . . . . . . . . . . . . . . . 1-3 Placing Elements in the Print Image . . . . . . ....
Page 4 - iv
I Command - Character Set Selection . . . . . . . . . . . . . 3-53 JB Command - Disable Top Of Form Backup . . . . . . . . . . 3-55 JF Command - Enable Top Of Form Backup . . . . . . . . . . 3-56 LE Command - Line Draw Exclusive . . . . . . . . . . . . . . . 3-57 LO Command - Line Draw Black . . . ....
Page 5 - xa
xa Command - AutoSense . . . . . . . . . . . . . . . . . 3-106 X Command - Box Draw . . . . . . . . . . . . . . . . . . 3-107 Y Command - Serial Port Setup . . . . . . . . . . . . . . . 3-108 Z Command - Print Direction . . . . . . . . . . . . . . . . 3-109 ? Command - Download Variables . . . . . ....
Page 7 - Introduction
Introduction This section contains information about the ba- sic features, command syntax and terminology of the EPL2 Programming Language for Zebra's desktop printers with flash memory architec- ture. These printers incorporate common pro- gramming code sets and architectural features.The primary o...
Page 8 - All commands and alpha character command
Command Conventions The manual uses the following typographic conventions to describe commands. Example Description A Commands (Case Sensitive) p 1 ,p 2 ,p 3 Required parameters [p 1 , p 2 , p 3 ] Optional parameters {Choice 1|Choice 2} Indicates a mandatory choice be- tween two or more items. You m...
Page 9 - Command; WRITE TEXT; Command Name; Basic Command
Basic Command Syntax Each command consists of one or two ASCII (case sensitive) alpha characters to identify the specific command desired. Some commands require one or more additional parameters to supply the printer with sufficient information to complete the command. Refer to Figure 1- for the bas...
Page 10 - Text
Placing Elements in the Print Image Image elements are located in the image print buffer on a X-Y grid expressed in dots. The X value represents the width and the Y value rep- resents the height of the grid.The point of origin (the starting point) for a non-rotated object is the upper left corner. A...
Page 11 - Inter-character Space
Text (Fonts) The standard EPL2 printer has five (1-5) resi- dent mono-spaced dot fonts. Fonts A-Z and a-z (upper and lower case alpha characters) are re- served for downloading soft fonts. Control text height (in horizontal dots) and width (in vertical dots) with the horizontal and vertical multipli...
Page 12 - The text is placed into the image buffer. See the; The reference point of the first character in a text; times
The text is placed into the image buffer. See the following example. The reference point of the first character in a text string is not affected by the font size multiplier values. 1-6 980352-001 Rev.A V e r t i c a l D o t s x axis y axis Direction Of Feed (0,0) Text Text Text Text Text Point of Or...
Page 13 - Bar Codes; Bar Code Orientation Tip
Bar Codes All bar codes supported by the EPL2 language have associated industry specifications that the programmer should be aware of and adhere to. The programmer needs to consider bar code features and requirements when choosing and using a bar code for different applications. Some of the features...
Page 15 - Printer Configuration; Printer AutoSense
Printer Configuration This section covers the interpret your printer's configuration setup and setting basic modes. Printer AutoSense Feature Use the printer's AutoSense feature to deter- mine your printer's configuration and operating mode. The primary functions that AutoSense provides are: ❏ Adjus...
Page 16 - Explanation of the Status Printout; Determining Printer
Explanation of the Status Printout Determining Printer Firmware Version The printer version numbers are a code used to document product function and the feature support level of the printer. The latest firmware version and updates can be obtained from our web site. 2-2 980352-001 Rev.A 4M03351F 16 V...
Page 17 - ting is retained after reset has been issued or power; Manually Setting
Programming Mode Configuration Flash based printers are, by default, configured for Page (EPL2) mode operations. The opera- tor must convert the printer to Line Mode prior to the initial use of Line Mode. This is done via a hardware select procedure with the Feed button during printer power-up. See ...
Page 18 - Media Detection
Media Detection Media detection in EPL2 printers is a combina- tion of programming and printer media sensing. The Q (Set Form Length) and O (Option) com- mands program the media detection method. The user must configure the printer for the me- dia type and the (programmed) form or label in use.The p...
Page 19 - Command Reference; This section contains a complete listing of all
Command Reference This section contains a complete listing of all commands in alphabetical order. 980352-001 Rev.A 3-1
Page 22 - Ap; Parameters; “DATA”
A Command - ASCII Text Description Prints an ASCII text string. Syntax Ap 1 , p 2 , p 3 , p 4 , p 5 , p 6 , p 7 , "DATA" Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. p 3 = Rotation Value Description 0 No rotation 1 90 degrees 2 180 degree...
Page 23 - LE
A Command - ASCII Text The backslash (\) character designates the fol- lowing character is a literal and will encode into the data field. Refer to the following examples: To Print Enter into data field “ \” “Company” \”Company\” \ \\ \code\ \\code\\ Examples: ¿ N ¿ A50,0,0,1,1,1,N,"Example 1"...
Page 25 - Command - ASCII TEXT; Simple Expressions
A Command - ASCII TEXT Simple Expressions in Data Fields An advanced function of the A command allows addition and subtraction to be performed on constant and variable values in flash printers. Syntax Ap 1 , p 2 , p 3 , p 4 , p 5 , p 6 , p 7 , "DATA"[p 8 p 9 p 10 …] Parameters For the p 1 - ...
Page 26 - Command - Simple Expressions in Data Fields; FE; Asian Character Font
A Command - Simple Expressions in Data Fields Example: ¿ FK"1" ¿ FK"1" ¿ FS"1" ¿ V00,10,N,"Enter current mileage" ¿ A100,100,0,4,1,1,N,"Current mileage is “V00" miles.” ¿ A100,200,0,4,1,1,N,"Change oil at “V00+3000" miles.” ¿ FE ¿ ¿ FK"2" ¿ FK&...
Page 27 - Description; Using AUTOFR; AUTOFR; :Line Feed to initialize the printer
AUTOFR Command - Automatic Form Printing Description This special form process allows you to detach the printer from the computer and print in a standalone mode. The EPL2 printer reserves the form name AUTOFR to allow the printer to automatically start a form when the printer is in- itialized power-...
Page 28 - Isolating Data From; FK
AUTOFR - Automatic Form Printing Feature AUTOFR treats any incoming data as a variable in- tended for printing. This means if you send the printer a memory partition command, the label will print, if you send a delete command - the label will print! So, while you are testing AUTOFR it is best to use...
Page 29 - Bp; DATA
B Command - Bar Code Description Use this command to print standard bar codes. Syntax Bp 1 , p 2 , p 3 , p 4 , p 5 , p 6 , p 7 , p 8 , "DATA" Parameters p 1 = Horizontal start position (X) in dots p 2 = Vertical start position (Y) in dots. p 3 = Rotation Value Description 0 No rotation 1 90 ...
Page 31 - Bar Codes with; Vnn; or a combination of several options:
B Command - Bar Code Example: ¿ N ¿ B10,10,0,3,3,7,200,B,"998152-001" ¿ P1 ¿ Will Produce: Bar Codes with Variables & Counters The data field can be replaced by or combined with the following commands: Vnn =Prints the contents of variable “ nn ” at this position. Range of nn = 00 to 99. ...
Page 32 - Some bar code formats will not support date names; Function Characters
B Command - Bar Code Data with the RTC Time & Date Functions The “ Data” field can be replaced by or com- bined with the following variables: TT = Prints the current time at this position in the predefined format. See the TT com- mand for format selection. This variable is available only if the ...
Page 34 - Command - 2D Bar Code - MaxiCode Specific Options; bp; Mx; In Mode 2
b Command - 2D Bar Code - MaxiCode Specific Options Description Use this command to generate MaxiCode bar code symbols with a single command. The printer will automatically interpret and encode data into MaxiCode symbols for data modes 2, 3, 4, and 6. Up to eight symbols can be linked. Syntax bp 1 ,...
Page 35 - cl; Class Code; co; Postal Code; lpm; Low priority message
b Command - 2D Bar Code - MaxiCode Specific Options p 5 = x,y Associated MaxiCode symbol numbering where: x = Symbol Number of y = Total Number of Associated Sym- bols Default: Not used Range: 1-8 for both x or y ” DATA ”= Mode Dependent Data Format Mode dependent data is bounded by quotation marks....
Page 37 - The hexadecimal (ASCII) data control strings; GS; RS EOT; Syntax; SHIP; OT
Using AIM Specified MaxiCode Data Formatting The EPL printer can use and automatically de- code the AIM ITS (International Technical Stan- dards) MaxiCode data format. The printer detects the message/start header ( [)>R S ), field separator ( G S ), and the end of message marker ( R S E OT ) data...
Page 38 - Command - 2D Bar Code - PDF417 Specific Options; oH
b Command - 2D Bar Code - PDF417 Specific Options Description Use this command to print PDF 417 and Macro PDF bar code symbols. The printer will auto- matically change from PDF417 to Macro PDF bar code mode if the data sent to the printer ex- ceeds the maximum amount supported by the PDF417 symbol. ...
Page 39 - The following parameters may be omitted and de-; This parameter is a non-standard implemen-; xxx
b Command - 2D Bar Code - PDF417 Specific Options The following parameters may be omitted and de- fault values will automatically be inserted. Each pa- rameter value (data string) must be proceeded by its associated command prefix character. p 6 (s) = sets error correction level Error Correction cod...
Page 41 - Information
b Command - 2D Bar Code - PDF417 Specific Options "DATA" = ASCII data or Binary data bytes Represents a fixed data field. The backslash (\) character designates the fol- lowing character is a literal and will encode into the data field. Refer to the following examples: To Print Enter into da...
Page 42 - Symbol Geometry
b Command - 2D Bar Code - PDF417 Specific Options PDF417 Symbol Geometry Columns Maximum Rows Codewords 5 90 90 6 90 180 7 90 270 8 90 360 9 90 450 10 90 540 11 90 630 12 90 720 13 90 810 14 90 900 15 84 924 16 77 924 17 71 923 18 66 924 19 61 915 20 58 928 21 54 918 22 51 918 23 48 912 24 46 920 25...
Page 43 - Bar Code Generation
b Command - 2D Bar Code - PDF417 Specific Options Automatic PDF 417 Bar Code Generation The printer automatically tests and changes the PDF 417 bar code geometry to maximize the readability of the bar code for a given maximum height and width, specified by p 4 and p 5 . The printer tests the PDF 417...
Page 44 - tion that all men are created equal. Now we are engaged in a great; The second symbol has been set to print human
b Command - 2D Bar Code - PDF417 Specific Options Example: N ¿ b80,100,P,700,600,x2,y7,l100,r100,f0,s5," \ ¿ Fourscore and seven years ago our fathers brought forth on this conti- nent a new nation, conceived in liberty and dedicated to the proposi- tion that all men are created equal. Now we ar...
Page 45 - For Numeric Serialization Only. The counter; Cp; PROMPT; KDU Prompt
C Command - Counter Description The counter ( C ) command defines one of 10 automatic counters used in consecutive num- bering applications (i.e. serial numbers). Coun- ters must be defined after variables. For Numeric Serialization Only. The counter function does not support Alpha or Alpha-Numeric ...
Page 46 - If the starting value of a counter is “
C Command - Counter The C command is used in forms that require se- quential numbering. When initializing counters, they must be defined in order (e.g. C0 first, C1 second...).Field justification ( p 3 ) affects the printing of counter data. When L , R or C are selected, the counter field is the wid...
Page 47 - Command - Cut Immediate; can not
C Command - Cut Immediate Description: This command allows the printer to initiate an immediate media cut without a form print oper- ation. The printer must have the cutter option installed. ❏ The C command – Cut Immediate can not be used inside of a form. ❏ The initial character C in a command stri...
Page 48 - Dp; The density command controls the amount of; The density and speed commands can dramatically
D Command - Density Description Use this command to select the print density. Syntax Dp 1 Parameters p 1 = Density setting. Acceptable values are: Model Acceptable Values 1 Default Value 2722 0 - 15 7 2742 0 - 15 7 3742 0 - 15 7 2443 (Orion) 0 - 15 10 2824 0 - 15 7 2844 0 - 15 10 Hx-146 0 - 15 7 274...
Page 49 - dump
dump Command - Enable Dump Mode Description This command allows the advanced program- mer to force a user diagnostic “data dump” mode. Sending the dump command to the printer allows the programmer to compare ac- tual data sent to printer with the host program.Send data to the printer after the dump ...
Page 50 - This command allows the advanced program-; eRp; = Any single ASCII character; XON; For Mode 2 Error and Status Reporting:
eR Command - User Defined Error/Status Character Description: This command allows the advanced program- mer to specify the printer's error/status report character for error reporting via the RS-232 se- rial interface. Syntax: eRp 1 , p 2 Parameters: p 1 = Any single ASCII character Range: 0-255 deci...
Page 51 - EI; Soft fonts can be downloaded to and deleted from
EI Command - Print Soft Font Information Description This command will cause the printer to print a list of all soft fonts that are stored in memory. Syntax EI ¿ Soft fonts can be downloaded to and deleted from the printer from the Soft Font Downloader Utility, CAL Tools or CAL3. Example: EI ¿ :prin...
Page 52 - “FONTNAME”; = By entering the name of a
EK Command - Delete Soft Font Description This command is used to delete soft fonts from memory. Soft fonts can be downloaded to and deleted from the printer from the Soft Font Downloader Utility, CAL Tools or CAL3. Syntax EK {“FONTNAME”|"*"} Parameters “FONTNAME” = By entering the name of a...
Page 53 - Command - Store Soft Font; “DATA; The following use hexadecimal
ES Command - Store Soft Font Description This command is used to download and store soft fonts in memory. Soft fonts can be downloaded to and deleted from the printer from the Soft Font Downloader Utility, CAL Tools or CAL3. Syntax ES"FONTNAME"p 1 p 2 p 3 a 1 b 1 c 1 “DATA 1 ”a 2 b 2 c 2 “DA...
Page 54 - Repeat for each character until the last char-
ES Command - Store Soft Font a 1 : (1 st ) Download Character (map position) Range: 00 to FF hex. b 1 : (1 st ) Spacing To Next Print Character Downloaded character’s next printed character position in dots, i.e. Character tracking - the space between characters. Must be greater than or equal to the...
Page 55 - For fonts with the rotation parameter set; Example of
ES Command - Store Soft Font For fonts with the rotation parameter set for “both” ( p 2 = 02 hex.): Repeat the individual font character download for each 90° rotated character from the start of the character set until the last rotated character in the set is downloaded. a 1-90° b 1-90° c 1-90° “DAT...
Page 56 - Soft Fonts
ES Command - Store Soft Font Soft Fonts Programming Code Example The typical soft font download command strings to the printer. The following example was generated with the CAL3 software. 3-38 980352-001 Rev.A 00000000 0D 0A 45 4B 22 61 22 0D 0A 45 53 22 61 22 03 00 ..EK"a"..ES"a".. ...
Page 57 - Font Bitmap Data
ES Command - Store Soft Font Font Bitmap Data Format The black and white bitmap that represents the font must be converted into ASCII hexadecimal code. The 0° font format has dot converted to data bytes reading from left to right and the last byte in a line is padded with zeros to complete the line ...
Page 58 - Command - Cut Position; fp
f Command - Cut Position Description Use this command on an individual printer to provide precision cut placement. · Compensate sensor to cutter position differ- ences on a printer by printer basis. · Fine-tune cut position to compensate for dif- ferences in media. Syntax fp 1 Parameters p 1 = Cut p...
Page 59 - The form store sequence is started with the; FS
FE Command - End Form Store Description This command is used to end a form store se- quence. Syntax FE Example: FS"FORMNAME" ↵ ... FE ↵ The form store sequence is started with the FS command. 980352-001 Rev.A 3-41
Page 60 - Command - Print Form Information
FI Command - Print Form Information Description This command will cause the printer to print a list of all forms stored in memory. Syntax FI Example: FI ¿ :prints forms list Will Produce: 3-42 980352-001 Rev.A
Page 61 - “FORMNAME”; characters; forms will be deleted from memory. The; :deletes form “AFORM”
FK Command - Delete Form Description This command is used to delete forms from memory. Syntax FK [ "FORMNAME" | "*" ] Parameters “FORMNAME” = By entering the name of a form, that form will be deleted from memory. · The name may be up to 8 characters long. · Form names stored by the p...
Page 62 - Command - Retrieve Form; = This is the form name; :retrieves the form named TEST1; To print a list of the forms currently stored in
FR Command - Retrieve Form Description Use this command to retrieve a form that was previously stored in memory. Syntax FR"FORMNAME" Parameters “FORMNAME” = This is the form name used when the form was stored. · The name may be up to 8 characters long. · Form names stored by the printer are ...
Page 64 - :delete form “TESTFORM”
FS Command - Store Form Example: ¿ FK"TESTFORM" ¿ :delete form “TESTFORM” FS"TESTFORM" ¿ :begins the form store sequence of :the form “TESTFORM” V00,15,N,"Enter Product Name:" ¿ B10,20,0,3,2,10,100,B,"998152.001" ¿ A50,200,0,3,1,1,N,"Example Form" ¿ A50,400,0,...
Page 65 - GGp; “NAME” or Variable Data; graphic name used when the graphic; G M
GG Command - Print Graphics Description Use this command to print a PCX (format) graphic that has been previously stored in printer memory. Syntax GGp 1 , p 2 , {"NAME" | Variable Data} Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. “NAME” ...
Page 66 - GI
GI Command - Print Graphics Information Description This command will cause the printer to print a list of all graphics stored in memory. Syntax GI Example: GI ¿ :prints graphics list Will Produce: 3-48 980352-001 Rev.A
Page 67 - “NAME”; GM; :deletes graphic “LOGO”
GK Command - Delete Graphics Description Use this command to delete graphics from memory. Syntax GK {“NAME”|"*"} Parameters “NAME” = By entering the name of a graphic, that graphic will be deleted from memory. · Graphic names stored by the printer are case sensitive and will be stored exactl...
Page 69 - :Prepares printer to receive graphic; GK“WORLD”
GM Command - Store Graphics Example: GK"LOGO1" ↵ :deletes graphic “LOGO1” - Required GK"LOGO1" ↵ :second delete graphic - Required GM"LOGO1"584 ↵ :Prepares printer to receive graphic :“LOGO1” DATA : Data string in PCX format If using a DOS system, the PCX format file (bi- nar...
Page 70 - GWp
GW Command - Direct Graphic Write Description Use this command to load binary graphic data directly into the Image Buffer memory for im- mediate printing. The printer does not store graphic data sent directly to the image buffer.The graphic data is lost when the image has fin- ished printing, power ...
Page 71 - Command - Character Set Selection; Ip
I Command - Character Set Selection Description Use this command to select the appropriate character set for printing and display (KDU). Syntax Ip 1 , p 2 , p 3 Parameters p 1 = Number of data bits - 8 for 8 bit data or 7 for 7 bit data. p 2 = Printer Code page/Language Support 980352-001 Rev.A 3-53...
Page 72 - The default setting is
I Command - Character Set Selection p 3 = KDU Country Code (8 bit data only) KDU Country Code (8 bit only) 032 Belgium 049 Germany 027 S. Africa 002 Canada 031 Netherl’ds 034 Spain 045 Denmark 039 Italy 046 Sweden 358 Finland 003 Latin Am. 041 Swizerl’d 033 France 047 Norway 044 U.K. 351 Portugal 00...
Page 73 - JB; JB
JB Command - Disable Top Of Form Backup Description This command disables the Top Of Form Backup feature when printing multiple labels. At power up, Top Of Form Backup will be en- abled. Syntax JB Example: JB ¿ With the JB command enabled, the first label will backup to the Top Of Form before printi...
Page 74 - JF
JF Command - Enable Top Of Form Backup Description This command enables the Top Of Form Backup feature and presents the last label of a batch print operation. Upon request initiating the printing of the next form (or batch), the last label backs up the Top Of Form before printing the next label. Syn...
Page 75 - LEp
LE Command - Line Draw Exclusive Description Use this command to draw lines with an “Exclu- sive OR” function. Any area, line, image or field that this line intersects or overlays will be “re- versed out” or inverted. In other words, all black will be reversed to white and all white will be re- vers...
Page 76 - LOp
LO Command - Line Draw Black Description Use this command to draw black lines, overwrit- ing previous information. Syntax LOp 1 , p 2 , p 3 , p 4 Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. p 3 = Horizontal length in dots. p 4 = Vertical length ...
Page 77 - LSp; :draw a diagonal line
LS Command - Line Draw Diagonal Description Use this command to draw diagonal black lines, overwriting previous information. Syntax LSp 1 , p 2 , p 3 , p 4 , p 5 Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. p 3 = Line thickness in dots. p 4 = Hor...
Page 78 - LWp; :draw another black line
LW Command - Line Draw White Description Use this command to draw white lines, effec- tively erasing previous information. Syntax LWp 1 , p 2 , p 3 , p 4 Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. p 3 = Horizontal length in dots. p 4 = Vertical...
Page 79 - Command - Memory Allocation; Mp; Available memory and the current allocation of
M Command - Memory Allocation Description This command no longer changes memory allo- cation. It was originally used for SRAM and early model flash printers. The command now allows the programmer to set the size of forms memory only. The reminder of the storage memory will be shared by soft fonts an...
Page 80 - Command - Clear Image Buffer; Do not use the
N Command - Clear Image Buffer Description This command clears the image buffer prior to building a new label image. Syntax N Do not use the N command within stored forms. Example: ¿ :activates command processing N ¿ :clears the image buffer Always send a Line Feed (LF) prior to the N com- mand to e...
Page 81 - Command - Cancel Software Options
o Command - Cancel Software Options Description This command allows the user to cancel most printer customization parameters set by o series commands.Parameters set by the following commands are canceled and returned to default operation: · oH · oM · oE Syntax o Parameters None The o command is a gl...
Page 82 - oB
oB Command - Cancel Auto Bar Code Optimization Description: This command allows the advanced program- mer to disable bar code optimization for rotated (90° & 270°) bar codes. Syntax: oB Parameters: None The oB command is a global printer com- mand. ❏ It can not be issued inside of a form. ❏ It m...
Page 83 - Line Mode; oE
oE Command - Line Mode Font Substitution Description: This command is a Page Mode (EPL2) com- mand that allows the printer to set alternate Line Mode font character sets. The fonts are activated by the oE command and are intended for EPL1 emulation. Syntax: oEp 1 , p 2 , p 3 , p 4 , p 5 p 1 = 5 x 7 ...
Page 84 - This command must precede any PDF 417 bar code; oHp
oH Command - Macro PDF Offset Description Use this command to place addition secondary, associated Macro PDF symbols for the continu- ation of data greater than a single PDF 417 bar code can store. This command must precede any PDF 417 bar code commands in order to print Macro PDF (multiple bar code...
Page 85 - shall not perish from the earth.
oH Command - Macro PDF Offset Example: N ¿ q784 ¿ Q1215,24 ¿ R0,0 ¿ oH0,500 ¿ ¿ N ¿ b80,100,P,700,600,x2,y7,l100,r100,f0,s5,"\ Fourscore and seven years ago our fathers... <<< the rest of Lincoln’s Gettysburg Address HERE >>> ... and that government of the people, by the people...
Page 86 - oM
oM Command - Disable Initial Esc Sequence Feed Description This command disables the automatic label cal- ibration routine executed by the printer upon receiving the first escape command sequence from the Windows printer driver. The printer normally measures a single label and sets the top of form p...
Page 87 - oR; oR; Range; None; The Euro character is not supported in Font 5 char-
oR Command - Character Substitution (Euro) Description This command allows the advanced program- mer to substitute the Euro currency character for any ASCII character in printer resident font numbers 1-4.The original character can be restored by send- ing the oR command without a parameter. Syntax o...
Page 89 - Using the; oW; command may cause bar codes to be-; oWp
oW Command - Customize Bar Code Parameters Description: This command allows the advanced program- mer to modify specific bar code parameters to exceed the specified bar code’s design toler- ances, i.e. reduce the bar code size. Using the oW command may cause bar codes to be- come unreadable by some ...
Page 91 - Command - Hardware Options
O Command - Hardware Options Description Use this command to select various printer op- tions. Options available vary by printer configuration. Syntax O[C[p 1 ], D, P, L, S] Parameters D = Enable Direct Thermal Mode , use this option when using direct thermal media in a thermal transfer printer. P =...
Page 93 - Command - Set Line Mode; ESC
OEPL1 Command - Set Line Mode Description: This command is used to switch the printer op- erating mode from Page Mode (EPL2) to Line Mode (EPL1 emulation).Line Mode configuration setting is retained after reset has been issued or power has been cycled. Syntax OEPL1 Example: OEPL1 ¿ Returning to Page...
Page 94 - Pp; The
P Command - Print Description Use this command to print the contents of the image buffer. Syntax Pp 1 , [p 2 ] Parameters p 1 = Number of label sets. Range = 1 to 65535 p 2 = Number of copies of each label (used in combination with counters to print mul- tiple copies of the same label). Range = 1 to...
Page 95 - Command - Print Automatic; PAp
PA Command - Print Automatic Description Use this command in a stored form sequence to automatically print the form (as soon as all vari- able data has been supplied). Syntax PAp 1 , [p 2 ] Parameters p 1 = Number of label sets. Can be variable data. Range: 1 to 9999 p 2 = Number of copies of the sa...
Page 96 - Command - Set Label Width; qp; Print Head; Center Alignment; Print Head; Image
q Command - Set Label Width Description Use this command to set the width of the print- able area of the media. Syntax qp 1 Parameters p 1 = The width of the label measured in dots. The q command will cause the image buffer to reformat and position to match the selected la- bel width ( p 1 ). 3-78 9...
Page 97 - All Printers
q Command - Set Label Width All Printers (Exceptions - 2746 & 2348) This command will automatically set the left margin according to the following rules: (print head width - label width) / 2 The q value affects the available print width. Mini- mizing the q value will maximize the print length an...
Page 98 - Command - Set Form Length; Qp; Required for black line
Q Command - Set Form Length Description Use this command to set the form and gap length or black line thickness when using the transmissive (gap) sensor, black line sensor, or for setting the printer into the continuous media print mode.The Q command will cause the printer to recal- culate and refor...
Page 99 - AutoSense routine does not detect black line; sor designed to detect the top of each label or
Q Command - Set Form Length AutoSense routine does not detect black line or continuous media. All EPL2 printers have a transmissive (gap) sen- sor designed to detect the top of each label or tag. It does this in one of two ways: · Sensing through the label liner at the gap be- tween labels. · Lookin...
Page 100 - Standard Label; The Q command would be:
Q Command - Set Form Length Examples: 3-82 980352-001 Rev.A p 1 p 2 p 3 p 2 Standard Label Butterfly Label Where: p = 20.0 mm (160 dots) p = 3.0mm (24 dots) The Q command would be: Q160,24 1 2 ↵ Where: p = 12.5 mm (100 dots) p = 3.0mm (24 dots) p = 3.0mm (24 dots) The Q command would be: Q100,24+24 ...
Page 101 - Black Line Between Perforation; Black Line On Perforation
Q Command - Set Form Length 980352-001 Rev.A 3-83 p 2 p 3 Black Line Between Perforation Where: p = 31.0 mm (248 dots) p = 7.0mm (56 dots) p = 17 mm (136 dots) The Q command would be: Q248,B56-136 1 2 3 ↵ p 1 Perforation p 2 p 3 Black Line On Perforation Where: p = 31.0 mm (248 dots) p = 7.0mm (56 d...
Page 102 - Command - Set Double Buffer Mode; rp; rN; command must follow the
r Command - Set Double Buffer Mode Description: Use this command to disable or reenable the double buffer image (label) printing. The dou- ble buffer feature is a automatically tested and set by the q and Q commands. Syntax: rp 1 Parameters: p 1 = N - Disable Double Buffer Mode Y - Re-enable the Dou...
Page 103 - Command - Set Reference Point; Rp; ZT
R Command - Set Reference Point Description Use this command to move the reference point for the X and Y axes. All horizontal and vertical measurements in other commands use the set- ting for R as the origin for measurements. Use the R command as an alternative to sending the q command to position (...
Page 104 - Command - Speed Select; Sp
S Command - Speed Select Description Use this command to select the print speed. Syntax Sp 1 Parameters p 1 = Speed select value. Model Value Speed 2722 2742 3742 0 1 2 1.0 ips (25 mm/s) 1.5 ips (37 mm/s) 2.0 ips (50 mm/s) 2824 2844 1 2 3 4 1.5 ips (37 mm/s) 2.0ips (50 mm/s) 2.5 ips (63 mm/s) 3.5 ip...
Page 105 - TD; TDp; me; This command only works in printers equipped with
TD Command - Define Date Layout Description Use this command to define the date format when printing. Use the variable TD in a Text or Bar Code ( A & B commands) DATA parameter to print the date. Syntax TDp 1 [|p 2 |p 3 ] Parameters p 1 , p 2 , p 3 = The parameters describe the format of the dat...
Page 106 - TSp
TS Command - Set Real Time Clock Description Use this command to set the time and date in printers equipped with the Real Time Clock op- tion. Syntax TSp 1 , p 2 , p 3 , p 4 , p 5 , p 6 Parameters p 1 = Month Range: 01 to 12 p 2 = Day Range: 01 to 31 p 3 = Year Last two digits of Year (e.g. 95) Rang...
Page 107 - TTp; At lease one parameter must be supplied.; Default; This command works only in printers equipped with
TT Command - Define Time Layout Description Use this command to define the time format when printing. Syntax TTp 1 [|p 2 |p 3 ][+] Parameters P 1 , P 2 , P 3 = h, m, or s These parameters describe the format of the time display. · At lease one parameter must be supplied. · Each parameter can be any ...
Page 109 - Command - Enable Clear Label Counter Mode; UB
UA Command - Enable Clear Label Counter Mode Description This command sets the printer to clear (empty) the print buffer if a media out condition is de- tected. Syntax UA A power cycle, reset, or UB command will clear this setting. Normal (default) operation for the printer is to resume printing if ...
Page 111 - The printer will send the number of external; UE
UE Command - External Font Information Inquiry Description This command will cause the printer to send in- formation about external fonts currently stored in the printer back to the host. Syntax UE The printer will send the number of external fonts stored and each font’s name, height and direction, ...
Page 112 - The printer will send the number of forms stored; UF
UF Command - Form Information Inquiry Description This command will cause the printer to send in- formation about forms currently stored in the printer back to the host. Syntax UF The printer will send the number of forms stored and each form’s name to the host through the RS-232 port. Example: UF ¿...
Page 113 - The printer will send the number of graphics; UG
UG Command - Graphics Information Inquiry Description This command will cause the printer to send in- formation about graphics currently stored in the printer back to the host. Syntax UG The printer will send the number of graphics stored and each graphic’s name to the host through the RS-232 port. ...
Page 114 - UI; UIp; The KDU automatically sends this command each
UI Command - Host Prompts/Codepage Inquiry Description This command will cause the printer to enable prompts to be sent to the host and it will send the currently selected codepage to the host through the RS-232 port.This command also disables software flow con- trol (XON/XOFF). Hardware flow contro...
Page 115 - UM; UM; UP
UM Command - Codepage & Memory Inquiry Description This command will cause the printer to send to the host of the currently selected codepage and memory status through the RS-232 port.This command also disables software flow con- trol (XON/XOFF). Hardware flow control is not disabled (DTR/CTS). ...
Page 116 - US; command; UN
UN Command - Disable Error Reporting Description Cancels US command Syntax UN 3-98 980352-001 Rev.A
Page 117 - See Also
UP Command - Codepage & Memory Inquiry/Print Description This command will cause the printer to print and send the currently selected codepage and memory status to the host through the RS-232 port.This command also disables software flow con- trol (XON/XOFF). Hardware flow control is not disable...
Page 118 - UQ
UQ Command - Configuration Inquiry Description Use this command to send the printer configu- ration information back to the host via the serial port. Syntax UQ The printer will send the printer configuration, line by line, in ASCII to the host through the RS-232 port. The information matches the con...
Page 119 - Serial Port
US Command - Enable Error Reporting Description Use this command to enable the printer’s status reporting feature. · Serial Port - If an error occurs, the printer will send a NACK(0x15), followed by the er- ror number, to the computer. If no errors oc- cur, the printer will echo ACK(0x6) after each ...
Page 121 - Command - Define Variable; Vp; Note; “PROMPT”
V Command - Define Variable Description Use this command to define variable data for the text and bar code data fields in stored forms. Variable data can be combined with fixed data or other data types (counter, date, etc..) in text or bar code data fields. Syntax Vp 1 , p 2 , p 3 , "[-]PROMPT...
Page 123 - Command - Windows Mode; Wp
W Command - Windows Mode Description This command is used to disable/re-enable the Windows command mode. Syntax Wp 1 Parameters p 1 = Windows Mode Enabled. Values = Y for enabled (default) N for disabled When enabled, the printer will accept Windows mode escape sequences to print data. When disabled...
Page 125 - Xp
X Command - Box Draw Description Use this command to draw a box shape. Syntax Xp 1 , p 2 , p 3 , p 4 , p 5 Parameters p 1 = Horizontal start position (X) in dots. p 2 = Vertical start position (Y) in dots. p 3 = Line thickness in dots. p 4 = Horizontal end position (X) in dots. p 5 = Vertical end po...
Page 126 - Command - Serial Port Setup; Yp; After receiving this command, the printer will; The printer’s default serial port parameters are
Y Command - Serial Port Setup Description Use this command to establish the serial port communication parameters. Syntax Yp 1 , p 2 , p 3 , p 4 Parameters p 1 = Baud rate p1 Description 38 38,400 baud (38K) 19 19,200 baud 96 9,600 baud 48 4,800 baud 24 2,400 baud 12 1,200 baud p 2 = Parity. Values: ...
Page 127 - Command - Print Direction; Zp; The top of the image buffer prints first and is viewed
Z Command - Print Direction Description Use this command to select the print orienta- tion. Syntax Zp 1 Parameters p 1 = Print orientation. T = Printing from top of image buffer. B = Printing from bottom of image buffer. Default Orientation = T The top of the image buffer prints first and is viewed ...
Page 128 - Command - Download Variables; Each; line represents a variable or; :begins the form store
? Command - Download Variables Description This command signals the printer to “fill-in” variable or counter “prompt” data field.The host system can send data representing variables and/or counters to the printer after a stored form containing variables and/or coun- ters has been retrieved. Syntax ?...
Page 129 - Command - Reset Printer; :The printer will reset
^@ Command - Reset Printer Description This command is used to reset the printer. Syntax ^@ ¿ :where ^is 94 decimal This command emulates Power Off and then Power On; thus reinitializing the printer. · The reset command is unavailable during the operation of storing PCX graphics, soft fonts or while...
Page 131 - Appendix A - Character References; This section has character references.
Appendix A - Character References This section has character references. Resident Fonts 1-5 Page Mode supports 5 different font sizes, num- bered 1-5. Each font can be expanded both horizontally and vertically. All fonts are non-proportional, mono-spaced. The ASCII value of each character is depende...
Page 133 - Hexidecimal- Most Significant Digit
Dump Mode Character Map The printer's Dump Mode is used to trouble- shoot programming. The printer will print all data as sent in Dump Mode Characters, shown below. 980352-001 Rev.A A-3 0 1 2 3 4 5 6 7 8 9 A B C D E F 0 1 2 3 4 5 6 7 8 9 A B C D E F Hexidecimal- Most Significant Digit H exi deci m a...
Page 135 - Appendix B - Cash Drawer Kicker Option
Appendix B - Cash Drawer Kicker Option This section has hardware and programming for the Cash Drawer Kicker. Introduction The cash drawer kicker is a factory option only. The printer requires a special PCBA to support this option. At the time of publication, the 2824 printer is the only page mode pr...
Page 136 - PRINTER; SGND
Cash Drawer Cable Wiring The figure below displays the pin assignments for the printer's retail cash drawer interface. Re- fer to the cash draw manufacturer's documenta- tion for proper drawer wiring. *+24 volts D.C. at no greater than 1.5 amps. B-2 980352-001 Rev.A PRINTER RJ-11 Pin No. Male RJ-11 ...
Page 137 - Command - Generate Pulse CDK
<Esc> p Command - Generate Pulse CDK Description Generate a drawer kicker pulse. Syntax <Esc>pp 1 p 2 p 3 Parameters p 1 = Select Drawer Drawer 1 (SDRV1) = 31 hex. Drawer 2 (SDRV2) = 32 hex. p 2 = Pulse “on” time in multiples of two milli- seconds (2 msec). Range = 00 - FF hex. p 3 = Pul...
Page 138 - Status
<Esc> u Command - CDK Status Description Report the cash drawer kicker’s status. Syntax <Esc>u Parameters None Status 00 hex. = Cash Drawer Open 01 hex. = Cash Drawer Closed B-4 980352-001 Rev.A