Zebra EPL2 Dokumentacja

Przeglądaj online lub pobierz Dokumentacja dla Drukuj i skanuj Zebra EPL2. Zebra EPL2 Specifications Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 138
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów

Podsumowanie treści

Strona 1 - Programmer’s

Manual No. 980352-001 Rev. A©2001 Zebra Technologies CorporationEPL2Programmer’sManualProgramming for Page ModePrinting

Strona 2 - REVISION HISTORY

Placing Elements inthe Print ImageImage elements are located in the image printbuffer on a X-Y grid expressed in dots. The Xvalue represents the width

Strona 3 - Table of Contents

Q Command - Set Form LengthExamples:3-82980352-001 Rev.Ap1p2p3p2Standard LabelButterfly LabelWhere:p = 20.0 mm (160 dots)p = 3.0mm (24 dots)The Q comm

Strona 4

Q Command - Set Form Length980352-001 Rev.A3-83p2p3Black Line Between PerforationWhere:p = 31.0 mm (248 dots)p = 7.0mm (56 dots)p = 17 mm (136 dots)Th

Strona 5

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

Strona 6

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

Strona 7 - Introduction

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

Strona 8 - Conventions

TD Command - Define Date LayoutDescription Use this command to define the date formatwhen printing.UsethevariableTDinaText orBarCode(A&Bcommands)

Strona 9 - WRITE TEXT

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

Strona 10 - 980352-001 Rev.A

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

Strona 11

U Command - Print Configuration (General)Description Use this command to print the current printerconfiguration for page mode printing. Theprintout is

Strona 12 - 2times 2times

UA Command - Enable Clear Label Counter ModeDescription This command sets the printer to clear (empty)the print buffer if a media out condition is de-

Strona 13 - Orientation

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

Strona 14

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

Strona 15 - Printer Configuration

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

Strona 16 - Dump Mode Print Sample

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

Strona 17

UG Command - Graphics Information InquiryDescription This command will cause the printer to send in-formationaboutgraphicscurrentlystoredintheprinter

Strona 18

UI Command - Host Prompts/Codepage InquiryDescription This command will cause the printer to enablepromptstobesenttothehostanditwillsendthecurrentlyse

Strona 19 - Command Reference

UM Command - Codepage & Memory InquiryDescriptionThiscommandwillcausetheprintertosend tothe host of the currently selected codepageand memory stat

Strona 20

UN Command - Disable Error ReportingDescription Cancels US commandSyntaxUN3-98980352-001 Rev.A

Strona 21

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

Strona 22 - A Command - ASCII Text

UQ Command - Configuration InquiryDescription Use this command to send the printer configu-rationinformationbacktothehost viatheserialport.Syntax UQTh

Strona 23

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

Strona 24

Thetextis placedintotheimagebuffer.Seethefollowing example.The reference point of the first character in a textstringisnotaffectedbythefontsizemultipl

Strona 25 - A Command - ASCII TEXT

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

Strona 26

V Command - Define VariableDescription Use this command to define variable data forthetextandbarcodedatafieldsinstoredforms.Variable data can be combi

Strona 27

