EPL LineMode

105
 Zebra ® Programming for Line Mode Printing For firmware versions X.15 or later Programer's Guide

description

comandos para programación epl

Transcript of EPL LineMode

  • Part #980353-001 Rev.C 2008 ZIH Corp.

    Zebra

    Programming forLine Mode Printing

    For firmware versions X.15 or later

    Programer's Guide

  • FOREWORD

    This manual provides programming information for the Zebra Technologies printers, featuringLine Mode and the EPL2 command language, which are manufactured by Zebra TechnologiesCorporation, Camarillo, California.

    The scope of the manual is Line Mode print operations and commands. For details concerningnon line mode printing and programming, see the printer's user's manual and the Page Mode(EPL2) Programmer's manual.

    COPYRIGHT NOTICE

    This document contains information proprietary to Zebra Technologies Corporation. This docu-ment and the information contained within is copyrighted by Zebra Technologies Corporationand may not be duplicated in full or in part by any person without written approval from Zebra.While every effort has been made to keep the information contained within current and accurateas of the date of publication, no guarantee is given or implied that the document is error-free orthat it is accurate with regard to any specification. Zebra reserves the right to make changes, for thepurpose of product improvement, at any time.

    TRADEMARKS

    Zebra Technologies, EPL, EPL2, and Orion are trademarks of Zebra Technologies Corporation.All other marks are trademarks or registered trademarks of their respective holders.

    REVISION HISTORY

    Rev.A - This manual version coincides with EPL firmware version 4.06(or higher) and is availablefrom Zebra Technologies in electronic form. Line Mode firmware version tracking number is 0.12(or higher) and is a subset of the EPL firmware.

    Rev. B - See Above. Changed the R command length parameter from 99 to 25 mm max..

    Rev. C - Add the C and c Cutter commands. Updated the description of font support to includeEPL2 Page Mode fonts resident in the printer. Update codepages to reflect font changes.Added the G-Series printer support.

    See the Zebra Technologies web site at: www.zebra.com for an Adobe Acrobat file or call ZebraTechnologies customer service.

    ii 980353-001 Rev.C

  • Contents

    INTRODUCTIONFeatures . . . . . . . . . . . . . . . . . . . . . . . . 1-3Limitations . . . . . . . . . . . . . . . . . . . . . . . 1-4Configuration . . . . . . . . . . . . . . . . . . . . . 1-5

    Manually Setting Line Mode . . . . . . . . . . . . . 1-5Printer Settings . . . . . . . . . . . . . . . . . . . . . 1-6Configuration Status Printout (Dump Mode) . . . . . . 1-7Printer Defaults . . . . . . . . . . . . . . . . . . . . 1-8

    Basic PrintingExample of Default Font Character Dot Map . . . . . 2-2Printing Example . . . . . . . . . . . . . . . . . . . 2-2

    Printer Commands . . . . . . . . . . . . . . . . . . . 2-3Command Conventions . . . . . . . . . . . . . . . . 2-4Character Numbering . . . . . . . . . . . . . . . . . 2-5Basic Command Syntax . . . . . . . . . . . . . . . . 2-5Command Concatenation . . . . . . . . . . . . . . . 2-6Command Editor . . . . . . . . . . . . . . . . . . . 2-7Sending Command Programming Files to the Printer . 2-7

    Transferring files with the Firmware Downloader . . . 2-7Downloading a File in the DOS Enviroment . . . . . 2-9

    Basic Line Mode Guidelines . . . . . . . . . . . . . . 2-10

    LINE MODE COMMAND REFERENCEA . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3A0 . . . . . . . . . . . . . . . . . . . . . . . . . 3-6B . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7C . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-8c . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-9CR - Carriage Return . . . . . . . . . . . . . . . . 3-10D. . . . . . . . . . . . . . . . . . . . . . . . . . . 3-11DATA - Text for Print . . . . . . . . . . . . . . . . 3-12{DATA} . . . . . . . . . . . . . . . . . . . . . . . 3-13|DATA} . . . . . . . . . . . . . . . . . . . . . . . 3-14E . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15EPL? . . . . . . . . . . . . . . . . . . . . . . . . 3-16EPL2 . . . . . . . . . . . . . . . . . . . . . . . . 3-17FF - Form Feed . . . . . . . . . . . . . . . . . . . 3-18G . . . . . . . . . . . . . . . . . . . . . . . . . . 3-19g . . . . . . . . . . . . . . . . . . . . . . . . . . 3-20H . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21

    980353-001 Rev.C iii

  • I . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-22LF - Line Feed . . . . . . . . . . . . . . . . . . . . 3-23M . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24N . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25oR . . . . . . . . . . . . . . . . . . . . . . . . . . 3-26P . . . . . . . . . . . . . . . . . . . . . . . . . . 3-28p . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29P00 . . . . . . . . . . . . . . . . . . . . . . . . . 3-30Q? . . . . . . . . . . . . . . . . . . . . . . . . . 3-31R . . . . . . . . . . . . . . . . . . . . . . . . . . 3-32S . . . . . . . . . . . . . . . . . . . . . . . . . . 3-33U . . . . . . . . . . . . . . . . . . . . . . . . . . 3-34V . . . . . . . . . . . . . . . . . . . . . . . . . . 3-37v . . . . . . . . . . . . . . . . . . . . . . . . . . 3-38X . . . . . . . . . . . . . . . . . . . . . . . . . . 3-39x . . . . . . . . . . . . . . . . . . . . . . . . . . 3-40? . . . . . . . . . . . . . . . . . . . . . . . . . . 3-41

    Appendix A - Character ReferencesDiagnostic Dump Mode Character Map . . . . . . . A-2Character Set 0 - Line Mode Default Codepage . . . A-3Character Set a - English Codepage DOS 437 . . . . A-4Character Set b - Latin 2 Codepage DOS 852 . . . . A-5Character Set c - Portuguese Codepage DOS 860 . . A-6Character Set d - French Canadian Codepage DOS 863 A-7Character Set e - Nordic Codepage DOS 865 . . . . A-8Character Set f - Turkish Codepage DOS 857 . . . . A-9Character Set g - Icelandic Codepage DOS 861 . . . A-10Character Set h - Hebrew Codepage DOS 862 . . . A-11Character Set i - Cyrillic Codepage DOS 855 . . . . A-12Character Set j - Cyrillic CIS 1 Codepage DOS 866 . A-13Character Set k - Greek Codepage DOS 737 . . . . A-14Character Set l - Greek 1 Codepage DOS 851 . . . . A-15Character Set m - Greek 2 Codepage DOS 869 . . . A-16Character Set n - Latin 1 Codepage Windows 1252 . A-17Character Set o - Latin 2 Codepage Windows 1250 . A-18Character Set p - Cyrillic Codepage Windows 1251 . A-19Character Set q - Greek Codepage Windows 1253 . A-20Character Set r - Turkish Codepage Windows 1254 . A-21Character Set s - Hebrew Codepage Windows 1252. A-22

    iv 980353-001 Rev.C

  • Character Set 1 - British . . . . . . . . . . . . . . . A-23Character Set 2 - German . . . . . . . . . . . . . . A-24Character Set 3 - French . . . . . . . . . . . . . . . A-25Character Set 4 - Danish . . . . . . . . . . . . . . . A-26Character Set 5 - Italian . . . . . . . . . . . . . . . A-27Character Set 6 - Spanish . . . . . . . . . . . . . . A-28Character Set 7 - Swedish . . . . . . . . . . . . . . A-29Character Set 8 - Swiss. . . . . . . . . . . . . . . . A-30

    Appendix BOperating System Compatibility Features . . . . . . B-1Changing Control Function Characters . . . . . . . . B-2Resetting the Control Function Characters . . . . . . B-3Checking Control Function Code Settings . . . . . . B-3

    Appendix CEPL1 Compatibility Issues . . . . . . . . . . . . . . C-1Loading ELP1 Font Sets . . . . . . . . . . . . . . . C-2Deactivating the EPL1 Fonts . . . . . . . . . . . . . C-4EPL1 LP20XX Conversion to LN20XX Printer Models C-4Resetting LN20XX to LP20XX Printer Mode . . . . . C-4

    980353-001 Rev.C v

  • vi 980353-001 Rev.C

  • INTRODUCTION

    This section contains information about thebasic features, command syntax andterminology of the Line Mode programminglanguage.

    Line mode printing is ideal for basic retail (pointof sale - POS), shipping, inventory, work flowcontrol, and general labeling. EPL printerswith Line Mode, are versatile and are capable ofprinting a wide range media and bar codes.

    Line mode printing and programming is de-signed to support label and bar code printingwith little to no programming required.

    980353-001 Rev.C 1-1

  • The Line Mode printer can print:

    Receipts

    Labels

    Tags

    Support chemical and water proof media

    UPC (Universal Product Code) bar codes

    Postal bar codes

    Support for the common international indus-try standard bar codes

    The Line Mode printing language is designed tobe command compatible with EPL1 program-ming language used in LP2022 and LP2042printers.

    1-2 980353-001 Rev.C

  • Features Line Mode in flash based printers is similar inoperation to the early model LP Series printerwhich used the EPL1 programming language.Line mode only approximates EPL1 printeddata and commands.

    Line Mode features include:

    ASCII based command language.

    Immediate print and execution of a singleline of text or command data.

    Support for 10 standard bar codes.

    Two (2) resident fonts:Out of Box Font: 14 by 22 dots (CCSET1)and 10 by 18 dots (CCSET3) bit mappedfonts. These fonts are part of EPL1 emulationsoft font set (v,w,x,y,z) preloaded into theprinter at time of shipment.

    Base Default Font: 14 by 24 dots (Font 4)and 10 by 16 dot (Font 2) bit mapped fonts.

    Print and command buffering.

    980353-001 Rev.C 1-3

  • Limitations Line Mode has limited support for the EPL1command language set. See the CommandReference table on page 3-1 for a list of com-mands.

    G-Seriesprinters: The Line Mode printerhas compatiable EPL1 fonts preloaded intothe printer. If the EPL1 font sets are dis-abled, then the default EPL2 fonts andcharacter sets will be used. The EPL2 defaultfont sets have differences that may affectprint results of legacy EPL1 programmeddata. See Appendix C for details on font setcontrol.

    2800 series: The Line Mode printer hasEPL1 compatible soft fonts pre-loaded intothe printer. If the EPL1 soft font sets are re-moved, then the default EPL2 fonts andcharacter sets will be used. The default fontsets have differences that may affect print re-sults of legacy EPL1 programmed data. SeeAppendix C for details on font set control.

    Line Mode printing does not support blackline (or mark) sensing.

    The printer does not support all the bar codeformats supported by Page Mode (EPL2)printing.(See the Bar Code Select command (?) ).

    1-4 980353-001 Rev.C

  • Configuration Zebra EPL flash based printers are by default,configured for Page (EPL2) mode operations.The operator must convert the printer to LineMode prior to the initial use of Line Mode. Thisis done via a software programming. See theOEPL1 command in the EPL2 Page Mode pro-gramming guide and the EPL2 command in thisprogramming guide.

    Line Mode configuration settings are retained afterreset has been issued or power has been cycled.

    2800 series Only:Manually Setting

    Line Mode

    The printer utilizes the Feed button duringprinter power-up to toggle between printer per-sonality modes, Line and Page (EPL2).

    1. With printer power off, press and hold theFeed button while turning the printer on, thenrelease the button when the LED starts blinkingred.

    2. When the indicator LED starts flashing green,immediately press and hold Feed button.

    3. Release the Feed button when the LED turnsa steady Amber (orange).

    4. Verify printer personality with Dump Modeprintout:. Line Mode or Page Mode (EPL2).

    5. Press the Feed button to exit the DumpMode.

    Printing on continuous media requires program-ming. Use the N command with no parameters todisable Top of Form (label gap) sensing.

    980353-001 Rev.C 1-5

  • Printer Settings The Line Mode printer configuration and set-tings can be displayed by sending a Print Con-figuration Label (EPL?) command or bypreforming an AutoSense routine.

    The printout produced by this command in-cludes some of the following information:

    Printer Model Number Code

    Firmware Version

    Serial Port Settings

    Print Head Test Pattern

    Character Set Selection

    Speed and Density

    Label Size

    Bar Code Settings

    Basic Print Control Character Settings

    Current Media Sensor Values

    Status of Printer Specific Features andOptions:Battery Life (Portable Printers)ELP1 compatible fonts are enabled if oEv,w,x,y,z is displayed on the Option line.

    EPL2 Programming Parameters Not Used ByLine Mode

    1-6 980353-001 Rev.C

  • ConfigurationStatus Printout(Dump Mode)

    980353-001 Rev.C 1-7

  • Printer Defaults The Line mode printer defaults into the configu-ration shown below. Some settings are printerspecific, such as default print width.

    Font Characters - 14 by 24 dotsCommand Equivalent - A11 (Text 1h x 1w)(go to)

    Character Set - Code Page 850 (Multilingualcode page)Command Equivalent - I0 (go to)

    Speed - 1.5 ipsCommand Equivalent - S1 (go to)

    Left MarginCommand Equivalent - M3 (go to)

    Bar Code - I2 of 5 (Interleave 2 of 5)Command Equivalent - ?2 (go to)

    Bar Code -Narrow Bar Width is 2 DotsCommand Equivalent - X2 (go to)

    Bar Code - Narrow to Wide Bar Width Ratio is2.5Command Equivalent - x25 (go to)

    Density - Printer Dependent.See the D command. (go to)

    1-8 980353-001 Rev.C

  • Basic Printing

    Line Mode operation allows printing of simpletext (data) without using coded or programmeddata strings. The text that the user types can bedirectly output to the printer for immediateprinting. This simple text may be sent to theprinter as simple text files (generated by mostASCII editors) or from ASCII data sent by a ter-minal device or software program.

    Data is sent to and processed by the printer on aline by line basis. The printer will immediatelyprocess a terminated line of data. Line termina-tion is a line feed (LF), carriage return (CR), or acombination (CR/LF).

    Line and print heights are determined by multi-ples of the selected text character height. Barcode height is also affected by the line height.See the Bar Code Select (?) command for af-fected bar code.

    980353-001 Rev.C 2-1

  • Example of DefaultFont Character Dot

    Map

    Printing Example

    2-2 980353-001 Rev.C

    Inter-character Space (actually white dots)

    24

    Dots

    26

    Dots

    16 Dots (2mm)

    14 Dots

    Direction Of Feed

    Text

    Text

    First Line of Text at Top of FormLine Feed Only

    Line Feed Only

    Line Height Set to 2x, Single Line Feed Only

    Line Height Set to 2x, Single Line Feed Only

    Bar Code Data

    Change Line Height (2x), Print Bar Code Data

    q

    Text Printed at 2x, Line Terminated with Form Feed (FF)

  • Printer Commands The printer utilizes "Escape" sequence data tonotify the printer that the following data is acommand. Printer commands for Line Modeare used to:

    Change the line (and font) size

    Print bar codes

    Select and configure bar code parameters

    Select Character Set

    Control print margins, speed and density

    Buffer Commands and Batch Print

    980353-001 Rev.C 2-3

  • CommandConventions

    The manual uses the following typographicconventions to describe commands.

    Example Description

    or EscEscape Character,ASCII value 27d (1Bh)

    or FFForm Feed Character,ASCII value 12d (0Ch)

    or LFLine Feed Character,ASCII value 10d (0Ah)

    or CRCarriage Return Character,ASCII value 13d (0Dh)

    or CR/LF Carriage Return & Line Feed

    A

    Command - Commands aretypically a single character.Some commands contain up tofour (4) characters.

    p1p2p3Required parameters(No delimiters)

    [p1p2p3]Optional parameters(No delimiters)

    DATAText or bar code data to beprinted.

    This text shouldbe on one line

    The line-continuation character() indicates that code contin-ued from one line to the next inthe manual should be typed allon one line. Note: This is notused to program the printer.

    2-4 980353-001 Rev.C

    A p p DATA1 2

    Command

    Parameters

    Data

    Text/Bar Code SizeCommand Name

  • CharacterNumbering

    Character map positions are referred to by theASCII decimal numbers 0 - 255 and are desig-nated with a trailing d. The programmer will re-fer to these character locations usinghexadecimal numbering and are designated ashexadecimal with a h. See the character map inAppendix A for reference.

    Basic CommandSyntax

    Each command consists of an Escape (denotedas or Esc) character followed by a singleASCII character to identify the specific com-mand desired. Some commands require one ormore additional parameters to complete thecommand. Refer to Figure 1-1. for the basiccommand syntax.

    Each command line must be terminated with aLine Feed (LF) character. As an alternatemethod both the Carriage Return (CR) and Car-riage Return Line Feed (CR/LF) combinationmay be used. Most PC based systems send aCarriage Return Line Feed (CR/LF) when theEnter (Return) key is pressed.

    Default ASCII Values for the Basic Printer Control Functions

    Command FunctionPro-

    cessingOrder

    Decimal Hexadecimal

    CR Carriage Return 1 13 0D

    LF Line Feed 2 10 0A

    FF Form Feed 3 12 0C

    ESC Escape 4 27 1B

    980353-001 Rev.C 2-5

  • CommandConcatenation

    Most commands can be concatenated togetherto print several objects on the same line. Refer tofollowing for an example command concatena-tion.

    All objects on a line must be the same size(height). An exception to this is the printersability to concatenate a line command thatchanges line size after issuing one of the follow-ing commands: EscA (Text), Esc{DATA} (BarCode) and the Esc |DATA} (Bar Code with hu-man readable text). While you can concatenateother commands on the same line as the A com-mand which sets line and bar code height, youcan not mix objects of different sizes on thesame line.

    To over come this limitation, the R commandcan be used to backup the label to print addi-tional objects on what seems to be the sameline.

    2-6 980353-001 Rev.C

    ESC ESC ESC ?0 A13 {4014561780}

    Selects Bar Code 0 (Code 128)

    Selects Character Set 1, width 1, height 3

    Print Bar Code with Human Readable

    Bar Code Data

    Figure 6-1Concatenated

    Commands

  • Command Editor One method to create command files is throughan ASCII based text editor. In the DOS environ-ment, MS-DOS EDIT or BRIEF are goodchoices. In the Windows environment,TextPad for Windows is a good choice and isavailable for download of a free evaluationcopy at: www.textpad.com

    Sending CommandProgramming Files

    to the Printer

    Line Mode programming files can be sent to theprinter from within Microsoft Windows operat-ing systems by using the Zebra FirmwareDownloader (found on the user's CD or atwww.zebra.com ). This is the easiest methodthat supports all four interfaces for sending fileto your printer. The downloader can also sendfiles to multiple printers.

    This is the only method that supports USB andEthernet interfaces. The DOS file copy methodonly supports the legacy serial and parallel com-munication port interfaces.

    Transferring fileswith the Firmware

    Downloader

    1. Install the printer.

    2. Install the Zebra Firmware Downloader onyour system. Find the Firmware Downloaderby selecting start > Programs > Zebra .

    980353-001 Rev.C 2-7

  • 3. Select the Printer menu and run theAuto-Detect.

    4. Click on your Zebra printer to select theprinter for download.

    5. Select the File menu and click on the SelectFirmware File... .

    Use the Browser window to select your com-mand file for download to your printer.

    2-8 980353-001 Rev.C

  • Downloading a Filein the DOSEnviroment

    To execute the file, use the editors print com-mand or from the DOS prompt, use the COPYcommand to send the file directly to the printer.

    The DOS file copy method only supports thelegacy serial and parallel communication portinterfaces.

    An example of the use of the COPY commandis:

    COPY FILENAME.EXT LPT1orCOPY FILENAME.EXT COM1

    For more information on the use of the COPYcommand, refer to your DOS software manual.Configure the COM port to match the printersserial port setting (typically set to defaults).

    980353-001 Rev.C 2-9

  • Basic Line ModeGuidelines

    The following are basic line mode programmingand operation guidelines.

    Printing is from right to left and from top tobottom.

    Sending a simple unformatted text (ASCIIdata) to the printer followed by a carriage re-turn (CR), line feed (LF) or both (CR/LF)characters will result with printed text astyped (or stored as a file) on the media.

    A line consisting of only a carriage return(CR), line feed (LF) or both (CR/LF) charac-ters will produce a blank line.

    Once set to line mode, the printer will remainin line mode until changed by the LineMode/Page Mode (EPL2) configuration sub-routine (see page 1-5) or the EPL2 command(see page 3-17).

    Printing graphics does not effect text or barcode printing (line height) or parameters.

    The printer will accept data that exceeds theright hand margin or media edge and will betruncated. Note: Printing off the media andonto the platen may reduce the printers op-erational life span.

    2-10 980353-001 Rev.C

  • LINE MODE COMMAND REFERENCE

    This section contains a complete listing of allcommands in alphabetical order.

    980353-001 Rev.C 3-1

  • Command Description Page

    A Text/Bar Code Size 3-3

    A0 Small Text 3-6

    B Begin Command Buffer 3-7

    CR Carriage Return () 3-9

    D Density 3-11

    DATA Text Data 3-12

    {DATA} Print Bar Code with human readable 3-13

    |DATA} Print Bar Code without human readable 3-14

    E End Command Buffer 3-15

    EPL? Print Configuration Label 3-16

    EPL2 Switch To Page Mode 3-17

    FF Form Feed () 3-18

    G Draw Graphics 3-19

    g Draw Graphics 3-20

    H Graphic Line Height 3-21

    I Country Code 3-22

    LF Line Feed () 3-23

    M Left Margin 3-24

    N Form Length 3-25

    oR Enable Euro Character 3-26

    P Print 1 - 99 Labels 3-28

    p Print 1 - 999 Labels 3-29

    P00 Reprint Buffer 3-30

    Q? Auto Detect Label Parameters 3-31

    R Top Margin 3-32

    S Print Speed 3-33

    U MaxiCode - 2D Bar Code 3-34

    V Start Reverse Printing 3-37

    v Stop Reverse Printing 3-38

    X Bar Width 3-39

    x Bar Width 3-40

    ? Bar Code Select 3-41

    3-2 980353-001 Rev.C

  • A Command - Text/Bar Code Size

    Description Use this command to set character and bar codeheight, as well as, character width. This com-mand controls the default font for the printer.

    Out of Box Font: 14 by 22 dots (CCSET1)and 10 by 18 dots (CCSET3) bit mapped fonts.These fonts are part of EPL1 emulation soft fontset (v,w,x,y,z) pre-loaded into the printer at timeof shipment.

    Base Default Font: 14 by 24 dots (Font 4)and 10 by 16 dot (Font 2) bit mapped fonts.

    The base default fonts will be used if the softfonts are deleted or inactivated with EPL2 pro-gramming (in EPL2, page mode).

    See Appendix C for information on controllingline mode font sets.

    Syntax Ap1p2

    Parameters p1 = Horizontal size control and font set se-lection.Sets the width of Text character, only.Values: 1, 2, 3, 4, 5, 6, & 7Default: 1

    Model FontCharacters

    Per

    p1 (width multiplier)

    1(x1)

    2(x2)

    3(x3)

    4(x4)

    5(x1)

    6(x2)

    7(x3)

    24432844

    CCSET1& Font 4 *

    Inch (cpi) 7 3.5 2.25 1.75N/A

    Line 52 26 17 13

    CCSET3& Font 2 *

    Inch (cpi)N/A

    16.9 8.46 5.64

    Line 69 34 23

    27222824

    CCSET1& Font 4*

    Inch (cpi) 7 3.5 2.25 1.75

    Line 28 14 9 7

    CCSET3& Font 2 *

    Inch (cpi) 16.9 8.46 5.65

    Line 37 18 12

    980326-001 Rev.A 3-3

  • A Command - Text/Bar Code Size

    p2 = Vertical size (multiplier).Sets Text and Bar Code height.

    Values: 1, 2, 3, 4, 5, 6, 7 & 8Default: 1

    FontPer

    Character

    Line Height as Set by p2

    1 2 3 4 5 6 7 8

    CCSET1& Font 4*

    Dots 26 52 78 104 130 156 182 208

    Millimeters 3.25 6.5 9.75 13 16.25 19.5 22.75 26

    CCSET3

    Dots 24 48 72 96 120 144 168 192

    Millimeters 3 6 9 12 15 18 21 24

    Lines PerInch

    8.4 4.2 2.8 2.1 1.6 1.4 1.2 1

    Font 2*

    Dots 26 52 78 104 130 156 182 208

    Millimeters 3.25 6.5 9.75 13 16.25 19.5 22.75 26

    Lines PerInch

    7.8 3.9 2.6 1.9 1.5 1.3 1.1 0.97

    All text and bar codes will be printed at thesize selected by this command until a newsize is selected.

    The printer only supports a single line heightsetting per line.

    3-4 980353-001 Rev.C

  • A Command - Text/Bar Code Size

    Example: A11SIZE 11A12SIZE 12A13SIZE 13A14SIZE 14

    A21SIZE 21A22SIZE 22A23SIZE 23A24SIZE 24

    A31SIZE 31A32SIZE 32A33SIZE 33A34SIZE 34

    A41SIZE 41A42SIZE 42A43SIZE 43A44SIZE 44

    Will Produce:(Not to scale)

    980353-001 Rev.C 3-5

  • A0 Command - Small Text

    Description Use this command to set the small font charac-ter height and width. This command does notaffect bar code height.

    Out of Box Font: 5 by 7 dots (bit mappedfont) (CCSET4). This font is part of EPL1 emu-lation soft font set (w,x,y,z) pre-loaded into theprinter at time of shipment.

    Base Default Font: 8 by 12 dots (bit mappedfont) (Font 1).

    The base default fonts will be used if the softfonts are deleted or inactivated with EPL2 pro-gramming (in EPL2, page mode).

    See Appendix C for information on controllingline mode font sets.

    Base Small Font size: 8 by 12 dots (bit mappedfont). See Appendix C for alternate font sets.

    Syntax A0p1

    Parameters p1 = Sets vertical and horizontal characterheight multipliers.Sets Small Text width.

    p Width Multiplier Height Multiplier

    0 1 1

    1 1 1*

    2 1 2*

    3 1 3*

    4 2 2

    * - EPL1 fonts were bold versions for these settings

    All text will be printed at the size selected by thiscommand until a new size is selected. Bar codesize will remain unaffected by this command.

    The printer only supports a single line heightsetting per line.

    3-6 980353-001 Rev.C

  • B Command - Begin Command Buffer

    Description Use this command to batch print labels or mini-mize the affects of host system delays.

    Command buffering allows: Assembly of a series of line print commands

    (text, bar codes, etc.) for print.

    Buffered printing treats the print operation asa single print routine. and will print withoutstarting and stopping between line print oper-ations.

    Syntax B

    Parameters NoneDefault: Command Buffering Off

    Use the command with the E command, EndCommand Buffer.

    Command BufferingRules

    Do not use printer configuration and controlcommands (speed, mode changes, density,etc.) within command buffer data strings.

    Line, text and bar code control commandsare allowed within the command buffer datastrings.

    Printing with the buffer mode will automati-cally assert a form feed at the end of buffer.To disable this feature, use the N command,Form Feed control, without any parameters.

    The printer will automatically backup to topof form (label) when buffer printing a label.The R command can not be used in bufferedprint operations.

    980353-001 Rev.C 3-7

  • C Command - Cut After Last Line

    Use this command to cut the media after the lastline (printed or line feed position). The media ismoved to position the cut between the last andnext print line positions. The media is then repo-sitioned to print the next line.

    Syntax C

    Parameters None

    3-8 980353-001 Rev.C

  • c Command - Cut Immediate

    Description Use this command to cut the media immedi-ately. The printer does not move to position thecut. Use the LF and R commands to control thecut position.

    Syntax c

    Parameters None

    980353-001 Rev.C 3-9

  • CR - Carriage Return

    Description Use this command to print a line of data (textand bar codes) and move to the next line.

    This command may be used in conjunction with theLine Feed (LF) and will react as if a single Line Feed(LF) or a single Carriage Return (CR) has been is-sued.

    Syntax : ASCII value 13d (0Dh): Abbreviation = CR

    :Abbreviation = CR/LF:Treated as a single Line Feed (LF)

    Parameters None

    3-10 980353-001 Rev.C

  • D Command - Density

    Description Use this command to set print density. Thiscommand controls the amount of heat appliedto the media by the print head.

    Syntax Dp1

    Parameters p1 = Density setting - Line Mode Printingonly!

    Model Values1 Default2 EPL23

    2443 / 2844 0-7 5 0-15 10

    2722 / 2824 0-7 5 0-15 7

    LP Models(Reference Only)

    0-7 5

    Note 1: 0 is the lightest print and 7 is the darkest.Note 2: The printer saves and shares density settings betweenLine Mode and Page (EPL2) mode.Note 3: Range and default density for EPL2 (Page Mode) opera-tion is listed for reference to the AutoSense Dump Mode print-out.

    The selected density will remain in effect untilchanged or power is removed.

    The speed and density commands can dramatically af-fect print quality. Changes to the speed setting typicallyrequire a change to the print density.

    980353-001 Rev.C 3-11

  • DATA - Text for Print

    Description Data is standard ASCII text characters. Text(DATA) does not require special commands oridentifiers (i.e. Esc) to print. A simple Line Feed(LF) character, a Carriage Return (CR), a Car-riage Return and Line Feed combination(CR/LF) or FF (Form Feed) will cause theprinter to print a line of DATA (text) and ad-vance to the start of the next line (or form if aForm Feed is used to terminate a line).

    Parameters DATA = ASCII Characters

    Range: 32 to 254 decimal(20-FE Hexadecimal) andinclude 20-21 decimal(14-15 hexadecimal).

    See the Line Mode Character Map (CodePage 850) in Appendix A.

    Example: Data Entered:ABC 123 EFG : Text terminated with CR - Carriage

    : ReturnABC 123 EFG : Text terminated with LF - Line FeedABC 123 EFG : Text terminated with CR/LF

    : combination

    Will Print:

    ABC 123 EFGABC 123 EFGABC 123 EFG

    3-12 980353-001 Rev.C

  • {DATA} Command - Print Bar Code (with Human Readable)

    Description Use this command to write the bar code datafield with human readable code.

    Example: {DATA}

    Parameters DATA = bar code data to be encoded.

    Description

    {1. Starts bar code data field2. Identifies bar code to include hu-man readable text

    DATA

    1. Bar code data2. Must comply with bar code specifi-cations, i.e. type of character (num-ber only or alpha-numeric),supported characters, data field size,etc.

    }1. Terminates the data to be enteredinto the bar code.

    Example: {1234567890}

    980353-001 Rev.C 3-13

  • |DATA} Command - Print Bar Code (w/o Human Readable)

    Description Use this command to write the bar code datafield as a bar code without human readable text.

    Syntax |DATA}

    Parameters DATA = Bar code data to be encoded.

    Description

    |1. Starts bar code data field2. Identifies bar code to be withoutthe human readable text

    DATA

    1. Bar code data2. Must comply with bar code specifi-cations, i.e. type of character (num-ber only or alpha-numeric),supported characters, data field size,etc.

    }1. Terminates the data to be enteredinto the bar code.

    Example: |1234567890}

    3-14 980353-001 Rev.C

  • E Command - End Command Buffer

    Description Use this command to finish (terminate) com-mand buffering.

    Syntax E

    Parameters NoneDefault: Command Buffering Off

    Always use the E command in conjunction withthe B command, Begin Command Buffer.

    See the P and p commands to print bufferedcommands.

    980353-001 Rev.C 3-15

  • EPL? Command - Print Configuration Label

    Description This command is used to print the currentprinter configuration. This is the same DumpMode status printout that is printed by theAutoSense alignment and configuration rou-tine.

    Syntax EPL?

    3-16 980353-001 Rev.C

  • EPL2 Command - Switch To Page Mode

    Description This command is used to switch the printer fromLine Mode to Page Mode (EPL2).

    This command can not be concatenated withother commands on a single line.

    This command is not intended to be used dur-ing normal print operations.

    Syntax EPL2

    Example: EPL2 :switch to Page Mode

    The EPL2 command OEPL1 (followed by a LF, CRor CR/LF) can be sent to the printer to return theprinter to Line Mode operation.

    980353-001 Rev.C 3-17

  • FF - Form Feed

    Description Use this command to feed to the top of the nextform (label).

    When in continuous media mode, the printerwill advance the printer to the next line unlessset to a different value by the N command.

    Syntax : ASCII value 12d (0Ch): Abbreviation = FF

    Parameters None

    Default - Label (Gap Sense) Mode:Go to Top Of (Next) Form.

    By Default, Continuous Media Mode:Go to next line when a Form Feed (FF)is issued. Line height is set as per the Acommand setting.

    Continuous Media Mode with N set:Move the print position from 0 to 99mm (N00 to N99) for each Form Feed(FF) issued to the printer. See the Ncommand for details.

    3-18 980353-001 Rev.C

  • G Command - Draw Graphics

    Description Use this command to draw single line of a bitmapped graphic. The bit map data pattern canbe repeated automatically, in sequence, up toeight times. The line height is set by the H com-mand. The bit map image is assembled on a lineby line basis.

    Syntax Gp1DATA

    Parameters p1 = Number of bytes to follow.Values : 01 to 99

    DATA = Data bytes representing the bitmapped graphic. Each bit representsone dot (1=black, 0=white).

    Each additional line of graphics must start withthe G command and include the complete com-mand parameter and data str ing(Gp1DATA).

    DO NOT add carriage returns (CR) or Line Feeds(LF) or CR/LF to the end of a Draw Graphics com-mand line.Sending a CR or LF or CR/LF will advance the printposition by full text line as defined by the default orpreviously issued A command.

    980353-001 Rev.C 3-19

  • g Command - Draw Graphics

    Description Use this command to draw single line of a bitmapped graphic. The bit map data pattern canbe repeated automatically, in sequence, up toeight times. The line height is set by the H com-mand. The bit map image is assembled on a lineby line basis.

    Syntax gp1DATA

    Parameters p1 = Number of bytes to follow.Values : 001 to 199

    DATA = Data bytes representing the bitmapped graphic. Each bit representsone dot (1=black, 0=white).

    Each additional line of graphics must start withthe G command and include the complete com-mand parameter and data str ing(gp1DATA).

    DO NOT add carriage returns (CR) or Line Feeds(LF) or CR/LF to the end of a Draw Graphics com-mand line.Sending the CR or LF or CR/LF will advance theprint position by full text line as defined by the de-fault or previously issued A command.

    3-20 980353-001 Rev.C

  • H Command - Graphic Line Height

    Description Use this command to set the number of times(up to eight) that a graphic (line) of bit map datawill be repeated when printing. The G or gcommands are used to send the bit map data.

    Syntax Hp1

    Parameters p1 = Line height of graphic (bit map datapattern) measured in dots.

    Range: 1- 8 Default: 1

    (8 dots = 1mm)

    980353-001 Rev.C 3-21

  • I Command - Country Code Character Set

    Description Use this command to select the appropriatecharacter set for printing.

    Syntax Ip1

    Parameters p1 = Select 0-8 a-s Default = 0

    3-22 980353-001 Rev.C

    8 Bit Data 7 Bit Data

    p1CodePage

    Description p1 Description

    0 Default Multi-Lingual

    a DOS 437 English - US 1 British

    b DOS 852Latin 2

    (Cyrillic II/Slavic)2 German

    c DOS 860 Portuguese 3 French

    d DOS 863 French Canadian 4 Danish

    e DOS 865 Nordic 5 Italian

    f DOC 857 Turkish 6 Spanish

    g DOS 861 Icelandic 7 Swedish

    h DOS 862 Hebrew 8 Swiss

    i DOS 855 Cyrillic

    j DOS 866 Cyrillic CIS 1

    k DOS 737 Greek

    l DOS 851 Greek 1

    m DOS 869 Greek 2

    nWindows

    1252Latin 1

    oWindows

    1250Latin 2

    pWindows

    1251Cyrillic

    qWindows

    1253Greek

    rWindows

    1254Turkish

    sWindows

    1255Hebrew

    Note: Deactive EPL1 fonts to access fonts a-s, see theprocedure on page C-4.

  • LF - Line Feed

    Description Use this command to print a line of data (textand bar codes) and move to the next line.

    This command may be used in conjunction with theCarriage Return (CR) and will react as if a single LineFeed (LF) or a single Carriage Return (CR) has beenissued.

    Syntax : ASCII value 10d (0Ah): Abbreviation = LF

    : Abbreviation = CR/LF:Treated as a single Line Feed (LF)

    Parameters None

    980353-001 Rev.C 3-23

  • M Command - Left Margin

    Description Use this command to adjust the Left Margin.

    By default, the Line Mode printer's outside mar-gins are set to match the maximum printablearea for the largest typical label media sup-ported by that printer.

    Syntax Mp1

    Parameters p1 = Additional margin in millimeters.Range: 00 - 99Default: 03 (3mm)

    1 millimeter = 0.040" = 8 dots

    Do not set 2 inch printers to have mar-gin values of greater than 49mm.

    The margin command can not be applied to aline of print after print data (text, bar codes, orgraphics) has proceeded it in a line.

    The left margin parameter(M) is displayed onthe Dump Mode Printout and has a range ofM00 to M99.

    Printable Area = 1-2 mm margin on all sides.Printing outside of the "printable" area maydamage or shorten the print head's life.

    Example: M05:set a 5mm left margin

    3-24 980353-001 Rev.C

  • N Command - Form Feed Control

    Description Use this command to disable automatic formfeed (N) or set the form feed length (Nxx) whenusing continuous media.

    Syntax N[p1]

    Parameters None = Disables auto form feed in buffermode.

    p1 = Sets length of the form in millimeters.Feed a specified distance (p1) when aForm Feed (FF) is issued.

    Range: 00 - 99 (1 = 1 millimeter)

    980353-001 Rev.C 3-25

  • oR Command - Enable Euro Character

    Description This command allows the advanced program-mer to substitute the Euro currency characterfor any ASCII character in printer.

    The original character can be restored by send-ing the oR command without a parameter. Ex-ample of Euro Currency Symbol is shownbelow.

    Syntax oR[p1, p2]

    Parameters p1 = EIf the p2 parameter is not provided,then the Euro character will map tocode page position 213 decimal (D5hexadecimal) for all code pages.

    p2 = Decimal number, Range 0 to 255The active code pages ASCII charactermap position to be replaced by the Eurocharacter. The Euro character will be ac-tive in this map position for all codepages.See the I command for details on codepage selection.

    None = No Parameters (p1/p2) resets to allcode pages to original default charactermapping.

    The oR command is a global printer command.

    It must be issued prior to issuing a text com-mand (and printing).

    Effects a single character on a single codepage. Changing the character position will re-store the original character.

    The character substitution is saved likeprinter configuration parameters (Density,Serial Port Data Rate, Options, etc.). The pa-rameter data is preserved until it is changedby the oR command or reprogramming ofthe printer.

    3-26 980353-001 Rev.C

  • oR Command - Enable Euro Character

    Example: oRE : Places the Euro character into character: map position 213 decimal: (D5 hexadecimal)

    oRE,128 : Places the Euro into character map: position 128 decimal (80 hexadecimal)

    oR : Clears Character Substitution,: Restores default character maps

    980353-001 Rev.C 3-27

  • P Command - Print Buffer 1-99 times

    Description Use this command to print 1 to 99 batch formsor labels from commands and data previouslystored in the printer's command buffer.

    The printer can print one or more forms or la-bels that have been stored in the printer's com-mand buffer as a single "batch". The "batch" offorms or labels are then printed 1 to 99 times asset per p1 parameter of this command.

    Syntax Pp1

    Parameters p1 = Sets the number of batch forms or labelsto print.

    Range: 00 - 99

    The P command does not need to be termi-nated with a Line Feed (LF) character or alter-nately the Carriage Return (CR) or CarriageReturn Line Feed (CR/LF) combination. If theprint (P) command string is terminated immedi-ately following the command, the top of formwill be move down one line on the next label fol-lowing the completion of the batch print rou-tine.

    3-28 980353-001 Rev.C

  • p Command - Print Buffer 1-999 times

    Description Use this command to print 1 to 999 batch formsor labels from commands and data previouslystored in the printer's command buffer.

    The printer can print one or more forms or la-bels that have been stored in the printer's com-mand buffer as a single "batch". The "batch" offorms or labels are then printed 1 to 999 times asset per p1 parameter of this command.

    Syntax pp1

    Parameters p1 = Sets the number of batch forms or labelsto print.

    Range: 001 - 999

    The p command must be terminated with aLine Feed (LF) character. As an alternatemethod, both the Carriage Return (CR) or Car-riage Return Line Feed (CR/LF) combinationmay be used.

    Line Mode Operational Command Difference- The equivalent ELP1 p command automaticallyprints a 100 labels when the p1 parameter is set to001 through 099.

    980353-001 Rev.C 3-29

  • P00 Command - Reprint Buffer

    Description Use this command to print and repeat print abatch form or label programmed fromcommands and data previously stored in theprinter's command buffer.

    Each time the FEED button is pressed, theform (or label) stored in the image buffer willprint.

    The printer will accept no more commandsor data once this command has been issued.

    To cancel the feed to reprint the buffer, resetthe printer by cycling the printer power.

    Syntax P00

    3-30 980353-001 Rev.C

  • Q? Command - Auto Detect Label Parameters

    Description Use this command to have the printer automati-cally detect the label and gap length and set thesensor levels similar to the AutoSense routineused in Page Mode operation (EPL2).

    This command will not enter the printer into theDump mode or print the printer configurationlabel.

    Syntax Q?

    Parameters None

    980353-001 Rev.C 3-31

  • R Command - Backup

    escription Use this command to control the print position-ing. This command's positioning functions can:

    Reposition the print position back towards theTop of Form after printing a line (or lines).

    Disable the reposition to Top of Form beforeprinting (R00).

    Move the print position to the physical Top ofform. Issuing the Rnn (nn = 01 -25) com-mand in the first command line following aform feed (FF), a print buffer command (p orP), a reset condition (power-up, etc.) or as thefirst command in a group of buffered com-mands will cause the printer to reposition tothe physical Top of Form.

    Syntax Rp1

    Parameters p1 = Distance in millimeters to backup.

    Range: 01 - 25 (1 = 1 millimeter)00 = Disables automatic

    backup to top of form.

    The printer will reset to the default positionfor Top of Form after a print command (p orP) has been sent to the printer.

    The default Top of Form position (or margin)is approximately 1mm below the top edge ofthe media (label).

    The R command cannot be used inside aBuffered Label or to print a buffered label(see the B, E, P, and p commands).

    Example: R05 :moves the first print line 5mm:toward the top edge of the label

    3-32 980353-001 Rev.C

  • S Command - Speed Select

    Description Use this command to select media print speed.

    Syntax Sp1

    Parameters p1 = Speed select value.

    Model Value Speed

    2722012

    1.0 ips (25 mmps)1.5 ips (37 mmps)2.0 ips (50 mmps)

    244328442824

    0123

    1.0ips (25 mm/s)1.5 ips (37 mm/s)2.0ips (50 mm/s)2.5 ips (63 mm/s)

    The selected speed will remain in effect untilchanged or power is removed.

    The speed and density commands can dramaticallyaffect print quality. Changes to the speed setting typ-ically require a change to the print density.

    980353-001 Rev.C 3-33

  • U Command - MaxiCode - 2D Bar Code

    Description Use this command to print a MaxiCode barcode symbol. The printer will automatically in-terpret and encode data into MaxiCode sym-bols for data modes 2, 3, 4, and 6. Up to eightsymbols can be linked.

    Syntax Up1,[p2,],DATA

    Parameters p1 = Horizontal start position from the leftmargin in millimeters.

    Range = 00 to 99 (millimeters)

    Note - The vertical start position is set by lineposition.

    p2 = Mode Selection

    Value Description

    Not Used Automatic Selection Mode 2 or 3

    m2 Mode 2

    m3 Mode 3

    m4 Mode 4

    m6 Mode 6

    1. If p2 (mX) is not used, the printer will use thefollowing rules to automatically format theDATA parameter. If the postal code (thirdparameter, PC) in the DATA is:

    All numeric characters, the printer will auto-matically select Mode 2.

    Alpha only or alpha-numeric character com-binations will set the printer to Mode 3.

    Not used, the printer automatically selectsMode 3.

    3-34 980353-001 Rev.C

  • U Command - MaxiCode - 2D Bar Code

    2. If p2 value is m2 or m3, the printer will usethe following rules to format the Data param-eter:

    In Mode 2 - If a non-numeric character is en-tered in the Postal Code Data parameterfield, then the MaxiCode bar code will notprint.

    In Mode 3 If the Postal Code Data fieldexceed 6 characters, then the additional char-acters will be truncated from the bar codefield.

    Mode Data Format

    2 & 3 cl,co,pc,lpm

    4 & 6 lpm

    cl = Class Code (3 digits re-quired)co = Country Code (3 digits re-quired)

    Mode 2 = Numeric CharactersMode 3 = InternationalCharacters (up to 6 characters)

    pc = Postal CodeMode 2 = 5 or 9 characters(All Numeric, including USAPostal ZIP 5 or 9 char.)For less than 9 characters, theprinter will pad the field with 0s.Mode 3 (International)= Anyalphanumeric character(up to 6 characters)

    lpm = Low priority message (data)ASCII printable characters (upto 84 characters per symbol),any 256 character map.

    The programmer should rely on thesymbologys specification to insure format com-pliance and proper implementation. See theAIM web site for specifications at:http://www.aimi.org/

    980353-001 Rev.C 3-35

  • U Command - MaxiCode - 2D Bar Code

    Using AIM SpecifiedMaxiCode Data

    Formatting

    The line mode printer can use and automati-cally decode the AIM ITS (International Techni-cal Standards) MaxiCode data format. Theprinter detects the message/start header([)>RS), field separator (GS), and the end ofmessage marker (RS EOT) data control strings.

    The hexadecimal (ASCII) data control stringsare in the following table. See the EPL2 dumpmode character map in Appendix A.

    Control String Hexadecimal Code

    Message/Start Header

    [ ) > RS 5B 29 3E 1E

    Field Separator

    GS 1D

    End Of Message Marker

    RS EOT 1E 04

    Syntax bp1,p2[AIM MaxiCode Data]

    Example U20,m2,"001,840,93065,1692,[)>RS01GS96XXXZZFDAAFGSSHIPGS309GSGS1/1GS10GSNGSGSCAMARILLOGSCAGSRSEOT!!!!!!!!!!!!!!!!!!!!!!!"

    Notes:1) This programming example represents actual data used toformat a single AIM compliant MaxiCode symbol as pro-grammed by a major international and domestic shipping com-pany.

    2) The shipper has explicitly set the MaxiCode symbol forMode 2. This can be omitted by the programmer and the

    printer will auto-select the mode per parameter p2 rules.

    3) The shipper has used the ! character to pad the symbolsdata. A scanner reads back all the "Data" within the quotationmarks, including the ! characters following the End Of Mes-

    sage Marker (EOT).

    4) All of the data fields in the Low Priority Message are notused in the example. Some are left empty with the field delim-

    iting GS character used as a format field holder.

    3-36 980353-001 Rev.C

  • V Command - Enable Reverse Print

    Description This command is used to enable reversed(white on black) printing.

    Syntax V

    Parameters Default Condition - Disabled

    The reversed print condition will be clearedwhen:

    The line has been printed, ie a line termina-tion comand (LF, CR or CR/LF or a combina-tion there of).

    A Disable Reverse Print command (v) is sentto the printer.

    A print command (P or p) is sent to theprinter.

    The print has power cycled and returns to thedefault condition, which is disabled.

    980353-001 Rev.C 3-37

  • v Command - Disable Reverse Print

    Description Use this command to disable reversed printing.

    Syntax v

    3-38 980353-001 Rev.C

  • X Command - Bar Width

    Description Use this command to set the "X" dimension (ornarrow bar width) of a bar code.

    Syntax Xp1

    Parameters p1 = Width in dots.Each dot is 0.125mm or 0.005" wide.Values: 2, 3 or 4Default: 2 (.25mm or .010")

    The selected value will remain in effect until:

    The setting is changed,

    An error condition occurs or

    The print has power cycled and returns to thedefault setting.

    Example: X2 :sets the bar width to 10 mils.

    980353-001 Rev.C 3-39

  • x Command - Bar Width Ratio

    Description Use this command to set ratio of the narrow barwidth to the wide bar width for applicable barcode types.

    Supported bar codes that have adjustable barwith ratios are:

    Code 39

    Interleaved 2 of 5

    CodaBar

    Syntax xp1p2

    Parameters p1 = Narrow bar width in dots.Values: 2, 3 or 4Default: 2 (.250 mm or .010 inch)

    p2 = Wide bar width in dots.Values: 04 to 12Default: 05 (.625 mm or .025 inch)

    The selected value will remain in effect untilchanged, an error condition occurs, or power isremoved.

    Example: x205 :sets the narrow bar to 2, and the:wide bar to 5.

    3-40 980353-001 Rev.C

  • ? Command - Bar Code Select

    Description Use this command to select the bar code type.

    Syntax ?p1

    Parameters p1 = Bar Code type.Default = 2 (I 2 of 5).

    Value Description

    0Code 128B/CSerial Shipping Container Code

    1Code 128(Auto-selects mode A, B or C)

    2 Interleaved 2 of 5 (default)

    3 Code 39 (w/extended)

    9 Code 93

    U UPC-A and UPC-E

    E EAN8 and EAN13

    P Postnet 5, 9,11 & 13 digit

    K CodaBar

    MPlessey (MSI-1)with mod. 10 check digit

    L MSI-3 with mod. 10 check digit

    The selected Bar code will remain in effect untilchanged or power is removed.

    Example: ?2 :selects Interleaved 2 of 5 bar codes

    980353-001 Rev.C 3-41

  • 3-42 980353-001 Rev.C

  • Appendix A - Character References

    This section presents character map referencesthat are supported by Line Mode printer opera-tions. This may include character maps with ref-erences to code page number, language andcountry.

    980353-001 Rev.C A-1

  • Diagnostic Dump Mode Character Map

    A-2 980353-001 Rev.C

  • Character Set 0 - Line Mode Default Codepage

    980353-001 Rev.C A-3

  • Character Set a - English Codepage DOS 437

    A-4 980353-001 Rev.C

  • Character Set b - Latin 2 Codepage DOS 852

    980353-001 Rev.C A-5

  • Character Set c - Portuguese Codepage DOS 860

    A-6 980353-001 Rev.C

  • Character Set d - French Canadian Codepage DOS 863

    980353-001 Rev.C A-7

  • Character Set e - Nordic Codepage DOS 865

    A-8 980353-001 Rev.C

  • Character Set f - Turkish Codepage DOS 857

    980353-001 Rev.C A-9

  • Character Set g - Icelandic Codepage DOS 861

    A-10 980353-001 Rev.C

  • Character Set h - Hebrew Codepage DOS 862

    980353-001 Rev.C A-11

  • Character Set i - Cyrillic Codepage DOS 855

    A-12 980353-001 Rev.C

  • Character Set j - Cyrillic CIS 1 Codepage DOS 866

    980353-001 Rev.C A-13

  • Character Set k - Greek Codepage DOS 737

    A-14 980353-001 Rev.C

  • Character Set l - Greek 1 Codepage DOS 851

    980353-001 Rev.C A-15

  • Character Set m - Greek 2 Codepage DOS 869

    A-16 980353-001 Rev.C

  • Character Set n - Latin 1 Codepage Windows 1252

    980353-001 Rev.C A-17

  • Character Set o - Latin 2 Codepage Windows 1250

    A-18 980353-001 Rev.C

  • Character Set p - Cyrillic Codepage Windows 1251

    980353-001 Rev.C A-19

  • Character Set q - Greek Codepage Windows 1253

    A-20 980353-001 Rev.C

  • Character Set r - Turkish Codepage Windows 1254

    980353-001 Rev.C A-21

  • Character Set s - Hebrew Codepage Windows 1252

    A-22 980353-001 Rev.C

  • Character Set 1 - British

    980353-001 Rev.C A-23

  • Character Set 2 - German

    A-24 980353-001 Rev.C

  • Character Set 3 - French

    980353-001 Rev.C A-25

  • Character Set 4 - Danish

    A-26 980353-001 Rev.C

  • Character Set 5 - Italian

    980353-001 Rev.C A-27

  • Character Set 6 - Spanish

    A-28 980353-001 Rev.C

  • Character Set 7 - Swedish

    980353-001 Rev.C A-29

  • Character Set 8 - Swiss

    A-30 980353-001 Rev.C

  • Appendix B

    Operating SystemCompatibility

    Features

    Many computer operating systems have uniquecharacter values assigned to the basic printercontrol functions of escape, line feed, carriagereturn and form feed. The line mode printerprogramming allows for any one or all of thesefunctions to be reassigned as a new one or twocharacter (hexadecimal) data string.

    Default ASCII Values for the Basic Printer Control Functions

    Command FunctionPro-

    cessingOrder

    Decimal Hexadecimal

    CR Carriage Return 1 13 0D

    LF Line Feed 2 10 0A

    FF Form Feed 3 12 0C

    ESC Escape 4 27 1B

    980353-001 Rev.C B-1

  • The table below describes the unique,non-printing data characters that are used bythe line mode printer to reprogram these basicprinter control functions.

    CommandStandard Character

    NameDecimal Hexadecimal

    Start Transmission 02 02

    End Transmission 03 03

    End of Text 04 04

    Cancel 24 18

    Changing ControlFunction Characters

    Use this command string to change the basiccommand code functions.

    Syntax: p1p2

    Parameters p1 = Character to be substituted for: Escape(Esc), line feed (LF), carriage return(CR) or a form feed (FF).

    p2 = One to two character string to be substi-tuted. Each individual control charactercan be substituted with a one or twoASCII characters.

    Example: LF?-:The printer will treat a ?- asa line feed (LF) .If control function code substitution is such

    that a higher priority code is a subset ofa lower priority code, the lower prioritycode will not be executed. For instance,if the carriage return is replaced with ?and the line feed is replaced with ?- andthe user sends the line feed sequence tothe printer the ? will be interpreted as acarriage return and the will be printedas data.

    B-2 980353-001 Rev.C

  • Resetting the ControlFunction Characters

    Use this command string to reset (or return)the basic printer control function charac-ter codes to their default values.

    Syntax:

    Checking ControlFunction Code

    Settings

    The AutoSense routines Dump Mode Print-out has the decimal values for the basicprinter control function displayed nearthe bottom of the printout.

    980353-001 Rev.C B-3

  • B-4 980353-001 Rev.C

  • Appendix C

    EPL1 CompatibilityIssues

    The Line Mode printer language is designed tobe command compatible with EPL1 program-ming language. The primary difference is fontsand their related line size when comparingequivalent programming of Line Mode printingto the legacy EPL1 LP series printer (i.e.LP2022, LP2042, etc.).

    ELP1 printers had character sets for font 1(CCSET 1) of 14 by 22 dots and font 2(CCSET 4) that was 5 by 7 dots. See the A com-mand (page 3-3) for the "out of box" defaultLine Mode fonts. At any time, the EPL1 com-patible character sets can be re-installed in theprinter if they have been removed (see the nextpage for more detail).

    The Line Mode printer automatically performsthe functions of the Top-of-form (Qnnn) com-mand for labels less than 2 inches long and theExtra Feed (On) command for label taken sens-ing.

    The Line Mode printer does not support thePrint Line Command (L). Lines can be printedwith the G, g and H graphic print commands.

    980353-001 Rev.C C-1

  • Loading EPL1Font Sets

    The printer's Line Mode fonts may becomedisabled with a G-Series printer or removed ina 2800 series printer.

    Font (and other) files can be sent to the printerwith the Firmware Downloader program, see2-7 for instruction.

    The Line Mode fonts can be restored in yourprinter by the following procedure.

    1. Configure the printer for Page Mode (EPL2)operations. Send the Line Mode commandEPL2 to the printer to change to Page Mode.

    2. Send the Page Mode (EPL2) U command tothe printer. The printer will print a Dump Modestatus report. If it prints the letter U, then theprinter is still in Line Mode and steps 1 and 2need to be repeated. See the status report be-low.

    3. 2800 series printer: Download theEPL1 compatibility font file (LMFONT.BIN)using the Firmware Downloader programfound on the user's CD or at www.zebra.com.

    Use the Auto-Detect selection for USB orEthernet printer connections or Manually Add

    C-2 980353-001 Rev.C

  • Printer for serial or parallel port printer connec-tions.

    After the Downloader recognizes your printer,click on the printer. Open the File menu andchoose 'Select Firmware File'. In this case, thatf i le wi l l be the Line Mode font f i leLMFONT.BIN . Install the font file.

    3. G-Series printer: To re-activate the LineMode fonts (v,w,x,y,z), send the printer an EPLoEv, w, x, y, z command.

    4. Send the EPL2 OEPL1 (Set Line Mode)command to the printer. Send a Line ModeEPL? command to the printer to print a DumpMode printout. Verify that the printer is in LineMode and that the status line immediately be-low the Option: line has, at minimum, thefollowing: oEv, w, x, y, z

    Cycle the printer power and repeat steps 3 & 4 ifthe printer is not in Line Mode or the fonts (asrepresented by oEv, w, x, y, z ) are not activeand loaded.

    980353-001 Rev.C C-3

  • Deactivating theEPL1 Fonts

    1. Reconfigure the printer for Page (EPL2)Mode. Send a EPL2 command to the printer.

    2. Send the EPL2 U command to the printer.The printer will print a Dump Mode status re-port. If it prints a U, then the print is still in LineMode and steps 1 and 2 need to be repeated.

    3. Send the EPL2 o (Clear Special Mode Op-tions) command to the printer.

    4. Send the EPL2 OEPL1 (Set Line Mode)command to the printer. Send a Line ModeEPL? command to the printer to print a DumpMode printout. Verify that the printer is in LineMode and that the status line immediately be-low the Option: line has been cleared of thefollowing: oEv, w, x, y, z

    Typically the last two lines will read:

    Options:04 07 10