Zebra EPL2 Specifications

Browse online or download Specifications for Print & Scan Zebra EPL2. Zebra EPL2 Specifications User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 248
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews

Summary of Contents

Page 1 - Programmer’s

Manual No. 980009-001 Rev. F©1999 Zebra Technologies CorporationEPL2Programmer’sManual

Page 2 - REVISION HISTORY

formatting the appearance of the time and dateonto printed labels. See Appendix E for details.Command Functions The EPL2 printer has four (4) basic co

Page 3 - Table of Contents

Code Pages and Character Sets (8 bit)Code Page 437Size 5Code Pages and Character Sets (8 bit)Code Page 850Size 5A-6 980009-001 Rev.FAppendix A - Stand

Page 4

Code Pages and Character Sets (8 bit)Code Page 852Size 5Code Pages and Character Sets (8 bit)Code Page 860Size 5980009-001 Rev.F A-7Appendix A - Stand

Page 5 - 980009-001 Rev.F v

Code Pages and Character Sets (8 bit)Code Page 863Size 5Code Pages and Character Sets (8 bit)Code Page 865Size 5A-8 980009-001 Rev.FAppendix A - Stand

Page 6

Code Pages and Character Sets (7 bit)BritishSizes 1-4Size 5Code Pages and Character Sets (7 bit)DanishSizes 1-4Size 5980009-001 Rev.F A-9Appendix A -

Page 7 - 980009-001 Rev.F vii

Code Pages and Character Sets (7 bit)FrenchSizes 1-4Size 5Code Pages and Character Sets (7 bit)GermanSizes 1-4Size 5A-10 980009-001 Rev.FAppendix A -

Page 8

Code Pages and Character Sets (7 bit)ItalianSizes 1-4Size 5980009-001 Rev.F A-11Appendix A - Standard Character Sets

Page 9

Code Pages and Character Sets (7 bit)SpanishSizes 1-4Size 5Code Pages and Character Sets (7 bit)SwedishSizes 1-4Size 5A-12 980009-001 Rev.FAppendix A

Page 10 - 1-2 980009-001 Rev.F

Code Pages and Character Sets (7 bit)SwissSizes 1-4Size 5980009-001 Rev.F A-13Appendix A - Standard Character Sets

Page 11 - 980009-001 Rev.F 1-3

Code Pages and Character Sets (7 bit)USASizes 1-4Size 5A-14 980009-001 Rev.FAppendix A - Standard Character Sets

Page 12 - 1-4 980009-001 Rev.F

Appendix B - Optional & ExtendedCharacter SetsThis section contains information on printeroptional language character sets for EPL2 printers.Fixed

Page 13 - 980009-001 Rev.F 1-5

Printer ControlCommandsPrinter control commands set the image (label)size, position of print area, speed, density (heatsetting), control and positioni

Page 14