V Command - Define VariableUse this command in forms that require uniquedataoneachlabel.Wheninitializingvariables:·They must be defined in order (e.g.

Strona 28

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

Strona 29 - B Command - Bar Code

xa Command - AutoSenseDescription Thiscommandisusedtohavetheprinterdetectthe label and gap length and set the sensor lev-els.This commandwillnotenter

Strona 30

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=Verti

Strona 31

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

Strona 32

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

Strona 33

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

Strona 34

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

Strona 35

Bar Codes All bar codes supported by the EPL2 languagehave associated industry specifications that theprogrammershould be awareof andadhere to.The pro

Strona 36 - Will Produce:

^ee Command - Error Report - ImmediateDescription: Usethiscommandtogetprintererrorandstatusreport immediately. The ^ee command mustbe sent via the RS-

Strona 37

Appendix A - Character ReferencesThis section has character references.Resident Fonts 1-5 PageModesupports5differentfontsizes,num-bered 1-5. Each font

Strona 38

Default Character MapCode Page - 437See the I command to for more information onselecting available code pages, page 3-53.A-2980352-001 Rev.A

Strona 39

Dump ModeCharacter MapThe printer's Dump Mode is used to trouble-shoot programming. The printer will print alldata as sent in Dump Mode Character

Strona 40

A-4980352-001 Rev.A

Strona 41

Appendix B - Cash Drawer Kicker OptionThis section has hardware and programmingfor the Cash Drawer Kicker.Introduction The cash drawer kicker is a fac

Strona 42 - Symbol Geometry

Cash Drawer CableWiringThe figure below displays the pin assignmentsfortheprinter'sretailcashdrawerinterface. Re-fertothecashdrawmanufacturer&apo

Strona 43

<Esc>p Command - Generate Pulse CDKDescription Generate a drawer kicker pulse.Syntax <Esc>pp1p2p3Parameters p1=Select DrawerDrawer 1 (SDRV

Strona 44

<Esc>u Command - CDK StatusDescription Report the cash drawer kicker’s status.Syntax <Esc>uParameters NoneStatus00 hex. = Cash Drawer Open

Strona 45 - C Command - Counter

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

Strona 46

Printer ConfigurationThis section covers the interpret your printer'sconfiguration setup and setting basic modes.Printer AutoSenseFeatureUse the

Strona 47 - C Command - Cut Immediate

Explanation of the Status PrintoutDetermining PrinterFirmware VersionThe printer version numbers are a code used todocument product function and the f

Strona 48 - D Command - Density

Programming ModeConfigurationFlash based printers are, by default, configuredfor Page (EPL2) mode operations. The opera-tor must convert the printer t

Strona 49

Media Detection Media detection in EPL2 printers is a combina-tionofprogrammingandprintermediasensing.TheQ (Set FormLength) andO (Option) com-mands pr

Strona 50

Command ReferenceThis section contains a complete listing of allcommands in alphabetical order.980352-001 Rev.A3-1

Strona 51 - EI¿ :prints soft font list

FOREWORDThis manual provides programming information for printers featuring Zebra’s EPL2 Pro-gramming and command language, which are manufactured by

Strona 52 - EK Command - Delete Soft Font

3-2980352-001 Rev.ACommand Description PageA ASCII Text 3-4AUTOFR Automatic Form Printing 3-9B Bar Code 3-11bMaxiCode 3-16PDF417 3-20C Counter 3-27C C

Strona 53 - ES Command - Store Soft Font

980352-001 Rev.A3-3Command Description PageQSet Form LengthTransmissive (Gap) Sensor3-80Black Line SensorContinuous Stockq Set Form Width 3-78r Set Do

Strona 54

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

Strona 55

A Command - ASCII TextThe backslash (\) character designates the fol-lowing character is a literal and will encode intothedatafield.Refertothefollowin

Strona 56

A Command - ASCII TextVariable Data andCounter FunctionsThe “Data” field can be replaced by or com-bined with the following commands:Vnn= Prints the c

Strona 57

A Command - ASCII TEXTSimple Expressionsin Data FieldsAnadvanced function ofthe Acommand allowsaddition and subtraction to be performed onconstant an

Strona 58 - cut position

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

Strona 59 - FE Command - End Form Store

AUTOFR Command - Automatic Form PrintingDescription This special form process allows you to detachthe printer from the computer and print in astandalo

Strona 60 - Syntax FI

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

Strona 61 - FK Command - Delete Form

B Command - Bar CodeDescription Usethiscommandtoprintstandardbarcodes.Syntax Bp1,p2,p3,p4,p5,p6,p7,p8,"DATA"Parameters p1=Horizontal start p

Strona 62 - FR Command - Retrieve Form

Table of ContentsIntroduction . . . . . . . . . . . . . . . . . . . . . . 1-1Command Conventions . . . . . . . . . . .

Strona 63 - FS Command - Store Form

B Command - Bar Code3-12980352-001 Rev.ADescriptionP4ValueP5ValueCode 39 std. or extended3 1-10Code 39 with check digit3C 1-10Code 939 1-10Code 128 UC

Strona 64

B Command - Bar CodeExample:¿N¿B10,10,0,3,3,7,200,B,"998152-001"¿P1¿Will Produce:Bar Codes withVariables & CountersThe data field can be

Strona 65 - GG Command - Print Graphics

B Command - Bar CodeData with the RTCTime & DateFunctionsThe “Data” field can be replaced by or com-bined with the following variables:TT = Prints

Strona 66 - Syntax GI

B Command - Bar CodeCode 128 Bar CodeFunction Characters(continued)A single FCN4 toggles between standard andextended ASCII mode for only a single fol

Strona 67 - GK Command - Delete Graphics

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

Strona 68 - GM Command - Store Graphics

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

Strona 69 - COPY LOGO1.PCX PRN /b

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

Strona 70

Using AIM SpecifiedMaxiCode DataFormattingThe EPL printer can use and automatically de-codetheAIMITS(InternationalTechnicalStan-dards) MaxiCode data f

Strona 71

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

Strona 72

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

Strona 73

I Command - Character Set Selection . . . . . . . . . . . . . 3-53JB Command - Disable Top Of Form Backup . . . . . . . . . . 3-5

Strona 74

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

Strona 75

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

Strona 76 - LO Command - Line Draw Black

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

Strona 77 - P1↵ :print one label

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

Strona 78 - LW Command - Line Draw White

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

Strona 79 - M Command - Memory Allocation

C Command - CounterDescription The counter (C) command defines one of 10automatic counters used in consecutive num-bering applications (i.e. serial nu

Strona 80 - Syntax N

C Command - CounterTheCcommandisusedinformsthatrequirese-quentialnumbering.Wheninitializingcounters,they must be defined in order (e.g. C0 first, C1se

Strona 81

C Command - Cut ImmediateDescription: This command allows the printer to initiate animmediatemediacutwithoutaformprintoper-ation. The printer must hav

Strona 82

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

Strona 83

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

Strona 84

xa Command - AutoSense . . . . . . . . . . . . . . . . . 3-106X Command - Box Draw . . . . . . . . . . . . . . . . .

Strona 85

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

Strona 86

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

Strona 87

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

Strona 88

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

Strona 89

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

Strona 90

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

Strona 91 - O Command - Hardware Options

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

Strona 92

ES Command - Store Soft FontFont Bitmap DataFormatThe black and white bitmap that represents thefontmustbe convertedintoASCII hexadecimalcode. The 0°

Strona 93 - OEPL1 Command - Set Line Mode

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

Strona 94 - P Command - Print

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

Strona 96 - Center Alignment

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

Strona 97

FK Command - Delete FormDescription This command is used to delete forms frommemory.Syntax FK [ "FORMNAME" | "*" ]Parameters “FORM

Strona 98 - Q Command - Set Form Length

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

Strona 99

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

Strona 100 - Butterfly Label

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

Strona 101 - Black Line On Perforation

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

Strona 102

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

Strona 103

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

Strona 104 - S Command - Speed Select

GM Command - Store GraphicsDescription UsethiscommandtostorePCXgraphicsfilesinmemory.SyntaxGM"NAME"p1¿“DATA”Parameters “NAME” = This is the

Strona 105

GM Command - Store GraphicsExample: GK"LOGO1"↵ :deletes graphic “LOGO1” - RequiredGK"LOGO1"↵ :second delete graphic - RequiredGM&q

Strona 106 - : and the time to 3:31 p.m

IntroductionThis section contains information about the ba-sic features, command syntax and terminologyoftheEPL2ProgrammingLanguageforZebra'sdesk

Strona 107

GW Command - Direct Graphic WriteDescription Use this command to load binary graphic datadirectly into the Image Buffer memory for im-mediate printing

Strona 108

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

Strona 109

I Command - Character Set Selectionp3=KDU Country Code (8 bit data only)KDU Country Code (8 bit only)032Belgium049Germany027S. Africa002Canada031Nethe

Strona 110

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

Strona 111

JF Command - Enable Top Of Form BackupDescription This command enables the Top Of FormBackup feature and presents the last label of abatch print opera

Strona 112

LE Command - Line Draw ExclusiveDescription Usethiscommandtodrawlineswithan“Exclu-siveOR”function.Anyarea,line,imageorfieldthat this line intersects o

Strona 113

LO Command - Line Draw BlackDescription Usethiscommandtodrawblacklines,overwrit-ing previous information.Syntax LOp1,p2,p3,p4Parameters p1=Horizontal

Strona 114

LS Command - Line Draw DiagonalDescription Usethiscommandtodrawdiagonalblacklines,overwriting previous information.Syntax LSp1,p2,p3,p4,p5Parameters p

Strona 115

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

Strona 116

M Command - Memory AllocationDescription Thiscommandnolongerchangesmemoryallo-cation. It was originally used for SRAM andearly model flash printers. T

Strona 117

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

Strona 118

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

Strona 119

o Command - Cancel Software OptionsDescription This command allows the user to cancel mostprintercustomizationparameterssetbyoseriescommands.Parameter

Strona 120

oB Command - Cancel Auto Bar Code OptimizationDescription: This command allows the advanced program-mertodisablebarcode optimizationforrotated(90° &am

Strona 121 - V Command - Define Variable

oE Command - Line Mode Font SubstitutionDescription: This command is a Page Mode (EPL2) com-mand that allows the printer to set alternateLine Mode fon

Strona 122

oH Command - Macro PDF OffsetDescription Usethiscommandtoplaceadditionsecondary,associatedMacroPDFsymbolsforthe continu-ation of data greater than a s

Strona 123 - W Command - Windows Mode

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

Strona 124

oM Command - Disable Initial Esc Sequence FeedDescription Thiscommanddisablesthe automatic labelcal-ibration routine executed by the printer uponrecei

Strona 125 - X Command - Box Draw

oR Command - Character Substitution (Euro)Description This command allows the advanced program-mer to substitute the Euro currency characterfor any AS

Strona 126 - Y Command - Serial Port Setup

oR Command - Character Substitution (Euro)TheoRcommandisaglobalprintercommand.❏It can not be issued inside of a form.❏It must be issued prior to issui

Strona 127 - Z Command - Print Direction

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

Strona 128

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

Strona 129 - ^@ Command - Reset Printer

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

Strona 130

O Command - Hardware OptionsDescription Use this command to select various printer op-tions. Options available vary by printerconfiguration.SyntaxO[C[

Strona 131

O Command - Hardware OptionsExamples: O :disables all options.OC :enables cutter only, labels are cut after each:label is printed, disables all other

Strona 132 - Code Page - 437

OEPL1 Command - Set Line ModeDescription: This command is used to switch the printer op-erating mode from Page Mode (EPL2) to LineMode (EPL1 emulation

Strona 133

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

Strona 134

PA Command - Print AutomaticDescription Usethis command inastored formsequencetoautomaticallyprint theform (assoon asall vari-able data has been suppl

Strona 135

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 l

Strona 136 - Male RJ-11

q Command - Set Label WidthAll Printers(Exceptions - 2746 & 2348)This command will automatically set the left marginaccording to the following rul

Strona 137

Q Command - Set Form LengthDescription Use this command to set the form and gap lengthor black line thicknesswhen usingthe transmissive(gap) sensor, b

Strona 138

Q Command - Set Form LengthAutoSense routine does not detect black lineor continuous media.AllEPL2printershaveatransmissive(gap)sen-sor designed to de

Komentarze do niniejszej Instrukcji

Brak uwag