Download  Print this page

Zebra EPL2 Programmer's Manual

Programming for page mode printing
Hide thumbs

Advertisement

EPL2
Programmer's
Manual
Programming for Page Mode
Printing
Manual No. 980352-001
Rev. A
©2001 Zebra Technologies Corporation

Advertisement

Table of Contents
loading

  Related Manuals for Zebra EPL2

  Summary of Contents for Zebra EPL2

  • Page 1 EPL2 Programmer’s Manual Programming for Page Mode Printing Manual No. 980352-001 Rev. A ©2001 Zebra Technologies Corporation...
  • Page 2: Copyright Notice

    REVISION HISTORY Rev. A - This manual version coincides with Zebra printers with EPL2 firmware version 4.04 and is available from Zebra in electronic form. See the Zebra web site for information on Zebra Technologies printers at: www.zebra.com...
  • Page 3: Table Of Contents

    Table of Contents Introduction ..... . 1-1 Command Conventions ....1-2 Basic Command Syntax .
  • Page 4 Command - Character Set Selection ... . . 3-53 Command - Disable Top Of Form Backup ..3-55 Command - Enable Top Of Form Backup ..3-56 Command - Line Draw Exclusive .
  • Page 5 Command - AutoSense ....3-106 Command - Box Draw ....3-107 Command - Serial Port Setup .
  • Page 6 980352-001 Rev.A...
  • Page 7: Introduction

    EPL2 is an ideal language for your labeling and bar code requirements. The EPL2 is versatile and is capable of printing a wide range media and bar codes.
  • Page 8: Command Conventions

    Command The manual uses the following typographic conventions to describe commands. Conventions Example {Choice 1|Choice 2} This text should be → on one line ↵ “NAME” “DATA” “PROMPT” Attention!! All commands and alpha character command parameters are case sensitive! Description Commands (Case Sensitive) Required parameters Optional parameters...
  • Page 9: Basic Command Syntax

    Basic Command Each command consists of one or two ASCII (case sensitive) alpha characters to identify the Syntax 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 basic command syntax.
  • Page 10: Placing Elements In The Print Image

    Placing Elements in Image elements are located in the image print buffer on a X-Y grid expressed in dots. The X the Print Image 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.
  • Page 11 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 multipliers.
  • Page 12: Text (Fonts)

    The text is placed into the image buffer. See the following example. x axis (0,0) y axis Point of Origin for Text Object Point of Origin for Text Object Point of Origin for Text Object The reference point of the first character in a text string is not affected by the font size multiplier values.
  • Page 13: Bar Codes

    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.
  • Page 14: Programming Sequences Affect Graphic Results

    Programming Graphic elements can interact and the resultant image can be affected by other commands. Sequences Affect Structure command sequences to reduce the Graphic Results chances of unexpected print results. The printer will process lines, text, boxes and most bar codes in command sequence.
  • Page 15: Printer Configuration

    Feature mode. The primary functions that AutoSense provides are: ❏Adjustment of the Media Sensor in the printer ❏Programming Mode - Page (EPL2) or Line ❏The printer' serial interface settings. ❏Reports the printer's configuration status in- 980352-001 Rev.A Printer Configuration to the media in use.
  • Page 16: Determining Printer Firmware Version

    Explanation of the Status Printout Dump Mode Print Sample Determining Printer The printer version numbers are a code used to document product function and the feature Firmware Version support level of the printer. The latest firmware version and updates can be obtained from our web site.
  • Page 17: Programming Mode Configuration

    Programming Mode Flash based printers are, by default, configured for Page (EPL2) mode operations. The opera- Configuration 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.
  • Page 18: Media Detection

    Media Detection Media detection in EPL2 printers is a combina- tion of programming and printer media sensing. (Set Form Length) and (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.
  • Page 19: Command Reference

    Command Reference This section contains a complete listing of all commands in alphabetical order. 980352-001 Rev.A...
  • Page 20 Command ASCII Text AUTOFR Automatic Form Printing Bar Code MaxiCode PDF417 Counter Cut Immediate Density Print Soft Font Info. Delete Soft Font User Definable Error Response Store Soft Font Cut/Peel Position End Form Store Print Form Info. Delete Form Retrieve Form Store Form Retrieve Graphics Print Graphics Info.
  • Page 21 Command Set Form Length Transmissive (Gap) Sensor Black Line Sensor Continuous Stock Set Form Width Set Double Buffer Mode Set Reference Point Speed Select Define Date Layout (& Print Date) Set Real Time Clock Define Time Layout (& Print Time) Print Configuration Enable Clear Label Counter Mode Reset Label Counter Mode...
  • Page 22: A Command - Ascii Text

    A Command - ASCII Text Description Prints an ASCII text string. Syntax Parameters “DATA” ,"DATA" = Horizontal start position (X) in dots. = Vertical start position (Y) in dots. = Rotation Value Description No rotation 90 degrees 180 degrees 270 degrees = Font selection Description Value...
  • Page 23 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 “ “Company” \code\ Examples: ¿ N¿ A50,0,0,1,1,1,N,"Example A50,50,0,2,1,1,N,"Example A50,100,0,3,1,1,N,"Example A50,150,0,4,1,1,N,"Example A50,200,0,5,1,1,N,"EXAMPLE A50,300,0,3,2,2,R,"Example...
  • Page 24 A Command - ASCII Text Variable Data and bined with the following commands: Counter Functions Vnn= Prints the contents of variable “nn” at Cn= Prints the contents of counter “n” at this Example: A50,0,0,1,1,1,N,"DATA"¿ A50,50,0,2,1,1,N,V01¿: Writes contents of variable 01 A50,100,0,3,1,1,N,C1¿: Writes contents of counter 1 A50,100,0,3,1,1,N,C1+2¿...
  • Page 25 A Command - ASCII TEXT Simple Expressions An advanced function of the addition and subtraction to be performed on in Data Fields constant and variable values in flash printers. Syntax Parameters For the Valid Number Ranges: ❏The Expression must start with a variable ❏The character field length defined for the first ❏A syntax error will be generated during form ❏If an error occurs during the evaluation of the...
  • Page 26: Asian Character Font Sets

    A Command - Simple Expressions in Data Fields Example: ¿ FK"1"¿ FK"1"¿ FS"1"¿ V00,10,N,"Enter current A100,100,0,4,1,1,N,"Current mileage is “V00" A100,200,0,4,1,1,N,"Change oil at “V00+3000" FE¿ ¿ FK"2"¿ FK"2"¿ FS"2"¿ V00,10,N,"Enter current V01,10,N,"Enter interval A100,100,0,4,1,1,N,"Current mileage is “V00" A100,200,0,4,1,1,N,"Mileage interval is “V01" A100,200,0,4,1,1,N,"Change oil at “V00+V01"...
  • Page 27: Autofr Command - Automatic Form Printing

    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 automatically start a form when the printer is in- itialized power-up.
  • Page 28 AUTOFR - Automatic Form Printing Feature AUTOFR 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 use another name for the form.
  • Page 29: B Command - Bar Code

    B Command - Bar Code Description Use this command to print standard bar codes. Syntax Parameters “DATA” = Represents a fixed data field. The data in this field must comply with the selected bar code’s specified format. The backslash (\) character designates the fol- lowing character is a literal and will encode into the data field.
  • Page 30 B Command - Bar Code Bar Codes Code 39 std. or extended Code 39 with check digit Code 93 Code 128 UCC Serial Shipping Container Code Code 128 auto A, B, C modes Code 128 mode A Code 128 mode B Code 128 mode C Codabar EAN8...
  • Page 31 B Command - Bar Code Example: ¿ N¿ B10,10,0,3,3,7,200,B,"998152-001"¿ P1¿ Will Produce: Bar Codes with The data field can be replaced by or combined with the following commands: Variables & Counters See Appendix C for additional ters for printers with the RTC (real time clock) option installed.
  • Page 32 B Command - Bar Code Data with the RTC bined with the following variables: Time & Date Functions the predefined format. See the for format selection. This variable is available only if the printer Time & Date option is in- stalled.
  • Page 33 B Command - Bar Code Code 128 Bar Code A single extended ASCII mode for only a single follow- Function Characters ing data character. This is referred to as shifting (continued) into extended ASCII mode or shifting into stan- dard ASCII mode. Both code sets A and B are needed to represent the entire extended ASCII character set, just as both sets are needed to represent the standard...
  • Page 34: Command - 2D Bar Code - Maxicode Specific Options

    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 Parameters 1.
  • Page 35 b Command - 2D Bar Code - MaxiCode Specific Options ”DATA”= The programmer should rely on the symbology's specification to insure format compliance and proper implementation. See the AIM web site for specifications at: 980352-001 Rev.A Associated MaxiCode symbol numbering where: = Symbol Number of = Total Number of Associated Sym-...
  • Page 36 b Command - 2D Bar Code - MaxiCode Specific Options Example: N¿ b20,20,M,"300,840,93065,1692,This is MaxiCode, but not MaxiCode formatted P1¿ Will Produce: 3-18 data"¿ 980352-001 Rev.A...
  • Page 37 MaxiCode data format. The printer Formatting detects the message/start header separator The hexadecimal (ASCII) data control strings are in the following table. See the EPL2 dump mode character map in Appendix A. Control String Message/Start Header [ ) > R S...
  • Page 38: Command - 2D Bar Code - Pdf417 Specific Options

    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 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. EC level 980352-001 Rev.A = sets error correction level Error Correction codewords per symbol...
  • Page 40 b Command - 2D Bar Code - PDF417 Specific Options 3-22 = Bar code origin point Values: or 1, Default is f1- Center of bar code as defined by the automatically adjusted symbol size, i.e. width and height. Parameters values are maximum values only. f0- Upper left corner of bar code.
  • Page 41 b Command - 2D Bar Code - PDF417 Specific Options "DATA" 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 “ “Company” \code\ ¿...
  • Page 42 b Command - 2D Bar Code - PDF417 Specific Options PDF417 Symbol Geometry 3-24 Columns Maximum Rows Codewords 980352-001 Rev.A...
  • Page 43 b Command - 2D Bar Code - PDF417 Specific Options Automatic PDF 417 The printer automatically tests and changes the PDF 417 bar code geometry to maximize the Bar Code Generation readability of the bar code for a given maximum height and width, specified by The printer tests the PDF 417 parameters in this order for a given data string (error correction...
  • Page 44 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 are engaged in a great civil war, testing whether that nation or any nation so conceived and so dedicated can long endure.
  • Page 45: C Command - Counter

    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 Serialization.
  • Page 46 C Command - Counter quential numbering. When initializing counters, they must be defined in order (e.g. C0 first, C1 second...). Field justification counter data. When L, counter field is the width of justify within the counter lected mum number of characters. See programming example 13 in Appendix H.
  • Page 47: C Command - Cut Immediate

    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 ❏The initial character ❏The Syntax: Parameters: None Example: C¿...
  • Page 48: D Command - Density

    D Command - Density Description Use this command to select the print density. Syntax Parameters 2443 (Orion) 2684 (Strata) Note 1: 0 is the lightest print and 15 is the darkest. The density command controls the amount of heat produced by the print head. More heat will produce a darker image.
  • Page 49: Dump Command - Enable Dump Mode

    Parameters None Use the “Dump Mode” character map in Appendix A of the EPL2 programmer’s manual to interpret the dump mode data (characters printed on the labels) back into ASCII data. Graphics data dump may be large and require multi- ple labels to print.
  • Page 50: Er Command - User Defined Error/Status Character

    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: Parameters: Example: For Mode 2 Error and Status Reporting: eR$,2¿...
  • Page 51: Ei Command - Print Soft Font Information

    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.
  • Page 52: Ek Command - Delete Soft Font

    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”...
  • Page 53: Es Command - Store Soft Font

    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 Parameters...
  • Page 54 ES Command - Store Soft Font “DATA “DATA Repeat for each character until the last char- acter in the set is downloaded. “DATA 3-36 : (1 ) Download Character (map position) Range: 00 to FF hex. : (1 ) Spacing To Next Print Character Downloaded character’s next printed character position in dots, i.e.
  • Page 55 ES Command - Store Soft Font For fonts with the rotation parameter set for “both” 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. 1-90°...
  • Page 56 ES Command - Store Soft Font Soft Fonts The typical soft font download command strings to the printer. The following example Programming Code was generated with the CAL3 software. Example 00000000 00000010 00000020 00000030 00000040 00000050 00000060 00000070 00000080 00000090 000000A0 000000B0 000000C0...
  • Page 57 ES Command - Store Soft Font Font Bitmap Data The black and white bitmap that represents the font must be converted into ASCII hexadecimal Format 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 and data byte.
  • Page 58: Command - Cut Position

    f Command - Cut Position Description Use this command on an individual printer to provide precision cut placement. Syntax Parameters When using the label liner cutter option, the printer will advance each printed label to the appropriate programmed offset cut position, between labels, before cutting.
  • Page 59: Fe Command - End Form Store

    FE Command - End Form Store Description This command is used to end a form store se- quence. Syntax Example: FS"FORMNAME"↵ FE↵ The form store sequence is started with the command. 980352-001 Rev.A 3-41...
  • Page 60: Fi 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 Example: FI¿ Will Produce: 3-42 :prints forms list 980352-001 Rev.A...
  • Page 61: Fk Command - Delete Form

    FK Command - Delete Form Description This command is used to delete forms from memory. Syntax Parameters “FORMNAME” “*” Example: FK"AFORM"¿ FK"AFORM"¿ FK"*"¿ 3-43 "FORMNAME" "*" = By entering the name of a form, that form will be deleted from memory.
  • Page 62: Fr Command - Retrieve Form

    FR Command - Retrieve Form Description Use this command to retrieve a form that was previously stored in memory. Syntax FR"FORMNAME" Parameters “FORMNAME” Example: FR"TEST1"¿ To print a list of the forms currently stored in memory, use the 3-44 = This is the form name used when the form was stored.
  • Page 63: Fs Command - Store Form

    FS Command - Store Form Description This command begins a form store sequence. Syntax FS"FORMNAME" Parameters “FORMNAME” Form name, AUTOFR, is reserved for automatic, single form recall, see page 3-9 for details. ❏All commands following ❏Delete a form prior to updating the form by ❏To print a list of the forms currently stored in ❏A form will not store if sufficient memory is 980352-001 Rev.A...
  • Page 64 FS Command - Store Form Example: ¿ FK"TESTFORM"¿ FS"TESTFORM"¿ V00,15,N,"Enter Product B10,20,0,3,2,10,100,B,"998152.001"¿ A50,200,0,3,1,1,N,"Example A50,400,0,3,1,1,N,"Model Name: FE¿ FI¿ 3-46 :delete form “TESTFORM” :begins the form store sequence of :the form “TESTFORM” Name:"¿ Form"¿ “V00¿ :ends form store sequence :prints list of stored forms 980352-001 Rev.A...
  • Page 65: Gg Command - Print Graphics

    GG Command - Print Graphics Description Use this command to print a PCX (format) graphic that has been previously stored in printer memory. Syntax Parameters “NAME” or Variable Data Example: GG50,50,"LOGO1"↵ FK"TESTFORM"¿ FS"TESTFORM"¿ V00,8,N,"Enter Graphic GG50,50,V00¿ FE¿ FR"TESTFORM" ?¿ LOGO1 P1¿...
  • Page 66: Gi Command - Print Graphics Information

    GI Command - Print Graphics Information Description This command will cause the printer to print a list of all graphics stored in memory. Syntax Example: GI¿ Will Produce: 3-48 :prints graphics list 980352-001 Rev.A...
  • Page 67: Gk Command - Delete Graphics

    GK Command - Delete Graphics Description Use this command to delete graphics from memory. Syntax GK {“NAME”|"*"} Parameters “NAME” “*” Example: GK"LOGO"↵ GK"LOGO"↵ GK"*"↵ 980352-001 Rev.A = By entering the name of a graphic, that graphic will be deleted from memory. ·...
  • Page 68: Gm Command - Store Graphics

    GM Command - Store Graphics Description Use this command to store PCX graphics files in memory. Syntax GM"NAME"p “DATA” Parameters “NAME” “DATA” ❏A graphic will not store if sufficient memory is ❏Verify the proper storage of the graphic with 3-50 = This is the graphic name that will be used when retrieving the stored graphic.
  • Page 69 GM Command - Store Graphics Example: GK"LOGO1"↵ GK"LOGO1"↵ GM"LOGO1"584↵ DATA If using a DOS system, the PCX format file (bi- nary data) portion can be sent to the printer us- ing the DOS COPY command. For example, if you have a PCX file named LOGO1.PCX in your current directory, the appropriate com- mand would be: COPY LOGO1.PCX PRN /b...
  • Page 70: Gw Command - Direct Graphic Write

    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 is removed or the printer is reset.
  • Page 71: I Command - Character Set Selection

    I Command - Character Set Selection Description Use this command to select the appropriate character set for printing and display (KDU). Syntax Parameters 10 DOS 866 11 DOS 737 12 DOS 851 13 DOS 869 980352-001 Rev.A = Number of data bits - for 7 bit data.
  • Page 72 002 Canada 045 Denmark 358 Finland 033 France The default setting is I8,0,001. See Appendix A for EPL2 standard font character maps. 3-54 = KDU Country Code (8 bit data only) KDU Country Code (8 bit only) 049 Germany 031 Netherl’ds 034 Spain 039 Italy 003 Latin Am.
  • Page 73: Jb Command - Disable Top Of Form Backup

    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 Example: JB¿ With the backup to the Top Of Form before printing. This pre- serves the first label which has stopped approxi- mately one-half inch from the print head.
  • Page 74: Jf Command - Enable Top Of Form Backup

    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.
  • Page 75: Le Command - Line Draw Exclusive

    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- versed to black within the line’s area (width and length).
  • Page 76: Lo Command - Line Draw Black

    LO Command - Line Draw Black Description Use this command to draw black lines, overwrit- ing previous information. Syntax Parameters Example: N↵ LO50,200,400,20↵ LO200,50,20,400↵ P1↵ Will Produce: 3-58 = Horizontal start position (X) in dots. = Vertical start position (Y) in dots. = Horizontal length in dots.
  • Page 77: Ls Command - Line Draw Diagonal

    LS Command - Line Draw Diagonal Description Use this command to draw diagonal black lines, overwriting previous information. Syntax Parameters Example: N↵ LS10,10,20,200,200↵ :draw a diagonal line P1↵ Will Produce: 980352-001 Rev.A = Horizontal start position (X) in dots. = Vertical start position (Y) in dots. = Line thickness in dots.
  • Page 78: Lw Command - Line Draw White

    LW Command - Line Draw White Description Use this command to draw white lines, effec- tively erasing previous information. Syntax Parameters Example: N↵ LO50,100,400,20↵ LO50,200,400,20↵ LO50,300,400,20↵ LW200,50,20,400↵ :draw a white line over all 3 black lines P1↵ Will Produce: 3-60 = Horizontal start position (X) in dots.
  • Page 79: M Command - Memory Allocation

    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 and graph- ics data.
  • Page 80: N Command - Clear Image Buffer

    N Command - Clear Image Buffer Description This command clears the image buffer prior to building a new label image. Syntax Do not use the Example: ¿ N¿ Always send a Line Feed (LF) prior to the mand to ensure that the printer is initialized. 3-62 command within stored forms.
  • 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 commands. Parameters set by the following commands are canceled and returned to default operation: Syntax Parameters None ❏It can not be issued inside of a form. ❏It must be issued prior to issuing a text or bar 980352-001 Rev.A ·...
  • Page 82: Ob Command - Cancel Auto Bar Code Optimization

    Reset the printer with a flash firmware printers or cycle printer power to clear the normal operation. Zebra Technologies Corporation does not warrant, support, or endorse the use of bar codes generated by the printer after a Zebra Technologies Corporation does not support this feature other than with the information supplied in this document.
  • Page 83: Oe Command - Line Mode Font Substitution

    EPL1 emulation. Syntax: ❏Parameters ❏Parameters ❏The EPL2 font sets 2 & 4 can be restored as 980352-001 Rev.A command and are intended = 5 x 7 bitmap font - Normal (CCSET4) Line Mode EPL1 Compatibility Font A0...
  • Page 84: Oh Command - Macro Pdf Offset

    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) symbols from a single Syntax...
  • Page 85 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, for the people shall not perish from the earth.
  • Page 86: Om Command - Disable Initial Esc Sequence Feed

    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 prior to printing the first label after a power-up reset.
  • Page 87: Or Command - Character Substitution (Euro)

    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 Syntax oR [p Parameters:...
  • Page 88 oR Command - Character Substitution (Euro) ❏It can not be issued inside of a form. ❏It must be issued prior to issuing a text com- ❏Effects a single character on a single code ❏Flash memory printer parameter data is pre- Example: oRE¿...
  • Page 89: Ow Command - Customize Bar Code Parameters

    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 come unreadable by some or all bar code scanners. Syntax: Parameters: ❏They can not be issued inside of a form.
  • Page 90 Codabar and Inter- leaved 2 of 5 bar code, but they have not been functionally verified for this command. Zebra Technologies Corporation does not warrant, support, or endorse the use of bar codes generated by the printer after a...
  • Page 91: O 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 Parameters 980352-001 Rev.A ], D, P, L, S] = Enable Direct Thermal Mode, use this option when using direct thermal media in a thermal transfer printer.
  • Page 92 O Command - Hardware Options Examples: 3-74 :disables all options. :enables cutter only, labels are cut after each :label is printed, disables all other options :enables direct thermal mode on thermal transfer :printers, disables all other options :disables diagnostic dump mode and disables :all other options :labels are cut after a batch of five has printed, :disables all other options...
  • Page 93: Oepl1 Command - Set Line Mode

    Syntax OEPL1 Example: OEPL1¿ Returning to The Line Mode command the printer to return the printer to Page (EPL2) Page Mode Mode operation. (27 dec or 1Bh) character and followed by a line feed Example: ¬EPL2¿...
  • Page 94: P Command - Print

    P Command - Print Description Use this command to print the contents of the image buffer. Syntax Parameters form sequence. For automatic printing of stored forms, use the Examples: P1↵ P2,1↵ P5,2↵ 3-76 = Number of label sets. Range = 1 to 65535 = Number of copies of each label (used in combination with counters to print mul- tiple copies of the same label).
  • Page 95: Pa Command - Print Automatic

    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 Parameters Example: FK"1"↵ FS"1"↵ V00,10,N,"prompt:"↵ : define variable 00 V01,1,N,"prompt:"↵ : define variable 01 V02,4,N,"prompt:"↵...
  • Page 96: Command - Set Label Width

    q Command - Set Label Width Description Use this command to set the width of the print- able area of the media. Syntax Parameters reformat and position to match the selected la- bel width Image Buffer Positioning - Center Aligned Printers Image Buffer Positioning - Left Aligned Printers...
  • Page 97 q Command - Set Label Width All Printers (Exceptions - 2746 & 2348) This command will automatically set the left margin according to the following rules: mizing the print speed (double buffering). If the command, the image buffer will be automatically re- formatted to match the width of the print head and is offset by the starting point, nullifying the...
  • Page 98: Q Command - Set Form Length

    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. culate and reformat image buffer.
  • Page 99 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:...
  • Page 100 Q Command - Set Form Length Examples: Standard Label Butterfly Label 3-82 Where: p = 20.0 mm (160 dots) p = 3.0mm (24 dots) The Q command would be: Q160,24 ↵ 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 Q Command - Set Form Length 980352-001 Rev.A Black Line On Perforation Perforation Where: p = 31.0 mm (248 dots) p = 7.0mm (56 dots) p = 0.5 mm (4 dots) The Q command would be: Q248,B56+4 ↵ Black Line Between Perforation Perforation Where: p = 31.0 mm (248 dots)
  • Page 102: Command - Set Double Buffer Mode

    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 Syntax: Parameters: mands in a form (label) program. Verify the image buffer status with the mand(s).
  • Page 103: R Command - Set Reference Point

    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 narrower than the print head. Syntax Parameters ting, as follows: Use the...
  • Page 104: S Command - Speed Select

    S Command - Speed Select Description Use this command to select the print speed. Syntax Parameters Example: S2¿ 3-86 = Speed select value. Model Value 2722 1.0 ips (25 mm/s) 2742 1.5 ips (37 mm/s) 3742 2.0 ips (50 mm/s) 1.5 ips (37 mm/s) 2824 2.0ips (50 mm/s)
  • Page 105: Td Command - Define Date Layout

    TD Command - Define Date Layout Description Use this command to define the date format when printing. Use the variable commands) Syntax Parameters = Separator character. The separator may This command only works in printers equipped with the Real Time Clock time and date option. Examples: If the current date is January 15, 2000: TDy2/me/dd↵...
  • Page 106: Ts Command - Set Real Time Clock

    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 Parameters Example: TS01,01,95,01,00,00 : sets the date to Jan. 1, 1995 TS12,31,01,15,31,00 : sets the date to Dec. 31, 2001 3-88 = Month Range:...
  • Page 107: Tt Command - Define Time Layout

    TT Command - Define Time Layout Description Use this command to define the time format when printing. Syntax Parameters = Separator character This command works only in printers equipped with the Real Time Clock time and date option. Examples: If the current time is 1:25 p.m.: TTh:m:s+↵...
  • Page 108: U Command - Print Configuration (General)

    U Command - Print Configuration (General) Description Use this command to print the current printer configuration for page mode printing. The printout is the same the Dump Mode printout initiated by the printer's AutoSense routine. The printer does not enter Dump Mode. See page 2-2 for a description of this printout.
  • Page 109: Ua Command - Enable Clear Label Counter Mode

    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 A power cycle, reset, or this setting. Normal (default) operation for the printer is to resume printing if the empty roll is replaced with new roll (or ribbon) and finish print any labels in the process of printing prior to a media out con-...
  • Page 110: Ub Command - Reset Label Counter Mode

    The page mode (EPL2) printer, by default, will resume printing if the empty roll is replaced with new roll (or ribbon) and finish a batch print job.
  • Page 111: Ue Command - External Font Information Inquiry

    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 The printer will send the number of external fonts stored and each font’s name, height and direction, to the host through the RS-232 port.
  • Page 112: Uf Command - Form Information Inquiry

    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 The printer will send the number of forms stored and each form’s name to the host through the RS-232 port.
  • Page 113: Ug Command - Graphics Information Inquiry

    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 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 Command - Host Prompts/Codepage Inquiry

    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).
  • Page 115: Um Command - Codepage & Memory Inquiry

    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: Un Command - Disable Error Reporting

    UN Command - Disable Error Reporting Description Cancels command Syntax 3-98 980352-001 Rev.A...
  • Page 117: Up Command - Codepage & Memory Inquiry/Print

    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 disabled (DTR/CTS).
  • Page 118: Uq Command - Configuration Inquiry

    UQ Command - Configuration Inquiry Description Use this command to send the printer configu- ration information back to the host via the serial port. Syntax The printer will send the printer configuration, line by line, in ASCII to the host through the RS-232 port.
  • Page 119: Us Command - Enable Error Reporting

    US Command - Enable Error Reporting Description Use this command to enable the printer’s status reporting feature. Syntax US[p The printer’s default setting is off. Parameters If no errors occur, the printer will echo ACK(0x6) after each label that is successfully printed.
  • Page 120 US Command - Enable Error Reporting Code 3-102 Error/Status Description No Error Syntax Error Object Exceeded Label Border Bar Code Data Length Error (e.g.: EAN-13 is a 12 or 13 digit only) Insufficient Memory to Store Data Memory Configuration Error RS-232 Interface Error Paper or Ribbon Empty Duplicate Name: Form, Graphic or Soft Font...
  • Page 121: Command - Define Variable

    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.
  • Page 122 V Command - Define Variable Use this command in forms that require unique data on each label. When initializing variables: To print the contents of the variable, the vari- able number is referenced in the of the mands. The field justification parameter effects the way the variable will be printed.
  • Page 123: W Command - Windows Mode

    W Command - Windows Mode Description This command is used to disable/re-enable the Windows command mode. Syntax Parameters When enabled, the printer will accept Windows mode escape sequences to print data. When disabled, escape sequences will be ignored. The Windows mode escape sequences are only used by the optional Windows printer driver.
  • Page 124: Xa Command - Autosense

    xa Command - AutoSense Description This command is used to have the printer detect the label and gap length and set the sensor lev- els. This command will not enter into the Dump mode or print the printer configuration label. Syntax xa¿...
  • Page 125: Command - Box Draw

    X Command - Box Draw Description Use this command to draw a box shape. Syntax Parameters Example: N↵ X50,200,5,400,20↵ X200,50,10,20,400↵ P1↵ Will Produce: 980352-001 Rev.A = Horizontal start position (X) in dots. = Vertical start position (Y) in dots. = Line thickness in dots. = Horizontal end position (X) in dots.
  • Page 126: Y Command - Serial Port Setup

    Y Command - Serial Port Setup Description Use this command to establish the serial port communication parameters. Syntax Parameters After receiving this command, the printer will automatically reset enabling the new rate. To send commands and data to the printer, the host’s serial port parameters must match the printer’s serial port parameters.
  • Page 127: Z Command - Print Direction

    Z Command - Print Direction Description Use this command to select the print orienta- tion. Syntax Parameters The top of the image buffer prints first and is viewed by the operator as printing up side down. Example: GG10,10,"WORLD" A10,200,0,3,1,1,N,"This Graphic Was Printed With Orientation Set To ZT"...
  • Page 128: Command - Download Variables

    ? 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.
  • Page 129: Command - Reset Printer

    ^@ Command - Reset Printer Description This command is used to reset the printer. Syntax ^@¿ This command emulates Power Off and then Power On; thus reinitializing the printer. Example: ^@¿ 980352-001 Rev.A :where ^is 94 decimal · The reset command is unavailable during the operation of storing PCX graphics, soft fonts or while the printer is in dump mode.
  • Page 130: Ee Command - Error Report - Immediate

    ^ee Command - Error Report - Immediate Description: Use this command to get printer error and status report immediately. The be sent via the RS-232 serial interface. The printer will report 4 bytes back to host in the following format: XX<CR><LF>...
  • Page 131: Appendix A - 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 dependent on the command character set (code page) selection.
  • Page 132: Default Character Map Code Page - 437

    Default Character Map Code Page - 437 See the command to for more information on selecting available code pages, page 3-53. 980352-001 Rev.A...
  • Page 133: Dump Mode Character Map

    Dump Mode The printer's Dump Mode is used to trouble- shoot programming. The printer will print all Character Map data as sent in Dump Mode Characters, shown below. „ ƒ © ¶ ¨ § § ª —  ¬  ‚...
  • Page 134 980352-001 Rev.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 printer model sup- porting the cash drawer kicker option.
  • Page 136: Cash Drawer Cable Wiring

    Cash Drawer Cable The figure below displays the pin assignments for the printer's retail cash drawer interface. Re- Wiring fer to the cash draw manufacturer's documenta- tion for proper drawer wiring. *+24 volts D.C. at no greater than 1.5 amps. RJ-11 PRINTER Pin No.
  • Page 137: Esc>P Command - Generate Pulse Cdk

    <Esc> Command - Generate Pulse CDK Description Generate a drawer kicker pulse. Syntax <Esc>pp Parameters ASCII Hex Value 1B 70 Example ←p2Bd↵ 980352-001 Rev.A = Select Drawer Drawer 1 (SDRV1) = 31 hex. Drawer 2 (SDRV2) = 32 hex. = Pulse “on” time in multiples of two milli- seconds (2 msec).
  • Page 138: Esc>U Command - Cdk Status

    <Esc> 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 980352-001 Rev.A...