Fixed FirmwareOptional CharacterSet DifferencesThe EPL2 optional language character setreplace the EPL2 standard character set forcode page 850 (Latin

Page 15 - 980009-001 Rev.F 1-7

Character Maps The extended character maps can be found onthe our Internet site or from CD ROM. Click onthe code page reference (in the electronic man

Page 16 - PROGRAMMING CONSIDERATIONS

B-4 980009-001 Rev.FAppendix B - Optional & Extended Character Sets

Page 17 - WRITE TEXT

Appendix C - Asian CharacterPrinter ProgrammingThis section contains information unique to theAsian character printers.Asian Character SetsFonts8&

Page 18

Only One (1) Asian language is supported by aprinter.Each Asian language (character set) is a separateprinter firmware version.Asian printers with fla

Page 19 - 980009-001 Rev.F 1-11

A Command - ASCII TextDescription Prints a character string.Syntax Ap1,p2,p3,p4,p5,p6,p7,"DATA"Parameters p1= Horizontal start position (X)

Page 20 - 1-12 980009-001 Rev.F

A Command - ASCII Textp6= Vertical multiplier, expandsprinted text vertically. Range:1-9.p7= N for normal or R for reverse image“DATA” = Represents a

Page 21 - 980009-001 Rev.F 1-13

A Command - ASCII TextThe data field can be replaced by or combinedwith the following commands:Vnn =Prints the contents of variable “nn”atthis positio

Page 22 - 1-14 980009-001 Rev.F

A Command - ASCII TextThe following table outlines the (A) commanddata field option of printer stored or supplieddata.ModelData Parameter Option Suppo

Page 23 - 980009-001 Rev.F 1-15

A Command - ASCII TextThe English font (1-5) characters are dotmapped differently than the Asian font (8 & 9)characters. The Asian character does

Page 24

Memory Control Memory control commands provide access tovolatile (temporary) and nonvolatile(permanent) memory in the printer. Volatilememory is for s

Page 25 - 980009-001 Rev.F 1-17

A Command - ASCII TextThe Asian fonts can print character strings ori-ented from top to bottom (p3values 4-7), as wellas the standard English word ori

Page 26 - 1-18 980009-001 Rev.F

i Command - Asian Character SpacingDescription Places an adjustable inter-character space be-tween Asian font characters, fonts 8 and 9, only.Inter ch

Page 27

C-10 980009-001 Rev.FAppendix C - Asian Character Printer Programming

Page 28

Appendix D - Bar Code InformationThis section has answers to frequently askedquestions about bar coding in general.Frequently AskedQuestions AboutBar

Page 29 - 980009-001 Rev.F 1-21

❏Human Readable Information - The in-formation encoded in a bar code may be rep-resented in human-readable form below theprinted bar code symbol. This

Page 30 - 1-22 980009-001 Rev.F

Q. What are the most common bar codesin use today?A. Listed below are seven bar codes that are invery common use:The Universal Product Code (UPC)The U

Page 31 - COMMAND REFERENCE

Digit are implied), but the UCC promotesprinting all eight digits.❏Check Digit - Required (modulus 10 calcu-lation)❏Encoded Information -·Number Syste

Page 32 - 2-2 980009-001 Rev.F

and the Uniform Symbology Specifications forthis symbology were developed by AIM USA.The UCC recognizes this symbology for ship-ping container marking

Page 33

❏Allowable Sizes -·Minimum “X” Dimension: .0075 inches❏Wide to Narrow Ratio:·2:1 to 3:1 for “X” Dimension greater than.020 inches·2.2:1 to 3:1 for “X”

Page 34

Code 3 of 9 (Code 39)Code 3 of 9, or Code 39, is a symbology usedwidely in industrial applications. This symbolwas invented by Dr. David Allais and th

Page 35

Printer memory is divided into three basicgroups: SRAM for image buffer generation,nonvolatile storage memory and firmware (in-ternal printer control

Page 36

Code 128 is frequently used in industrial, retail,and shipping applications. This symbology wasinvented by Ted Williams and the Uniform Sym-bology Spe

Page 37 - B Command - Bar Code

UPC Shipping Container Symbol (SCC-14)The UPC Shipping Container Symbol, or theSCC-14, utilizes the I 2 of 5 symbology and isdesigned specifically for

Page 38

.040 inches and height equals 1.25 inches).These magnifications range from 62.5% to120%, although a size of 100% or greatershould be used when printin

Page 39

UCC/EAN-128 Serial Shipping ContainerSymbolThe SSCC-18 is a popular format of theUCC/EAN-128 specification and is meaningfulonly when used in associat

Page 40 - 2-10 980009-001 Rev.F

CodabarCodabar is a bar code symbology used often inlibraries, blood banks, and preprinted airwaybills. The Codabar specification was inventedby Monar

Page 41 - C Command - Counter

Q. What are Two Dimensional (2D) BarCodes?A. Two Dimensional bar code symbologieshave high data densities and typically includeerror correction. Typic

Page 42

Q. What is MaxiCode?MaxiCode is a two-dimensional symbology thatcan encode approximately 100 characters ofdata in a single one square inch symbol and

Page 43

b Command - 2D Bar Code - OverviewDescription This command will direct a printer equippedwith the 2D feature to print a bar code using a 2dimensional

Page 44 - D Command - Density

b Command - 2D Bar Code - MaxiCode Specific OptionsDescription Use this commmand to generate MaxiCode barcode symbols with a single command. Theprinte

Page 45 - 980009-001 Rev.F 2-15

b Command - 2D Bar Code - MaxiCode Specific Optionsp5= x,yAssociated MaxiCode symbol numberingwhere:x = Symbol Number ofy = Total Number of Associated

Page 46 - ES Command - Store Soft Fonts

FlashNonvolatile MemoryFlash SRAMStandard Maximum Standard Maximum2443 (Orion) 512 KB 1 MB 256 KB 512 KB2684 (Strata) 512 KB 1 MB 512 KB 1 MB2722 512

Page 47 - FE Command - End Form Store

b Command - 2D Bar Code - MaxiCode Specific OptionsExample:N¿b20,20,M,"300,840,93065,1692,This is MaxiCode, but not MaxiCodeformatted data"¿

Page 48 - 2-18 980009-001 Rev.F

Using AIM SpecifiedMaxiCode DataFormattingThe EPL2 printer can use and automatically de-code the AIM ITS (International Technical Stan-dards) MaxiCode

Page 49 - FK Command - Delete Form

b Command - 2D Bar Code - PDF417 Specific OptionsDescription Use this command to print PDF 417 and MacroPDF bar code symbols. The printer will auto se

Page 50 - FR Command - Retrieve Form

b Command - 2D Bar Code - PDF417 Specific OptionsThe following parameters may be omitted and de-fault values will automatically be inserted. Each pa-r

Page 51 - FS Command - Store Form

b Command - 2D Bar Code - PDF417 Specific Optionsp9(f) = Bar code origin pointValues: 0 or 1, Default is 1f1- Center of bar code as defined by theauto

Page 52

b Command - 2D Bar Code - PDF417 Specific Options"DATA" = ASCII data or Binary data bytesRepresents a fixed data field.The backslash (\) cha

Page 53 - GG Command - Print Graphics

b Command - 2D Bar Code - PDF417 Specific OptionsPDF417Symbol GeometryColumns Maximum Rows Codewords590906 90 1807 90 2708 90 3609 90 45010 90 54011 9

Page 54 - 2-24 980009-001 Rev.F

b Command - 2D Bar Code - PDF417 Specific OptionsAutomatic PDF 417Bar Code GenerationThe printer automatically tests and changes thePDF 417 bar code g

Page 55 - GK Command - Delete Graphics

b Command - 2D Bar Code - PDF417 Specific OptionsExample:N¿b80,100,P,700,600,x2,y7,l100,r100,f0,s5," \ ¿Fourscore and seven years ago our fathers

Page 56 - GM Command - Store Graphics

oH Command - Macro PDF OffsetDescription Use this command to place addition secondary,associated Macro PDF symbols for the continu-ation of data great

Page 57

Status Reporting Status reporting commands provide the userand programmer with printer operationalstatus, memory usage, and listings of forms andgraph

Page 58 - 2-28 980009-001 Rev.F

oH Command - Macro PDF OffsetExample: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

Page 59 - 980009-001 Rev.F 2-29

Appendix E - Real Time Clock OptionProgrammingThis section applies to printers with the RTC(Real Time Clock) option installed.RTC OptionConfigurations

Page 60

RTC Commands The following commands can use and controlthe RTC option features:·TS - Set Time & Date·TT - Define Time Layout as a command orInsert

Page 61 - LO Command - Line Draw Black

A Command - ASCII Text with RTCThe “Data” field can be replaced by or com-bined with the following variables:TT = Prints the current time at this posi

Page 62 - 2-32 980009-001 Rev.F

B Command - Bar Code with RTCThe data field can be replaced by or combinedwith the following commands:Vnn = Prints the contents of variable “nn”atthis

Page 63 - LW Command - Line Draw White

TD Command - Define Date LayoutDescription Use this command to define the date formatwhen printing.Use the variable TD in a Text or Bar Code (A &

Page 64 - M Command - Memory Allocation

TS Command - Set Real Time ClockDescription Use this command to set the time and date inprinters equipped with the Real Time Clock op-tion.Syntax TSp1

Page 65

TT Command - Define Time LayoutDescription Use this command to define the time formatwhen printing.Syntax TTp1[|p2|p3][+]Parameters P1, P2, P3= h, m,

Page 66

E-8 980009-001 Rev.FAppendix E - Real Time Clock Option Programming

Page 67

Appendix F - Cutter Option ProgrammingThis section applies to printers with the Cutteroption installed.980009-001 Rev.F F-1Appendix F - Cutter Option

Page 68 - Syntax N

CommandConventionsThe manual uses the following typographicconventions to describe commands.Example DescriptionA Commands (Case Sensitive)p1,p2,p3Requ

Page 69

Cutter OptionConfigurationsSupport for the Cutter option varies fromprinter model to model. Model variations are,as follows:❏Desktop printersMost desk

Page 70

C Command - Cut ImmediateDescription: This command allows the advanced program-mer to initiate an immediate media cut withouta form print operation. T

Page 71 - 980009-001 Rev.F 2-41

f Command - Cut PositionDescription Use this command on an individual printer toprovide precision cut placement.·Compensate sensor to cutter position

Page 72 - P Command - Print

OC Command - Cutter Option SelectDescription This sub-command is used to enable the cutteroption feature when installed. Thissub-command set of the O

Page 73 - PA Command - Print Automatic

OC Command - Cutter Option SelectExamples: O :disables all options.OC :enables cutter only, labels are cut after each:label is printed, disables all o

Page 74 - Q Command - Set Form Length

Appendix G - Advanced ProgrammingThis section applies to commands and proce-dures that use atypical media, various printeroptions and unique operating

Page 75

AUTOFR - Automatic Form Printing FeatureDescription: This special form process allows you to detachthe printer from the computer and print in astandal

Page 76 - Butterfly Label

AUTOFR - Automatic Form Printing FeatureAUTOFR treats any incoming data as a variable in-tended for printing. This means if you send theprinter a memo

Page 77 - Black Line On Perforation

A Command – Simple Expresssions in Data FieldsDescription: The advanced function of the A command al-lows addition and subtraction to be performedon c

Page 78 - Center Alignment

A Command – Simple Expresssions in Data FieldsExample:¿FK"1"¿FK"1"¿FS"1"¿V00,10,N,"Enter current mileage"¿A100

Page 79

Basic CommandSyntaxEach command consists of one or two ASCII(case sensitive) alpha characters to identify thespecific command desired. Some commandsre

Page 80

dump Command - Enable Dump ModeDescription: This command allows the advanced program-mer to force a user diagnostic “data dump”mode. Sending the dump

Page 81 - Direction

eR Command - User Defined Error/Status CharacterDescription: This command allows the advanced program-mer to specify the printer's error/status r

Page 82 - S Command - Speed Select

O Command - Options SelectDescription Use this command to select various printer op-tions. Options available vary by printer model.SyntaxO[C[p1], D, d

Page 83 - 980009-001 Rev.F 2-53

o Command - Cancel Customized SettingsDescription: This command allows the user to cancel allprinter customization parameters set by o seriescommands.

Page 84

oB Command - Cancel Auto Bar Code OptimizationDescription: This command allows the advanced program-mer to disable bar code optimization for rotated(9

Page 85

oR Command - Character Substitution (Euro)Description: This command allows the advanced program-mer to substitute the Euro currency character forany A

Page 86 - V Command - Define Variable

oR Command - Character Substitution (Euro)The oR command is a global printer command.❏It can not be issued inside of a form.❏It must be issued prior t

Page 87

oW Command - Customize Bar Code ParametersDescription: This command allows the advanced program-mer to modify specific bar code parameters toexceed th

Page 88

oW Command - Customize Bar Code ParametersReset the printer with a ^@ or o commandswith flash firmware printers or cycle printerpower to clear the oW

Page 89 - X Command - Box Draw

p Command - Reset Top of Form SensingDescription: This command allows the advanced program-mer to reset the default parameters for top ofform sensing.

Page 90 - Y Command - Serial Port Setup

Command Editor One method to create command files is throughan ASCII based text editor. In the DOSenvironment, MS-DOS EDIT or BRIEF aregood choices. T

Page 91

r Command - Buffer ModeDescription: Use this command to disable or reenable thedouble buffer image (label) printing. The dou-ble buffer feature is a a

Page 92 - Z Command - Print Direction

U Commands - Advanced Status CommandsDescription These commands allow the advanced program-mer to request and control specific printer statuscondition

Page 93 - 980009-001 Rev.F 2-63

UA Command - Enable Clear Label Counter ModeDescription Use this command to clear the label counter if apaper empty occurs. The EPL2 printer, by de-fa

Page 94

UB Command - Reset Label Counter ModeDescription Use this command to clear the UA commandand restore the default setting to allow theprinter to resume

Page 95 - 980009-001 Rev.F A-1

UE Command - External Font Information InquiryDescription This command will cause the printer to send in-formation about external fonts currently stor

Page 96

UF Command - Form Information InquiryDescription This command will cause the printer to send in-formation about forms currently stored in theprinter b

Page 97 - 980009-001 Rev.F A-3

UG Command - Graphics Information InquiryDescription This command will cause the printer to send in-formation about graphics currently stored in thepr

Page 98 - A-4 980009-001 Rev.F

UI Command - Host Prompts/Codepage InquiryDescription This command will cause the printer to enableprompts to be sent to the host and it will sendthe

Page 99 - 980009-001 Rev.F A-5

UM Command - Codepage & Memory InquiryDescriptionThis command will cause the printer to send tothe host of the currently selected codepageand memo

Page 100 - A-6 980009-001 Rev.F

UN Command - Disable Error ReportingDescription Cancels US commandSyntaxUN980009-001 Rev.F G-25Appendix G - Advanced Programming

Page 101 - 980009-001 Rev.F A-7

Printer MemoryOrganizationThe EPL2 printers feature nonvolatile memoryfor storage of label forms, graphics and softfonts. This memory can be located i

Page 102 - A-8 980009-001 Rev.F

UP Command - Codepage & Memory Inquiry/PrintDescriptionThis command will cause the printer to printand send the currently selected codepage andmem

Page 103 - 980009-001 Rev.F A-9

UQ Command - Configuration InquiryDescription Use this command to send the printer configu-ration information back to the host via the serialport.Synt

Page 104 - A-10 980009-001 Rev.F

US Command - Enable Error ReportingDescription Use this command to enable the printer’s statusreporting feature.·Serial Port - If an error occurs, the

Page 105 - Sizes 1-4

US Command - Enable Error ReportingCode Error/Status Description00 No Error01 Syntax Error02 Object Exceeded Label Border03Bar Code Data Length Error(

Page 106 - A-12 980009-001 Rev.F

W Command - Windows ModeDescription This command is used to disable/re-enable theWindows command mode.SyntaxWp1Parameters p1= Windows Mode Enabled.Val

Page 107

xa Command - AutoSenseDescription This command is used to have the printer detectthe label and gap length and set the sensor lev-els. This command wil

Page 108

^ee Command - Error Report - ImmediateDescription: Use this command to get printer error and statusreport immediately. The ^ee command mustbe sent via

Page 109 - Character Sets

^@ Command - Reset PrinterDescription This command is used to reset the printer.Syntax^@¿ :where ^is 94 decimalThis command emulates Power Off and the

Page 110

Soft Fonts Overview Soft fonts allow the programmer and user tohave a wide variety of font and small graphic re-call. Some of the advantages and disad

Page 111 - 980009-001 Rev.E

EK Command - Delete Soft FontDescription This command is used to delete soft fonts frommemory.Soft fonts can be downloaded to and deleted fromthe prin

Page 112 - B-4 980009-001 Rev.F

FOREWORDThis manual provides programming information for the Eltron brand printers, featuring Zebra’sEltron Programming Language (EPL2) command langua

Page 113 - Printer Programming

Soft Fonts Soft Font data is stored in nonvolatile memory.Up to 52 soft fonts, can be loaded into printermemory (and recalled as A-Z, a-z; see Section

Page 114

ES Command - Store Soft FontDescription This command is used to download and storesoft fonts in memory.Soft fonts can be downloaded to and deleted fro

Page 115 - A Command - ASCII Text

ES Command - Store Soft Fonta1:(1st) Download Character (map position)Range: 00 to FF hex.b1:(1st) Spacing To Next Print CharacterDownloaded character

Page 116

ES Command - Store Soft FontFor fonts with the rotation parameter setfor “both” (p2= 02 hex.):Repeat the individual font character downloadfor each 90

Page 117

ES Command - Store Soft FontSoft FontsProgramming CodeExampleThe typical soft font download commandstrings to the printer. The following examplewas ge

Page 118

ES Command - Store Soft FontFont Bitmap DataFormatThe black and white bitmap that represents thefont must be converted into ASCII hexadecimalcode. The

Page 119

Appendix H - Programming ExamplesThis section has examples that outline the basicsteps needed to program various form/label ele-ments. The examples co

Page 120

Example 1 - Text andLine GraphicsThis label has basic text and line graphics.Example 1:¿OD¿N¿D7¿S2¿ZT¿Q609,24¿q784¿X30,30,20,750,400¿A60,100,0,2,3,3,N

Page 121 - 1 Character 1 Character

ProgrammingBreakdown:ProgrammingDescription¿OD¿N¿Initialize printerSet option for direct thermal printingClear the image bufferSet Printer Control Par

Page 122 - C-10 980009-001 Rev.F

Example 2 - Text andLine GraphicInteractionsThis label demonstrates text and line graphic in-teraction. The print mode has been reset to thedefault “t

Page 123 - 980009-001 Rev.F D-1

ProgrammingBreakdown:Programming Description¿O¿N¿Initialize PrinterResets print method to thermal transferClear the image bufferSet Printer Control Pa

Page 124 - D-2 980009-001 Rev.F

Image BufferAddressingThe printer allocates image buffer memory us-ing the stored values for length and width. Thedefault length of the image buffer i

Page 125 - 980009-001 Rev.F D-3

Example3-BarCode VariablesThis label demonstrates bar code implementa-tions using Code 39 (with automatic extendedcharacter set).Example 3:¿OD¿N¿D7¿S2

Page 126 - 980009-001 Rev.F

ProgrammingDescription:Programming Description¿OD¿N¿Initialize printerSet direct thermal modeClear the image bufferSet Printer Control Parameters and

Page 127 - 980009-001 Rev.F D-5

Example4-BarCode and LineGraphics InteractionThis label demonstrates bar code and linegraphic interaction.Example 4:¿O¿N¿D5¿S1¿Q609,24¿q784¿LO50,20,50

Page 128

ProgrammingBreakdown:Programming Description¿O¿N¿Initialize printerReset printer defaults - set thermal transfer modeClear the image bufferSet Printer

Page 129 - 980009-001 Rev.F D-7

Example 5 -Sequencing GraphicElementsThe order that graphic elements get placed inthe image (buffer) effect the print results.·Standard black graphics

Page 130 - D-8 980009-001 Rev.F

Using the LE line element for creating Reversed Textis the most versatile and recommend) method ofgenerating this type of text.ProgrammingBreakdown:Pr

Page 131 - 980009-001 Rev.F D-9

Example 6 - Stepsfor Downloading aPCX GraphicUse the following steps for downloading a PCXgraphic file to a printer with a flash (nonvolatile)memory c

Page 132 - D-10 980009-001 Rev.F

Step 3 Generate an program (ASCII text) file for eachPCX graphic file to be downloaded.Example:GK"WORLD"¿GM"WORLD"4398¿Save the fi

Page 133 - 980009-001 Rev.F D-11

Example 7 - PrintingA PCX GraphicThis example demonstrates printing a label witha graphic, immediately, by importing apreloaded PCX graphic from memor

Page 134 - D-12 980009-001 Rev.F

ProgrammingBreakdown:Programming Description¿OD¿N¿Initialize the printerSet direct thermal modeClear the image bufferSet Printer Control Parameters an

Page 135 - 980009-001 Rev.F D-13

Sample FormatThe minimum non printing margin on all edgesof the label is 1mm. Printing closer than 1mm tothe top or bottom edge of the label may cause

Page 136 - D-14 980009-001 Rev.F

Example 8 - PrintingImmediately: PuttingIt All TogetherThis example demonstrates printing a completelabel with text, bar code, and graphic elements.Th

Page 137 - 980009-001 Rev.F D-15

ProgrammingBreakdown:Programming Description¿OD¿N¿Initialize printerSet direct thermal modeClear the image bufferSet Printer Control Parameters and Op

Page 138

Example 9 -Creating A FormThis example demonstrates form creation anddownloading to printer’s nonvolatile memory.The form has simple text, bar code, a

Page 139 - 980009-001 Rev.F D-17

ProgrammingBreakdown:Programming DescriptionFK”EXAM-09”¿FS”EXAM-09”¿Queue form to save to memory.Start form store sequence.Set Printer Control Paramet

Page 140 - Will Produce:

Example 10 - Stepsfor Downloading aFormUse the following steps for downloading a Formfile to printer memory with DOS operating sys-tem commands. This

Page 141

Example 11 -Creating a Formwith Basic VariablesThis example demonstrates variable data fields.The variable data fields must be loaded imme-diately fol

Page 142

Programming DescriptionFK”EXAM-11”¿FS”EXAM-11”¿Queue form to save to printer memory.Start form store sequence.Set Variables (00-99)V00,15,C,”Enter com

Page 143 - 980009-001 Rev.F D-21

Example 12 -Printing Forms withVariablesThis example demonstrates access and controlof individual forms by programming. The ?(Download Variables) comm

Page 144 - D-22 980009-001 Rev.F

ProgrammingBreakdown:Programming Description¿Initialize printerOD¿Set direct thermal print modeDo not place an O command inside forms.FR”EXAM-11”¿Reca

Page 145 - 980009-001 Rev.F D-23

Example 13 -Variable JustificationThis example demonstrates the variable datajustification setting (p2=L,R,C and N)forprinting of the data field (p3=

Page 146 - Symbol Geometry

A small amount of SRAM memory is used to op-erate and temporarily store variables (counters,text variables, control parameters, etc.) neededto print.

Page 147 - 980009-001 Rev.F D-25

Will Produce:H-26 980009-001 Rev.FAppendix H - Programming Examples

Page 148

Example 14 -Creating a Form withBasic CountersThis example demonstrates counter data fields.The counter data fields must be loaded immedi-ately follow

Page 149 - 980009-001 Rev.F D-27

Will Produce:H-28 980009-001 Rev.FAppendix H - Programming Examples

Page 150

ProgrammingBreakdown:Programming DescriptionFK”EXAM-14”¿FS”EXAM-14”¿Queue form to save to printer memory.Start form store sequence.Set Counters (0-9)C

Page 151 - Programming

Example 15 -Numeric Countingand PrintingThis example demonstrates variation of count-ing with the printer counter variables. The ex-amples show number

Page 152

Will Produce:980009-001 Rev.F H-31Appendix H - Programming ExamplesStart Label Group#1Start Label Group#2

Page 153 - 980009-001 Rev.F E-3

Example 16 -Counter JustificationThis example demonstrates the counter justifi-cation setting (p2=L,R,C and N) for printingof the counter data field (

Page 154 - B Command - Bar Code with RTC

02¿03¿04¿05¿06¿07¿08¿P1,1¿Will Produce:980009-001 Rev.F H-33Appendix H - Programming Examples

Page 155 - 980009-001 Rev.F E-5

Example 17 -Printing with Forms:Putting It AllTogetherThis example demonstrates creating and recall-ing for use, a form and printing a complete labels

Page 156 - : and the time to 3:31 p.m

Will Produce:980009-001 Rev.F H-35Appendix H - Programming ExamplesPCX graphic rotated byexternal graphics editingsoftware and downloadedas WORLDRText

Page 157 - 980009-001 Rev.F E-7

Double Buffering EPL2 printers with firmware version 3.0 andhigher (except TLP2046) support double buff-ering of print images to increase through-put.

Page 158 - E-8 980009-001 Rev.F

Example 18 - Using aKDU TerminalThe Keyboard Display Unit (KDU) is a terminalunit that interfaces with a printer in astand-alone capacity.The KDU has

Page 159 - 980009-001 Rev.F F-1

Enter the form name using the keys on the key-board. Upper and lower case letters must matchexactly as the form name was saved. If a scan-ner is conne

Page 160 - F-2 980009-001 Rev.F

Multiple Labels - If multiple labels are de-sired, enter the new quantity and press ENTERto print labels.Exit a Form - Press EXIT at any time to retur

Page 161 - C Command - Cut Immediate

Protecting Data If the label form has been designed to “hide” avariable prompt, i.e., Store No., that data willbe protected and this prompt will appea

Page 162

H-40 980009-001 Rev.FAppendix H - Programming Examples

Page 163 - 980009-001 Rev.E F-5

Appendix J - Interface ConnectionThis section has the interface connection dia-grams for Serial and Parallel ports for EPL2printers.980009-001 Rev.F J

Page 164

Serial InterfaceCable ConnectionsJ-2 980009-001 Rev.FAppendix J - Interface ConnectionN/CRxDTxDDTRGNDDSRRTSRICTSPrinterHost112233445566778899DB-9Pin #

Page 165 - 980009-001 Rev.F G-1

P2242 SerialInterface CableConnections980009-001 Rev.F J-3Appendix J - Interface ConnectionN/CRxDTxDDTRGNDDSRRTSRICTSPrinterHost115263243546789DB-9Pin

Page 166

Parallel InterfaceCable ConnectionsThe +5 volt at pin 18 of the printer's parallel portprovides power to Eltron PrintServers; a 10base-TEthernet

Page 167 - 980009-001 Rev.F G-3

The q value affects the available print width. Mini-mizing the q value will maximize the print length andprint speed (double buffering).Use the approp

Page 168 - G-4 980009-001 Rev.F

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

Page 169

The reference point of the first character in a textstring is not affected by the font size multiplier values.980009-001 Rev.F 1-19PROGRAMMING CONSIDE

Page 170

Bar Codes All bar codes supported by the EPL2 languagehave associated industry specifications that theprogrammer should be aware of and adhere to.The

Page 171 - 980009-001 Rev.F G-7

ProgrammingSequences AffectGraphic ResultsGraphic elements can interact and the resultantimage can be affected by other commands.Structure command seq

Page 172 - O Command - Options Select

Table of ContentsPROGRAMMING CONSIDERATIONS ...1-1Features ...1-1Command Functions ...1-2Image Control Command

Page 173 - 980009-001 Rev.F G-9

Determining PrinterFirmware VersionThe printer version numbers are a code used todocument product function and the featuresupport level of the printer

Page 174

COMMAND REFERENCEThis section contains a complete listing ofprinter commands in alphabetical order and de-scribes the basic commands.980009-001 Rev.F

Page 175 - 980009-001 Rev.F G-11

EPL2 Command Set The command language controls most printerfunctions. Printer model differences have re-quired minor functional differences to individ

Page 176

CommandDescriptionALLSpecificNotSupportedPageoH Macro PDF Offset ✔ D-27oM Disable Initial Esc Sequence Feed ✔ 2-41oW Customize Bar Code Parameters ✔ G

Page 177 - 980009-001 Rev.F G-13

A Command - ASCII TextDescription Prints an ASCII text stringSyntax Ap1,p2,p3,p4,p5,p6,p7,"DATA"Parameters p1= Horizontal start position (X)

Page 178

A Command - ASCII TextThe backslash (\) character designates thefollowing character is a literal and will encodeinto the data field. Refer to the foll

Page 179 - 980009-001 Rev.F G-15

A Command - ASCII TextThe data field can be replaced by or combinedwith the following commands:Vnn= Prints the contents of variable “nn”atthis positio

Page 180

B Command - Bar CodeDescription Use this command to print standard bar codes.Syntax Bp1,p2,p3,p4,p5,p6,p7,p8,"DATA"Parameters p1= Horizontal

Page 181

B Command - Bar Code2-8 980009-001 Rev.FCOMMAND REFERENCEDescriptionP4ValueP5ValueCode 39 std. or extended3 1-10Code 39 with check digit3C 1-10Code 93

Page 182

B Command - Bar CodeExample:¿N¿B10,10,0,3,3,7,200,B,"998152-001"¿P1¿Will Produce:The data field can be replaced by or combinedwith the follo

Page 183 - 980009-001 Rev.F G-19

GI Command - Print Graphics Information ...2-24GK Command - Delete Graphics ...2-25GM Command - Store Graphics...2-26I Command - Char

Page 184

b Command - 2D Bar CodeDescription Print 2D Bar Code - This command will direct aprinter equipped with the 2D bar code featureto print a two (2) dimen

Page 185 - 980009-001 Rev.F G-21

C Command - CounterDescription The command defines one of 10 automaticcounters used in consecutive numberingapplications (i.e. serial numbers).For Num

Page 186

C Command - CounterThe C command is used in forms that require se-quential numbering. When initializing counters,they must be defined in order (e.g. C

Page 187 - 980009-001 Rev.F G-23

C Command - CounterSaving andProtectingConsecutiveNumbers inNonvolatile MemoryThis feature is useful when the counter field rep-resents a serial numbe

Page 188

D Command - DensityDescription Use this command to select the print density.Syntax Dp1Parameters p1= Density setting. Acceptable values are:Model Acce

Page 189 - 980009-001 Rev.F G-25

EI Command - Print Soft Font InformationDescription This command will cause the printer to print alist of all soft fonts that are stored in memory.Syn

Page 190

EK Command - Delete Soft FontSee Appendix GES Command - Store Soft FontsSee Appendix G2-16 980009-001 Rev.FCOMMAND REFERENCE

Page 191 - 980009-001 Rev.F G-27

FE Command - End Form StoreDescription This command is used to end a form store se-quence.Syntax FEExample:FS"FORMNAME"↵...FE↵The form store

Page 192 - Error codes on following page

FI Command - Print Form InformationDescription This command will cause the printer to print alist of all forms stored in memory.Syntax FIExample:FI↵ :

Page 193 - 980009-001 Rev.F G-29

FK Command - Delete FormDescription This command is used to delete forms frommemory.Syntax FK {“FORMNAME”|"*"}Parameters “FORMNAME” = By ent

Page 194 - W Command - Windows Mode

French ...A-10German ...A-10Italian ...A-11Spanish ...A-

Page 195 - 980009-001 Rev.F G-31

FR Command - Retrieve FormDescription Use this command to retrieve a form that waspreviously stored in memory.Syntax FR"FORMNAME"Parameters

Page 196 - G-32 980009-001 Rev.F

FS Command - Store FormDescription This command begins a form store sequence.Syntax FS"FORMNAME"Parameters “FORMNAME” =This is the form name

Page 197 - ^@ Command - Reset Printer

FS Command - Store FormExample:¿FK"TESTFORM"¿ :delete form “TESTFORM”FS"TESTFORM"¿ :begins the form store sequence of:the form “TE

Page 198

GG Command - Print GraphicsDescription Use this command to print a PCX (format)graphic that has been previously stored inprinter memory.Syntax GGp1,p2

Page 199 - EK Command - Delete Soft Font

GI Command - Print Graphics InformationDescription This command will cause the printer to print alist of all graphics stored in memory.Syntax GIExampl

Page 200 - ES Command - Store Soft Font

GK Command - Delete GraphicsDescription Use this command to delete graphics frommemory.Syntax GK {“NAME”|"*"}Parameters “NAME” = By entering

Page 201

GM Command - Store GraphicsDescription Use this command to store PCX graphics files inmemory.SyntaxGM"NAME"p1¿“DATA”Parameters “NAME” = This

Page 202

GM Command - Store GraphicsExample: First, create a text file “STOREIT.TXT” with anASCII text editor, as follows:¿GK“WORLD”¿GM"WORLD"2004¿Wh

Page 203

I Command - Character Set SelectionDescription Use this command to select the appropriatecharacter set for printing and display (KDU).Syntax Ip1,p2,p3

Page 204

JB Command - Disable Top Of Form BackupDescription This command disables the Top Of FormBackup feature when printing multiple labels.At power up, Top

Page 205 - 980009-001 Rev.F H-1

Appendix F - Cutter Option Programming ...F-1Cutter Option Configurations ...F-2Cutter Models ...F-2C Command - Cu

Page 206

LE Command - Line Draw ExclusiveDescription Use this command to draw lines with an “Exclu-sive OR” function. Any area, line, image or fieldthat this l

Page 207 - Breakdown:

LO Command - Line Draw BlackDescription Use this command to draw black lines, overwrit-ing previous information.Syntax LOp1,p2,p3,p4Parameters p1= Hor

Page 208

LS Command - Line Draw DiagonalDescription Use this command to draw diagonal black lines,overwriting previous information.Syntax LSp1,p2,p3,p4,p5Param

Page 209

LW Command - Line Draw WhiteDescription Use this command to draw white lines, effec-tively erasing previous information.SyntaxLWp1,p2,p3,p4Parameters

Page 210

M Command - Memory AllocationDescription Use this command to reformat (clear) the nonvola-tile memory used to store forms, graphics and softfonts.The

Page 211 - Description:

M Command - Memory AllocationSee Programming Considerations starting atpage 1-11 “Printer Memory Organization” formore information on printer memory.S

Page 212

M Command - Memory AllocationSee Programming Considerations starting atpage 1-11 “Printer Memory Organization” formore information on printer memory.F

Page 213

M Command - Memory AllocationAvailable memory and the current allocation of mem-ory can be displayed with the U command or anAutoSense procedure, see

Page 214

N Command - Clear Image BufferDescription This command clears the image buffer prior tobuilding a new label image.Syntax NDo not use the N command wit

Page 215

O Command - Options SelectDescription Use this command to select various printer op-tions. Options available vary by printer model.SyntaxO[C[p1], D, P

Page 216 - Record file size as: 1837

Appendix H - Programming Examples ...H-1Example 1 - Text and Line Graphics...H-2Example 2 - Text and Line Graphic Interactions ...H-4Exam

Page 217 - STOREIT1.TXT

O Command - Options SelectOptions Command AvailabilityModels \ OptionsCDdPL SLP2122LP2142LP2242 ✔✔LP2622 ✔✔LP2642 ✔✔LP2722 ✔✔ ✔LP2742 ✔✔ ✔LP3742 ✔✔ ✔L

Page 218

oM Command - Disable Initial Esc Sequence FeedDescription: This command disables the automatic label cal-ibration routine executed by the printer upon

Page 219

P Command - PrintDescription Use this command to print the contents of theimage buffer.SyntaxPp1, [p2]Parameters p1= Number of label sets.Range=1to655

Page 220

PA Command - Print AutomaticDescription Use this command in a stored form sequence toautomatically print the form (as soon as all vari-able data has b

Page 221

Q Command - Set Form LengthDescription Use this command to set the form and gap lengthor black line thickness when using the transmissive(gap) sensor,

Page 222

Q Command - Set Form LengthAutoSense routine does not detect black line orcontinuous media.All EPL2 printers have a transmissive (gap) sen-sor designe

Page 223

Q Command - Set Form LengthExamples:2-46 980009-001 Rev.FCOMMAND REFERENCEp1p2p3p2Standard LabelButterfly LabelWhere:p = 20.0 mm (160 dots)p = 3.0mm (

Page 224 - H-20 980009-001 Rev.F

Q Command - Set Form Length980009-001 Rev.F 2-47COMMAND REFERENCEp2p3Black Line Between PerforationWhere:p = 31.0 mm (248 dots)p = 7.0mm (56 dots)p =

Page 225 - 980009-001 Rev.F H-21

q Command - Set Label WidthDescription Use this command to set the width of the print-able area of the media.Syntaxqp1Parameters p1= The width of the

Page 226

q Command - Set Label WidthAll Printers(Exceptions - 2746, 2348, 2344, 2046 & P2222)This command will automatically set the left marginaccording t

Page 228

R Command - Set Reference PointDescription Use this command to move the reference pointfor the X and Y axes. All horizontal and verticalmeasurements i

Page 229 - 980009-001 Rev.F H-25

R Command - Set Reference PointExample ofX and Y PositioningExample ofLeft Aligned PrintingExample:↵Q609,24↵ : Sets label lengthZB↵ : Sets imagebuffer

Page 230

S Command - Speed SelectDescription Use this command to select the print speed.SyntaxSp1Parameters p1= Speed select value.Model Value Speed21222142262

Page 231 - 980009-001 Rev.F H-27

U Command - Print Configuration (General)Description Use this command to print the current printerconfiguration.SyntaxUThe one page printout produced

Page 232

U Command - Print Configuration (General)Explanation Of Printout - SRAM PrintersNote: TLP2046 printers - The serial port and double buffer sta-tus are

Page 233

U Command - Print Configuration (General)Explanation Of Printout - Flash Printers980009-001 Rev.F 2-55COMMAND REFERENCE4M03351F 16 V3.18Serial port:96

Page 234

V Command - Define VariableDescription Use this command to define variable data forthe text and bar code data fields in stored forms.Variable data can

Page 235

V Command - Define VariableUse this command in forms that require uniquedata on each label. When initializing variables:·They must be defined in order

Page 236

V Command - Define VariableKDU Support: The following table outlines the V command’svariable data field option and printer supportfor the storage of d

Page 237

X Command - Box DrawDescription Use this command to draw a box shape.Syntax Xp1,p2,p3,p4,p5Parametersp1= Horizontal start position (X) in dots.p2= Ver

Page 238

PROGRAMMING CONSIDERATIONSThis section contains information about the ba-sic features, command syntax and terminologyof the Eltron Programming Languag

Page 239

Y Command - Serial Port SetupDescription Use this command to establish the serial portcommunication parameters.SyntaxYp1,p2,p3,p4Parameters p1= Baud r

Page 240 - H-36 980009-001 Rev.F

Y Command - Serial Port SetupPrinter Serial PortData Transfer RangesModelTransfer RateMaximum Minimum262219,200baud1,200 baud2642 (2242)364220462443 (

Page 241 - 980009-001 Rev.F H-37

Z Command - Print DirectionDescription Use this command to select the print orienta-tion.SyntaxZp1Parameters p1= Print orientation.T = Printing from t

Page 242 - H-38 980009-001 Rev.F

? Command - Download VariablesDescription This command signals the printer to “fill-in”variable or counter “prompt” data field.The host system can sen

Page 243 - 980009-001 Rev.F H-39

2-64 980009-001 Rev.FCOMMAND REFERENCE

Page 244 - H-40 980009-001 Rev.F

Appendix A - Standard Character SetsThis section contains a listing of all standardEPL2 fonts, code pages & character sets sup-ported by the EPL2

Page 245 - 980009-001 Rev.F J-1

Fonts 1-5ASCII toHexadecimalReference TableA-2 980009-001 Rev.FAppendix A - Standard Character Sets0123456789ABCDEF0123456789ABCDEFHexidecimal - Most

Page 246 - PrinterHost

Code Pages and Character Sets (8 bit)Code Page 437Sizes 1-4Code Page 850Sizes 1-4980009-001 Rev.F A-3Appendix A - Standard Character Sets

Page 247

Code Pages and Character Sets (8 bit)Code Page 852Sizes 1-4Code Page 860Sizes 1-4A-4 980009-001 Rev.FAppendix A - Standard Character Sets

Page 248 - FemaleDB-25toMaleCentronics

Code Pages and Character Sets (8 bit)Code Page 863Sizes 1-4Code Page 865Sizes 1-4980009-001 Rev.F A-5Appendix A - Standard Character Sets

Comments to this Manuals

No comments