PROGRAMMING GUIDECustomer Order # 46530LManufacturer Part # 46530LB' Zebra Technologies CorporationZebra HouseThe Valley Centre, Gordon RoadHigh
Scope of This ManualThis manual is a guide to the functions and features of theZebra Programming Language II (ZPL II). This manual is effectivefor the
Example 2:You may prefer to write your ZPL II scripts in any way that makessense to you. Some programmers prefer to write out each formatinstruction a
Font ShortcutsThere are times when you might include a specific font into yourscript and use it repeatedly within different fields. The following is a
If you wanted to change the font type or size within the script, how-ever, you would need to include the specific font parameters withinthe field wher
94 CHAPTER 5ZPL II Advanced Techniques
IntroductionThe ZPL II Command Reference, a comprehensive guide to ZPL IIcommands, lists all commands in alphabetical order. This listingincludes the
Scalable/Bitmapped FontThe ^A (Scalable/Bitmapped Font) instruction is used with the built-in fonts or TrueTypefonts. Scalable fonts (also known as sm
The format for the ^A instruction is^Af,o,h,wwhere^A = Scalable/Bitmapped Fontf = Desired FontDefault value: Ø (CG Triumvirate Bold Condensed)Other va
Use Font Name to Call FontThe ^A@ (Use Font Name to Call Font) instruction uses the completename of a font, rather than a character designation, to ca
The format for the ^A@ instruction is:^A@o,h,w,nWhere^A@ = Use Font Name to Call Font(Where @ triggers the search for font name listed byparameter n)o
Code 11 Bar CodeThe ^B1 (Code 11) bar code instruction is also known as USD-8 code.In a Code 11 bar code, each character is composed of three bars and
NOTE: ZPL II scripts are not 100% compatible with standardZPL scripts.In reality, the differences between ZPL II and Standard ZPL scripts isminor. Mos
The format for the ^B1 instruction is:^B1o,e,h,f,gwhere^B1 = Code 11 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Interleaved 2 of 5 Bar CodeThe ^B2 (Interleaved 2 of 5) bar code instruction is a high density,self-checking, continuous, numeric symbology.Each data
The format for the ^B2 instruction is:^B2o,h,f,g,ewhere^B2=Interleaved 2 of 5 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N
Code 39 Bar CodeThe ^B3 (Code 39) bar code instruction is the standard for manyindustries, including adoption by the U.S. Department of Defense(DOD) a
The format for the ^B3 instruction is:^B3o,e,h,f,gwhere^B3 = Code 39 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Full ASCII Mode for Code 39Code 39 can generate the full 128 ASCII character set using pairedcharacters as shown in tables (A) and (B) below.106 ZPL I
ZPL II COMMAND REFERENCE 107COMMANDREFERENCEASCII Code 39@%VAABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYYZZ[%K\%L]%M%N_%O(B) Code 39 Full ASCII M
Code 49 Bar CodeThe ^B4 (Code 49) bar code is a multi-row, continuous variablelength symbology capable of encoding the full 128 ASCII characterset. It
The format for the ^B4 instruction is:^B4o,h,f,mwhere^B4 = Code 49 Bar Codeo = OrientationDefault value: Current ^FW value(^FW defaults to N = Normal
Field DataSetUnshiftedCharacter SetShift 1Character SetShift 2Character Set00’1 1 ESC ;2 2 FS <3 3 GS =4 4 RS >5 5 US ?66!@77“[88#\99&]A A S
Printer Configuration Label is shown below with an arrowpointing to the firmware information.Working with ExamplesExamples are used throughout this gu
Code 49 Field Data Character SetThe ^FD data sent to the printer when using Starting Modes 0 thru 5is based on the Code 49 Internal Character Set. Thi
PDF417 Bar CodeThe ^B7 (PDF417) bar code instruction is a two-dimensional multi-row, continuous, stacked symbology. This bar code is capable ofencodin
The format for the ^B7 instruction is:^B7o,h,s,c,r,twhere^B7 = PDF417 Bar Codeo = OrientationDefault value: Current ^FW value(^FW defaults to N = Norm
r = Number of Rows to EncodeUser can specify number of symbol rows giving controlover the height of the symbol.Default value: 1:2 row/column aspect ra
Special considerations for the ^BY instructionwhen using PDF417.The parameters for the ^BYw,r,h instruction when used with a ^B7PDF417 code are as fol
EAN-8 Bar CodeThe ^B8 (EAN-8) bar code instruction is the shortened version of theEAN-13 bar code. See EAN-13 (page 138) for more informationabout EAN
The format for the ^B8 instruction is:^B8o,h,f,gwhere^B8 = EAN-8 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR = R
UPC-E Bar CodeThe ^B9 (UPC-E) bar code instruction is a variation of the UPC sym-bology used for number system 0. UPC is an acronym for Univer-sal Pro
The format for the ^B9 instruction is:^B9o,h,f,g,ewhere^B9 = UPC-E Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR =
Code 93 Bar CodeThe ^BA (Code 93) bar code instruction is a variable length, continu-ous symbology. It is used in many of the same applications as the
Before working with the examples, be sure the supplies (ribbon andmedia) have been loaded and that the printer has been properlyadjusted for the media
The format for the ^BA instruction is:^BAo,h,f,g,ewhere^BA = Code 93 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Full ASCII Mode for Code 93Code 93 can generate the full 128 ASCII character set using pairedcharacters as shown in tables (A) and (B) below.122 ZPL I
ZPL II COMMAND REFERENCE 123COMMANDREFERENCEASCII Code 93‘‘Wa)Ab)Bc)Cd)De)Ef)Fg)Gh)Hi)Ij)Jk)Kl)Lm)Mn)Mo)Op)Pq)Qr)Rs)St)Tu)Uv)Vw)Wx)Xy)Yz)Z{‘P|‘Q}‘R~‘S
CODABLOCK Bar CodeThe ^BB (CODABLOCK) bar code is a two-dimensional multi-row,stacked symbology. It is ideally suited to applications where largeamoun
The format for the ^BB instruction is:^BBo,h,s,c,r,mwhere^BB = CODABLOCK Bar Codeo = Field PositionDefault value: N = NormalOther values:N = NormalR =
r = Number of Rows to Encode(User can specify the number of symbol rows givingcontrol over the height of the symbol.Range: CODABLOCK A: 1 to 22CODABLO
w = Module width. (Default = 2) Max. is 10. (CODABLOCK Aonly)r = Ratio (Default = 3) Fixed. Has no effect on CODABLOCK Eor F.h = Height of bars. CODAB
Code 128 Bar Code(Subsets A, B, and C)The ^BC (Code 128) bar code instruction is a high density, variablelength, continuous alphanumeric symbology. It
The format for the ^BC instruction is:^BCo,h,f,g,e,mwhere^BC = Code 128 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = Norm
Effective for Version 16.3.0Other value: A = Automatic ModeThe Automatic Mode analyzes the data sent andautomatically determines the best packingmetho
ZPL II is Zebra Technologies Corporation’s registered trademark forits Zebra Programming Language II. ZPL II instructions sent to aZebra printer give
Special Conditions if UCC Case Mode is Selected1. Excess digits (above 19) in ^FD or ^SN will be eliminated.2. Below 19 digits in ^FD or ^SN adds zero
Example of Code 128 - Subset BSince Code 128 subset ‘B’ is the most commonly used subset, ZPL IIdefaults to subset ‘B’ if no start character is specif
Code 128 - subset B is programmed directly as ASCII text, except forvalues greater than 94 decimal and a few special characters:^>~These characters
UPS MaxiCode Bar CodeThe ^BD (UPS MaxiCode) instruction creates a two-dimensional, op-tically read (not scanned) code. This symbology was developed by
The format for the ^BD instruction is:^BDm,n,twhere^BD = MaxiCode Bar Codem = ModeDefault value:2 Structured Carrier Message - Numeric PostalCode (US)
The format for the ^FD instruction is:^FD<hpm><lpm>where^FD = Field Data<hpm> = High Priority Message(only applicable in Modes 2 and
Address Validation Gs<validation>Ship to Street Address Gs<street address>Ship to City Gs<city>Ship to State Gs<state>Rs RsEnd
EAN-13 Bar CodeThe ^BE (EAN-13) bar code instruction is similar to the UPC-A barcode. It is widely used throughout Europe and Japan in the retail mar-
The format for the ^BE instruction is:^BEo,h,f,gwhere^BE = EAN-13 Bar Codeo = OrientationDefault value: N=Normal or current ^FWOther values:N = Normal
Micro-PDF417 Bar CodeThe ^BF (Micro-PDF417) is a two-dimensional multi-row, continu-ous, stacked symbology identical to PDF417 except that it replaces
ZPL II is both powerful and flexible, providing all of the followingfeatures:Compatibility with PCs, minicomputers, mainframe computersand networks.Se
The format for the ^BF instruction is:^BFo,h,mwhere^BF = Micro-PDF Bar Codeo = OrientationDefault value: N or last ^FW value.Other values:N = NormalR
Industrial 2 of 5 Bar Code^BI (Industrial 2 of 5) bar code instruction is a discrete, self-checkingcontinuous numeric symbology. Industrial 2 of 5 Bar
The format for the ^BI instruction is:^BIo,h,f,gwhere^BI = Industrial 2 of 5 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N =
Standard 2 of 5 Bar CodeThe ^BJ (Standard 2 of 5) bar code instruction is a discrete, self-checking continuous numeric symbology.In Standard 2 of 5, a
The format for the ^BJ instruction is:^BJo,h,f,gwhere^BJ = Standard 2 of 5 Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = N
ANSI Codabar Bar CodeThe ^BK (ANSI Codabar) bar code instruction is currently used in avariety of information processing applications such as librarie
The format for the ^BK instruction is:^BKo,e,h,f,g,k,lwhere^BK=ANSI Codabar Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N =
LOGMARS Bar CodeThe ^BL (LOGMARS) bar code instruction is a special application ofCode 39 used by the Department of Defense (DOD). LOGMARS isan acrony
The format for the ^BL instruction is:^BLo,h,gwhere^BL = LOGMARS Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR = R
MSI Bar CodeThe ^BM (MSI) bar code is a pulse-width modulated, continuousnon-self checking symbology. It is a variant of the Plessey bar code.Each cha
Format InstructionsFormat instructions are the blueprint of a label. These instructionsdefine label length, field origin, type of field, field data, a
The format for the ^BM instruction is:^BMo,e,h,f,g,hwhere:^B M = MSI Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Plessey Bar CodeThe ^BP (Plessey) bar code is a pulse-width modulated, continuousnon-self checking symbology.Each character in the Plessey bar code is
The format for the ^BP instruction is:^BPo,e,h,f,gwhere:^BP = Plessey Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = Normal
QR Code Bar CodeThe ^BQ (QR Code) is a matrix symbology consisting of an array ofnominally square modules arranged in an overall square pattern. Auniq
The format for the ^BQ instruction is:^BQa,b,cwhere^BQ = QR Code Bar Codea = Field PositionDefault value: Normal.Other values:No rotation is available
Special considerations for the ^FD commandwhen using QR CodeThe QR switches are formatted into the ^FD field data as follows:There are two types of Da
<Character mode 2> <Data character string 2>,<: >< : >,<Character mode n> <Data character string n**>^FS**n = Up t
Data input <A, M>A Automatic input (Default)Data character string JIS8 unit, Shift JIS. When the inputmode is automatic input, the binary codes
Example: QR Code^XA^FO20,20^BQ,2,10^FDQA,0123456789ABCD 2D code^FS^XZ<Error correction level> Q High reliability level<Input mode> A Autom
Example: QR Code^XA^FO20,20^BQ,2,10^FDMM,AAC-42^FS^XZ<Error correction level> M Standard reliability level<Input mode> M Manual input,<
Control InstructionsControl instructions are usually preceded by a tilde (~) character. Inmost cases, they cause the printer to take a specific action
Example: QR Code^XA^FO20,20^BQ,2,10^FDD03048F,LM,N0123456789,A12AABB,B0006qrcode^FS^XZ<Mixed mode identifier> D Mixed<Code No.> M Code num
UPC/EAN ExtensionsThe ^BS (UPC/EAN extensions) instruction is the 2- and 5-digit add-on used primarily by publishers to create bar codes for ISBN’s (I
The format for the ^BS instruction is:^BSo,h,f,gwhere^BS = UPC/EAN Extensiono = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Care should be taken in positioning the UPC/EAN extension withrespect to the UPC-A (or UPC-E) code to insure the resultant compos-ite code is within t
Additionally, the bar code height for the extension should be 27 dots(0.135 inches) shorter than that of the Primary code. A Primary UPCcode height of
UPC-A Bar CodeThe ^BU (UPC-A) bar code instruction is a fixed length, numeric,continuous symbology. It is primarily used in the retail industry forlab
The format for the ^BU instruction is:^BUo,h,f,g,ewhere^BU = UPC-A Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR =
Data Matrix Bar CodeThe ^BX (Data Matrix) bar code is a two-dimensional matrixsymbology which is made up of square modules arranged within aperimeter
The format for the ^BX instruction is:^BXo,h,s,c,r,f,gwhere^BX = Data Matrix Bar Codeo = OrientationDefault value: N = NormalOther values:N = NormalR
r = Rows to Encode (“9” to “49”)Odd values only for quality “0” to “140” (“10”-“144”);even values only for quality “200.”The number of rows and column
If the default value for an instruction parameter suits your application,you need not specify that parameter. However, parameters are“position-specifi
f = Format ID (“0” to “6”) — Not used with quality “200”Default value:6 Field data is full 256 ISO 8-bit setOther values:1 Field data is numeric + spa
specified in the ^BD instruction, the height of symbol valuewill be divided by the required rows/columns, rounded,limited to a minimum value of one, a
Quality “200”If more than 3072 characters are supplied as field data, it istruncated to 3072 characters. This limits the maximum size of anumeric Data
Bar Code Field DefaultInstructionThe ^BY instruction is used to change the values for the Narrow Ele-ment Module (Narrow Bar or Space) Width, the Wide
The format for the ^BY instruction is:^BYw,r,hwhere^BY = Change Bar Code Default Parametersw = Module (Narrow Bar) WidthInitial power -up value: 2 dot
POSTNET Bar CodeThe ^BZ (POSTNET) bar code is used to automate the handling ofmail. POSTNET uses a series of 5 bars, 2 tall and 3 short, to representt
The format for the ^BZ instruction is:^BZo,h,f,gwhere:^BZ = POSTNET Bar Codeo = OrientationDefault value: Current ^FW settingOther values:N = NormalR
Change CaretThe ^CC, ~CC (Change Caret) instruction is used to change the for-mat instruction prefix. The default prefix is the caret (^).The format f
Change DelimiterThe ^CD, ~CD (Change Delimiter) instruction is used to change theZPL II delimiter character. This character is used to separate parame
Change AlphanumericDefault FontYou can use the ^CF (Change Alphanumeric Default Font)instruction to keep your programs simple. For an example of using
An Example of a Basic LabelThis exercise is designed to guide you through the basic steps to cre-ate a common label which contains text and a bar code
The format for the ^CF instruction is:^CFf,h,wwhere^CF = Change Alphanumeric Default Fontf = Specified Default Font:A = font A {I.V.P.}Other values: B
Change International FontZebra printers can print all fonts using various international charactersets: USA1, USA2, UK, Holland, Denmark/Norway, Sweden
The format for the ^CI instruction is:^CIawhere^CI = Change International Fonta = Desired Character Set0 = USA1 {I.V.P.}Other acceptable values:1 = US
Cache OnThe ^CO (Cache On) instruction is used to change the size of thecharacter cache. By definition, a “character cache” (from here onreferred to a
NOTE: The cache can be resized as often as needed. Any charactersin the cache when it is resized are lost. Memory used for the cachereduces the space
The following is an example using the ^CO instruction.To resize the print cache to 62K:^COY 40K (default memory) + 22K (existing cache) = 62KTo resize
Change TildeThe ^CT, ~CT (Change Tilde) instruction is used to change the con-trol instruction prefix. The default prefix is the tilde (~).The format
Code ValidationThe ^CV (Code Validation) instruction acts as a switch to turn thecode validation function ON and OFF. When this instruction isturned O
The following is an example of how the ^CV instruction works. Thetop sample (both columns) is a correctly printed bar code. It is followedby an exampl
Font IdentifierAll built-in fonts have a one-character identifier i.e. A, B, C, etc. The^CW (Font Identifier) instruction assigns a single alphanumeri
CHAPTER 2 11ZPL II BasicsLABEL HOME POSITION ( )^LH30,30CODE 39BAR CODE()^B3TEXT(FONT)()^AD( Actual Field Data)ZEBRA -(ActualFieldData)AAA001 -Y-AXIS(
The format for the ^CW instruction is:^CWa,d,fwhere:^CW = Font IdentifierUse new font for ZPL II calls.a = The Letter of the Built-in Font to be Subst
Download Bitmap FontThe ~DB (Download Bitmap Font) instruction sets the printer toreceive a downloaded bitmap font, defines native cell size, baseline
The format for the ~DB instruction is:~DBd,o,x,a,h,w,base,space,#char,©,DATAwhere:~DB = Set Printer to Accept Download Bitmap Fontd = Destination Devi
DATA = Structured ASCII Data which Defines EachCharacter in the FontThe # symbol signifies character code parameterswhich are separated with periods.
ZPL II COMMAND REFERENCE 195COMMANDREFERENCE
Download Direct BitmapThe ^DD (Download Direct Bitmap) command causes a downloadedimage to print directly rather than being stored in memory.NOTE: Ref
The format for the ~DD instruction is:^DDa,b,DATAwhere^DD = Download (an image) Direct into Bitmapa = Total Number of Bytes in GraphicDefault value: N
Download EncodingThe standard encoding for TrueType Windows fonts is always Uni-code. Therefore, the ZPL field data must be converted from someother e
The format for the ~DE instruction is:~DEn,s,DATAWhere~DE = Download Encoding Table forUnbounded Unicode TrueType Fontn = Table NameDefault value:NO N
Download FormatThe ^DF (Download Format) instruction saves the ZPL II formatinstructions as text strings to be later merged using ^XF with variabledat
Zebra FontsMost Zebra printers come standard with 8 bitmapped fonts and onescalable font. Additional downloadable bitmapped and scalable fontsare also
The format for the ^DF instruction is:^DFd:o.xwhere^DF = Download and Store Formatd = Destination Device to Store Image.{Fixed. Will always be DRAM(R:
Download GraphicThe ~DG (Download Graphic) instruction performs the followingfunctions:1. Puts the printer into Graphics Mode.2. Names the graphic.(Th
The format for the ~DG instruction is:~DGd:o.x,t,w,DATAwhere~DG = Set Printer to Download Graphic Moded = Destination Device to Store ImageDefault val
The “t” parameter (the total number of bytes in a graphic) can bedetermined by using the following formula:where x is the width of the graphic in mill
Abort Download GraphicAfter decoding and printing the number of bytes in parameter “t”ofthe ^DG command, the printer returns to normal print mode. Gra
Download Scalable FontThe ~DS (Download Scalable Font) instruction is used to set theprinter to receive a downloadable scalable font and defines the s
The format for the ~DS instruction is:~DSd:o.x,s,DATAwhere:~DS = Set printer to accept download soft scalable fontd = Destination Device to Sore FontD
Download TrueType®FontThe ZTools™ for Windows program must be used to convert theTrueTypefont to a Zebra-downloadable format. This program cre-ates a
The format for the ~DT instruction is:~DTf,s,DATAwhere~DT = Download TrueType Fontf = Font NameDefault value:NO NAME = The command is ignoredOther val
Download Unbounded(TrueType®Font)Some international fonts have more than 256 printable characters.These fonts are supported as “Large TrueTypeFonts” a
Proportional SpacingProportional spacing is different than fixed spacing. In Table 1, theIntercharacter Gap (space between characters) is constant for
The format for the ~DU instruction is:~DUf,s,DATAwhere~DU = Download Unbounded UnicodeTrueType Fontf = Font NameDefault value:NO NAME = The command is
Initialize/Erase Stored FormatsThe ^EF or ~EF (Erase Format) instruction erases all stored formats.If you use the erase format instruction, you erase
Field AllocateUse the ^FA (Field Allocate) instruction to allocate space for the fieldto be saved.The format for the ^FA instruction is:^FAnwhere^FA =
Field BlockThe ^FB (Field Block) instruction allows you to print text into adefined “block type ” format. This instruction formats an ^FD textstring i
The format for the ^FB instruction is:^FBa,b,c,d,ewhere^FB = Define Field Blocka = Width of Text Block Line in DotsValid data: Minimum = one character
Notes Concerning the ^FB Instruction• The following scheme can be used to facilitate special functions.“ \& ” = carriage return/line feed“ \(*)” =
Field DataThe ^FD (Field Data) instruction defines the data string for the field.The field data can be any printable character except those used asins
Field HEXThe ^FH (Field HEX) instruction allows you to enter the hexadecimalvalue for any character directly into the ^FD statement. The ^FHinstructio
Field Number InstructionThe ^FN (Field Number) instruction is used to number the data fields.This instruction is used in both Store Format and Recall
Field OriginThe ^FO (Field Origin) instruction sets a field origin, relative to thelabel home position designated by the ^LH command. ^FO sets theuppe
Defining only the height or width forces the magnification to be pro-portional to the parameter defined. If neither is defined, the ^CFheight and widt
Field ParameterThe ^FP (Field Parameter) command has been added to ZPL II tosupport the Kanji character set. This command rotates the font fieldwithou
Field Reverse PrintThe ^FR (Field Reverse Print) instruction allows a field to appear aswhite over black or black over white. When printing a field, i
Field SeparatorThe ^FS (Field Separator) instruction denotes the end of the fielddefinition. The field separator instruction can be issued as a single
Field TypesetThe ^FT (Field Typeset) instruction also sets the field position, rela-tive to the home position of the label designated by the ^LH com-m
The format for the ^FT instruction is:^FTx,ywhere^FT = Set Field Typesetx = Number of Dots along X-axisDefault value: = Position after last formatted
Field Variable DataThe ^FV (Field Variable Data) instruction replaces the ^FD (FieldData) instruction in a label format when the field is variable.The
The format for the ^FV instruction is:^FVawhere^FV = Field Variable Dataa = Variable Field Data to be Printed(0 to 255 character string)Instruction ig
Field OrientationThe ^FW (Field Orientation) instruction sets the default orientationfor all instruction fields that have an orientation (rotation) pa
CommentThe ^FX (Comment) instruction is useful when you want to add a“non-printing” informational comment or statement within a labelformat. Any data
Graphic BoxThe ^GB (Graphic Box) instruction is used to draw boxes and/or linesas part of a label format. Boxes and lines can be use to highlightimpor
Downloadable Scalable FontsAll dot parameters used in the instructions to create Scalable Fonts aretranslated into a point size. The printer will conv
The format for the ^GB instruction is:^GBw,h,t,cwhere^GB = Graphic Boxw = Width of Box (in dotsDefault value: Value used for thickness or 1 dotMinimum
Graphic FieldThe ^GF (Graphic Field) command allows you to download graphicfield data directly into the bitmap. This command follows the conven-tions
The format for the ^GF instruction is:^GFa,b,c,d,DATAwhere^GF = Graphic Fielda = Compression TypeDefault: ASCIIValue:A = ASCII HexThis follows the con
Value: Total number of bytes comprising graphicformat (i.e., width x height), which are sent asparameter d. Count divided by bytes per rowgives the nu
Graphic SymbolThe ^GS (Graphic Symbol) instruction enables you to generate theregistered trademark, copyright symbol and other symbols.The format for
Battery StatusWhen the Battery Status command, ~HB, is sent to the Zebra printer,a data string is sent back to the Host. The string starts with an <
Host GraphicThe ^HG (Host Graphic) instruction is used to send (upload) thegraphic to the host. This graphic image can be stored by the host forfuture
Host IdentificationThe ~HI (Host Identification) instruction is designed to be sent fromthe Host to the Zebra printer to find out the type of Zebra pr
Host Memory StatusSending the ~HM (Host Memory Status) instruction to the printerimmediately returns a memory status message to the host. Use thisinst
Host Status ReturnWhen the Printer Status Command, ~HS, is sent to the Zebra printer,three data strings are sent back to the Host. Each string starts
Bar CodesZebra printers can print the following kinds of bar codes:ANSI Codabar CODABLOCKData Matrix Code 11Code 39 Code 49Code 93 Code 128 (subsets A
aaa = a8a7a6a5a4a3a2a1a0a8= High Speed Baud Rate0 = 110 thru 19200 baud1 = 28800 baud and abovea7= Handshake0 = Xon/Xoff1 = DTRa6= Parity Odd/Even0 =
String 2<STX>mmm,n,o,p,q,r,s,t,uuuuuuuu,v,www<ETX><CR><LF>mmm = Function Settings(*)n = 0 (Unused)o = “Head Up” Flag (1 = Head
m5= Communications Diagnostics0 = Off1=Onm4 m3 m2 m1 = Unused0 = Alwaysm0 = Print Mode0 = Direct Thermal1 = Thermal TransferString 3<STX>xxxx,y&
Host VerificationThe ^HV (Host Verification) instruction is used to return data fromspecified fields, along with an optional ASCII header, to the host
The format for the ^HV instruction is:^HV#,c,ASCIIwhere^HV = Host Verification# = Specified Field NumberDefault value: 0Acceptable values: 0 - 9999.c
Host Directory ListThe ^HW (Host Directory List) is used to transmit a Directory List-ing of objects in a specific memory area (storage device) back t
The format for the ^HW instruction is:^HWd:o.xwhere^HW = Return Directory Listing to Hostd = Source Device of Object Listings{Optional. Default is DRA
Image DeleteThe ^ID (Image Delete) instruction deletes objects, images, fonts,formats etc. from storage areas selectively or in groups. This instruc-t
The format for the ^ID instruction is:^IDd:o.xwhere^ID = Delete Image (object)d = Source Device Where Object is Stored{R:, B:}o = Name of Stored Image
Image LoadThe ^IL (Image Load) instruction is used at the beginning of a labelformat to load a stored image of a format and merge it with additionalda
Bar Code Field InstructionsTo create a bar code, a bar code field instruction must be contained inthe label format. Table 2 shows all of the bar code
The format for the ^IL instruction is:^ILd:o.xwhere^IL = Load Graphic Image to Bitmapd = Source Device where Image is Stored{Optional. Default is Sear
Image MoveThe ^IM (Image Move) instruction performs a direct move of animage from storage area into the bitmap. The instruction is identicalto the Rec
The format for the ^IM instruction is:^IMd:o.xwhere^IM = Move Image to Bitmap.d = Source Device Where Image is Stored{Optional. Default is Search Prio
Image SaveThe ^IS (Image Save) instruction is used within a ZPL II label formatto save that format as a graphic image. This instruction is used within
The format for the ^IS instruction is:^ISd:o.x,pwhere^IS = Save Format as a Graphic Image.d = Destination Device to Store ImageDefault value:R:(DRAM)O
Cancel AllThe ~JA (Cancel All) instruction cancels all format instructions in thebuffer. It also cancels any batches that may be printing.The printer
Initialize Flash MemoryThe ^JB (Initialize Flash Memory) instruction is used to initialize thetwo types of Flash Memory available in the Zebra printer
Set Media Sensor CalibrationThe ~JC (Set Media Sensor Calibration) is used to force a label lengthmeasurement and recalibrate the media and ribbon sen
Disable DiagnosticsThe ~JE (Disable Diagnostics) instruction cancels the diagnosticmode and returns the printer to normal label printing.Graphing Sens
Set Auxiliary PortThe ^JJ (Set Auxiliary Port) command allows you to control an on-line verifier or applicator device via ZPL.The format for the ^JJ i
Additionally, each bar code field instruction can be issued with a defi-nition parameter string. The parameter string defines field rotation,height, a
Effective for Version 18.6.0a = Applicator ModeFactory Default: 0 Off - The auxiliary port output signal isnot provided for the applicator.Initial Val
Set Label Length)The ~JL (Set Label Length) is used to set the label length. Dependingon size of label, the printer will feed one or more blank labels
Set Dots/MillimeterUse the ^JM (Set Dots/Millimeter) instruction to change the numberof dots per millimeter. Depending on the print head, normal dots
Head Test FatalThe ~JN (Head Test Fatal) instruction resets the printhead elementerror override, acting as a toggle for ~JO. Printer then goes into fa
Pause and Cancel FormatThe ~JP(Pause and Cancel Format) instruction, clears the format cur-rently being processed and places the printer in the Pause
Change Backfeed SequenceThe ~JS (Change Backfeed Sequence) instruction is used to controlthe backfeed sequence. This instruction can be used on printe
The format for the ~JS instruction is:~JSbwhere~JS = Change Backfeed Sequenceb = Order in which Backfeed Occurs with Respect toPrintingDefault value:N
Head Test IntervalThe ^JT (Head Test Interval) instruction lets you change the print-head test interval from 100 to any desired interval. The printer
The format for the ^JT instruction is:^JT#,a,b,cwhere^JT = Head Test Interval# = The Four-Digit Number Representing the Amount ofLabels to be Printed
Configuration UpdateThe ^JU (Configuration Update) instruction sets the active configura-tion for the printer.There are three choices for this instruc
The bar code instructions are organized into four groups. Each grouprepresents a particular type of bar code. These groups and the barcodes they conta
The format for the ^JU instruction is:^JUawhere^JU = Configuration Updatea = Active ConfigurationF = Reload Factory DefaultsR = Recall Last Saved Valu
Set Ribbon TensionThe ^JW (Set Ribbon Tension) instruction is used only for the 170PAX-Series printers.The format for the ^JW instruction is:^JWtwhere
Reprint After ErrorThe ^JZ (Reprint After Error) instruction is used to reprint a partiallyprinted label caused by a Ribbon Out, Media Out or Head Ope
Define LanguageThe ^KL (Define Language) instruction is used to select the languageused for the front panel display.The format for the ^KL instruction
Define PasswordThe ^KP (Define Password) instruction is used to define the pass-word that must be entered to access the front panel switches and LCDse
Label HomeThe ^LH (Label Home) instruction sets the label home position.The default home position of a label is the upper-left corner (position 0,0alo
The format for the ^LH instruction is:^LHx,ywhere^LH = Set Label Homex = Number of Dots along X-axis{I.V.P. = 0}Acceptable values: 0 - 9999y = Number
Label LengthThe ^LL (Label Length) instruction defines the length of the label.This instruction is necessary when using continuous media (i.e. mediano
The format for the ^LL instruction is:^LLywhere^LL = Set Label Lengthy = Number of Dots Along Y-AxisDefault value:1225 for Stripe1244 for Xi printersN
Label Reverse PrintThe ^LR (Label Reverse Print) instruction reverses the printing of allfields in the label format. It allows a field to appear as wh
Further ZPL II Basic ConceptsAn understanding of the following concepts and terms related toZPL II will be helpful in rounding out your knowledge of Z
The format for the ^LR instruction is:^LRawhere^LR = Label Reverse Printa = Reverse Print All FieldsY = YesN=No {I.V.P. = N}[Instruction is ignored if
Label ShiftThe ^LS (Label Shift) instruction allows for compatibility with Z-130Printer formats that are set for less than full label width. It is use
The format for the ^LS instruction is:^LSawhere^LS = Set Label Shifta = Shift Left Value in Dots{I.V.P. = 0}Acceptable values: 0 to 9999 dots.Effectiv
Label TopThe ^LT (Label Top) instruction moves the entire label format amaximum of 64 dot rows up or down from its current position withrespect to the
Map ClearIn normal operation, the bit map is cleared after the format has beenprinted. The ^MC (Map Clear) instruction is used to retain the currentbi
Media DarknessThis ^MD (Media Darkness) instruction adjusts the darkness relativeto the current darkness setting. The minimum value is -30 and themaxi
The format for the ^MD instruction is:^MDawhere^MD = Media Darknessa =-30 to 30 depending on the current value. (Positivevalues do not require a “+ ”
Media FeedThe ^MF (Media Feed) instruction dictates what happens to themedia at “power up.”The format for the ^MF instruction is:^MFp,hwhere^MF = Medi
Maximum Label LengthThe ^ML (Maximum Label Length) instruction lets you adjust themaximum label length via ZPL.The format for the ^ML instruction is:^
Print ModeThe ^MM (Print Mode) instruction determines the action the printertakes after a label or group of labels has been printed. There are fourdif
Proprietary StatementThis manual contains proprietary information of Zebra Technologies Corporation. It is intended solely for theinformation and use
Introduction to ZPL II Object Names and ExtensionsEach ZPL II Object (graphic images, label format, etc.) must have aname. This name will consist of t
The format for the ^MM instruction is:^MMa,bWhere^MM = Print Modea = Desired ModeDefault value:T = Tear OffOther Values:P = Peel Off (not available on
Media TrackingThis ^MN (Media Tracking) instruction tells the printer what type ofmedia is being used (continuous or non-continuous) for purposes oftr
The format for the ^MN instruction is:^MNawhere^MN = Media Trackinga = Media Being UsedN = Continuous MediaY = Non-Continuous Media Web SensingEffecti
Mode ProtectionThe ^MP (Mode Protection) instruction is used to disable the variousMode functions on the front panel. Once disabled, the settings for
Media TypeThis ^MT (Media Type) instruction selects the type of media beingused in the printer. There are two choices for this instruction:1)Thermal T
Mode UnitsThis command sets the printer units of measurements. The ^MU(Mode Units) command works on a field by field basis. Once themode units is set,
Network ConnectThe ~NC (Network Connect) instruction is used to connect a particu-lar printer into the network by calling up the printer’s Network IDN
Network ID NumberThe ^NI (Network ID Number) instruction is used to assign a Net-work ID number to the printer. This must be done before the printerca
Set All Network PrintersTransparentThe ~NR (Set All Network Printers Transparent) instruction sets allprinters in the network, regardless of ID or cur
Slew Given Number of DotRowsThe ^PF (Slew Given Number of Dot Rows) instruction causes theprinter to slew labels (move labels at a high speed without
Using Device and Object Names with ZPL II InstructionsThe Device Names and Object Names just described can be used withZPL II instructions which suppo
Printing Mirror Image of LabelThe ^PM (Print Mirror Image of Label) instruction prints the entireprintable area of the label as a mirror image. This i
Print OrientationThe ^PO (Print Orientation) instruction inverts the label format 180degrees. In essence, the label is printed upside down.The format
Programmable PauseThe ~PP (Programmable Pause) instruction stops printing after thecurrent label is printed (if one is printing) and places the printe
Print QuantityThe ^PQ (Print Quantity) instruction gives control over severalprinting operations. It controls the number of labels to print, thenumber
Explanations of Values for the ^PQ ‘o’ ParameterWith the ‘o’ parameter set to Y, the printer will NOT pause afterevery group count (‘p’ parameter) of
Print RateThe ^PR (Print Rate) instruction determines the media speed duringprinting and the slew speed (feeding a blank label).The printer will opera
The format for the ^PR instruction is:^PRp,s,bwhere^PR = Print Ratep = Print SpeedDefault value: Speed AAcceptable values :A or 2 50.8 mm/sec. (2 inch
Print StartThe ~PS (Print Start) instruction causes a printer in the Pause mode toresume printing. The operation is identical to pressing the PAUSEbut
Set CommunicationsThe ^SC (Set Communications) command allows you to change thecommunications parameters you are using.The format for the ^SC command
Set DarknessThe ~SD (Set Darkness) command lets you set the darkness of print-ing via ZPL. It is equivalent to the darkness setting parameter on thefr
In most cases, the printer can be configured from either the front panelor through various ZPL II instructions. Once a configuration instruc-tion is r
Select EncodingThe ^SE (Select Encoding) command has been created to select thedesired ZPL/ZPL II encoding table.The format for the ^SE instruction is
Serialization Field (with astandard ^FD string)The ^SF (Serialization Field) command allows the user to serialize astandard ^FD string. Fields seriali
The format for the ^SF instruction is:^SFa,bwhere^SF = Serialization Fieldsa = Mask String1. The Mask String sets the serialization scheme.The length
Serialization DataThe ^SN (Serialization Data) instruction allows the printer to indexdata fields by a selected increment or decrement value (i.e., ma
NOTE: Incrementing/Decrementing takes place for each serialnumbered field when all replicates for each serial number have beenprinted, as specified in
Using Leading ZerosIn the ^SN instruction, the “z” parameter determines if leading zeroswill be printed or suppressed. The default value for this para
NOTE: If, during the course of printing serialized labels the printerruns out of either paper or ribbon, the first label printed (after themedia or ri
Start PrintThe ^SP (Start Print) instruction allows a label to start printing at aspecified point before the entire label has been completely formatte
The format for the ^SP instruction is:^SPawhere^SP = Start Printa = The Dot Row at which Printing is to StartDefault value: 0Other values: Any number
In the following illustration, a label 800 dot rows in length hasan ^SP500 instruction. Segment 1 will print while instructions inSegment 2 are being
^JU (Configuration Update) - Allows the user to save thecurrent settings.^SZ (Set ZPL) - Allows the user to select either the ZPL or ZPLII Programming
Set Head ResistanceThe ^SR (Set Head Resistance) command lets you set the printheadresistance via ZPL.The format for the ^SR instruction is:^SR#where^
Set Media SensorsThe ^SS (Set Media Sensor) instruction is used to change the valuesfor media, web, ribbon and label length that were set during the“m
The format for the ^SS instruction is:^SSw,m,r,l,m2,r2,a.b.cwhere^SS = Set Media Sensorsw = 3-Digit Value for the Web (000 to 100)Default value: Value
Set ZPLThe ^SZ (Set ZPL) instruction is used to select the programming lan-guage used by the printer. This instruction gives you the ability toprint l
Tear-Off Adjust PositionThe ~TA (Tear-Off Adjust Position) command lets you adjust the restposition of the media after a label is printed, which chang
Transfer ObjectThe ^TO (Transfer Object) instruction is used to copy an object orgroup of objects from one storage device to another. It is quite simi
The format for the ^TO instruction is:^TOd:o.x,s,o,xwhere:^TO = Transfer Object.d = Source Device where Object is Stored.{R:, B:}o = Name of Stored Ob
The following are some examples of using the ^TO instruction. Tocopy the object ZLOGO.GRF from DRAM to an optional MemoryCard and rename it ZLOGO1.GRF
Print Configuration LabelThe ~WC (Print Configuration Label) instruction is used to generate aPrinter Configuration Label.NOTE: This instruction only
Print Directory on LabelThe ^WD (Print Directory on Label) instruction is used to print alabel listing bar codes, objects stored in DRAM, or fonts (if
If you want to save the changes you made using the ZPL II commandsjust described or through the front panel, there are two ways to do it.1. Refer to y
The format for the ^WD instruction is:^WDd:o.xwhere^WD = Print Directory on Labeld = Source Device to Store Image{Optional. Default is Search Priority
Start FormatThe ^XA (Start Format) instruction is the beginning (opening) bracket. Itindicates the start of a new label format. This instruction can a
Suppress BackfeedThe ^XB (Suppress Backfeed) instruction suppresses forward feed ofmedia to tear-off position depending on the current printer mode.Si
Recall FormatThe ^XF (Recall Format) recalls a stored format to be merged withvariable data. There can be multiple ^XF instructions and they can beloc
The format for the ^XF instruction is:^XFd:o.xwhere^XF = Recall Stored Formatd = Source Device of Stored Image{Optional. Default is Search Priority}o
Recall GraphicThe ^XG (Recall Graphic) instruction is used to recall one or moregraphic images for printing. This instruction is used in a label forma
The format for the ^XG instruction is:^XGd:o.x,x,ywhere^XG = Recall Graphic Imaged = Source Device where Image is Stored{Optional. Default is Search P
End FormatThe ^XZ (End Format) instruction is the ending (closing) bracket. It indi-cates the end of a label format. When this instruction is received
This table is a summary of ZPL commands.An asterisk (*) indicates that the command has been supported sincethe initial release of the firmware. Comman
340 APPENDIX AZPL II Command Quick Reference ChartCOMMAND DESCRIPTION V14 V15 V16 V18 V20 V21 V22 V23 V24 V25^A Scalable/Bitmapped Font * * * *******^
2. Non-Continuous Media - This media has some type of physicalcharacteristic (i.e. a web, notch, hole, etc.) that can be detectedby the printer to sep
APPENDIX A 341ZPL II Command Quick Reference ChartCOMMAND DESCRIPTION V14 V15 V16 V18 V20 V21 V22 V23 V24 V25 V26^CW Font Identifier * * * * * * *****
342 APPENDIX AZPL II Command Quick Reference Chart~HM Memory Status * * * *******~HS Host Status * * * *******^HV Host Verification * * * *******^HW H
APPENDIX A 343ZPL II Command Quick Reference ChartCOMMAND DESCRIPTION V14 V15 V16 V18 V20 V21 V22 V23 V24 V25^LR Label Reverse Print **********^LS Lab
344 APPENDIX AZPL II Command Quick Reference ChartCOMMAND DESCRIPTION V14 V15 V16 V18 V20 V21 V22 V23 V24 V25^SR Set Head Resistance n/an/an/an/a16.5.
The following page contains a chart of the ASCII (American StandardCode for Information Exchange) Code used by the Zebra printers.345APPENDIX BASCII C
ASCII Code Chart346 APPENDIX BASCII Code ChartHEX CHAR HEX CHAR HEX CHAR HEX CHAR00 NUL 20 space 40 @ 60 ‘01 SOH 21 ! 41 A 61 a02 STX 22 “ 42 B 62 b03
The calculations for determining the Mod 10 Check Digit characterare as follows:1. Start at the first position and add the value of every otherpositio
The following is a bar code that illustrates the above example. Thedigit on the right (5) is the check digit.348 APPENDIX CMod 10 Check Digit
The calulations for determining the Mod 43 Check Digit character areas follows:Each character in the Code 39 Character set has a specific value.These
2. Divide the total by 43. Keep track of the remainder.115/43 = 2 Remainder is 293. The “check digit” is the character that corresponds to the valueof
Label Top PositionThe ^LT (Label Top) instruction moves the entire label format amaximum of 64 dot rows up or down from its current position withrespe
351APPENDIX EFonts and Font MatricesStandard Printer Fonts
352 APPENDIX EFonts and Font MatricesFontMatrixTypeCharacter SizeH×W (in dots) H×W (in in.) char./in.H×W (inmm)char./mmA 9 x 5 U-L-D .044 x .030 33.3
APPENDIX E 353Fonts and Font MatricesFontMatrixTypeCharacter SizeH×W (in dots) H×W (in in.) char./in.H×W (inmm)char./mmA 9 x 5 U-L-D .030 x .020 50.8
354 APPENDIX EFonts and Font Matrices
The following pages contains charts of the Code Page 850 characterset used by the Zebra printers.355APPENDIX FCode Page 850 Chart
356 APPENDIX FCode Page 850 Chart
APPENDIX F 357Code Page 850 Chart
358 APPENDIX FCode Page 850 Chart
IntroductionThere are many instances when it is vitally important that the informa-tion sent to the Zebra printer is received completely Error-Free.ZP
printer has either accepted or rejected the information sent from theHost computer.Information is sent in the form of “Packets.” Packets sent from the
Configuration UpdateThe ^JU (Configuration Update) instruction sets the active configura-tion for the printer.There are three choices for this instruc
DST. Z-ID (Destination Zebra-ID) This is the three digit ASCIII.D. number used to identify which Zebra printer is to receive theRequest Packet. The Ze
This field can contain from 0 to 1024 characters. If the Format of alabel is longer than 1024 characters, the Data Format fields from con-secutive pac
Zebra Packet ResponseThe Packet Response protocol provides the highest degree of errorchecking and is well suited to the Host-Multiple Printer applica
‘S’ This character indicates that the Response Packet contains theZebra Printer Status requested by a ~HS (Host Status) instructionreceived from the H
Disguising Control Code CharactersThere may be occasions when ASCII Control Codes (00H - 19H)must be included as part of the Data Format block of a Re
Rules for Transactions1. Every Transaction is independent of every other Transactionand can only be initiated by the Host computer.2. A valid Response
If there is only one printer connected to the Host computer, the Net-work ID number should be set to all zeros (default).If there is more than one pri
Time-Out Error Conditions and ResponsesThere are certain conditions at the Zebra printer that might cause theHost computer to time-out while processin
How the Zebra PrinterProcesses a Request PacketThe following describes the steps taken at the Zebra printer to processa Request Packet.1. The Zebra pr
used it before. However the printer will send a responseback to the host.3. The printer calculates the CRC and compares it with the onereceived in the
Depending on your needs and specific application, the following is alist of the instructions you might want to put into a configuration format.^XB Sup
Code for Calculating the CRC for theZebra Protocol/********************************************************** name: do_crc_ccitt** description: Calcul
/* 120 -- */ 0xFF9F, 0xEFBE, 0xDFDD, 0xCFFC, 0xBF1B, 0xAF3A, 0x9F59, 0x8F78,/* 128 -- */ 0x9188, 0x81A9, 0xB1CA, 0xA1EB, 0xD10C, 0xC12D, 0xF14E, 0xE16
alphanumeric Indicating letters, numerals, and characters such aspunctuation marks.ANSI American National Standards Institute; an organization thatcoo
bit Binary Digit. A single digit in a binary number (0 or 1), either onor off.binary Meaning two. All input to the computer is converted intobinary nu
cutter A device that can cut the media into individual labels or tagsimmediately after it is printed.delimiter character In ZPL II, this is the comma.
media sensor This sensor is located behind the printhead to detectthe presence of media and, for non-continuous media, the positionof the web, hole, o
ribbon A band of material consisting of a base film coated with waxor resin “ink”. The inked side of the material is pressed by theprinthead against t
void A space where printing should have occurred, but did not due toan error condition such as wrinkled ribbon or faulty print ele-ments. A void can c
AAbort Download Graphic (~Dn) ...205Abort Download Graphic (~DN)...205ACSII Code Chart ...346ASCII characters ...
Beginning (Opening) Bracket (^XA) ...332Bit Map Font SizeExplained...13Bitmapped CharactersMagnification Factor ...12B
30 CHAPTER 3ZPL II Printer Configuration
Erase Downloaded Graphic (^EG or ~EG)...87,212Erase Format (^EF or ~EF) ...212Error Detection Protocol ...
Field Data InstructionMaximum Characters Allowed ...217Field HEX (^FH) ...218Field Number (^FN) ...219Field Orientati
II.V.P.Defined ...9,95Image Delete (^ID) ...248Image Load (^IL)...250Image Move (^IM) ...
PParameter string...5Pause and Cancel Format (~JP)...265Power On Reset (~JR) ...265Prefix character ...
Stored Format InstructionsDownload Format (^DF) ...200Stored FormatsSee Download Format (^DF)See Erase Format (^EF or ~EF)See Field Allocate (^
386 INDEX
PROGRAMMING GUIDECustomer Order # 46530LManufacturer Part # 46530LB' Zebra Technologies CorporationZebra HouseThe Valley Centre, Gordon RoadHigh
Chapter 1Introduction to ZPL IIScope of This Manual ...1Zebra Programming Language II (ZPL II)...1Why ZPL II and How
IntroductionThese programming exercises are included to assist and instruct boththe new and more experienced user in the use of various ZPL IIinstruct
computers. The ZPL II Language uses only printable ASCII charac-ters. Although a Zebra printer may be controlled by mainframes orminicomputers, we’ve
þExercise#1- Saving Label Formats asGraphic ImagesThis exercise illustrates how to save a label format as a graphic imagein printer RAM and then recal
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets ( [ ] )
ReviewSave this file on your computer’s harddrive, name it “EXER1.ZPL.”Copy the file to the printer. Compare your results with those shownbelow.If you
þExercise#2- Downloading and PrintingGraphic ImagesThis exercise illustrates how to create a hexadecimal graphic imageand print it as part of your lab
Refer to the ~DG command in the Command Reference sectionfor detailed instructions on calculating the total number of bytesand the number of bytes per
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets ( [ ] )
ReviewSave this file on your computer’s harddrive, name it “EXER2.ZPL”Copy the file to the printer. Compare your results with those shownbelow.If your
þExercise#3- Printing Quantities of Labels,Printing Entire Label in InvertedOrientation, Setting the Print Rate andSuppressing BackfeedThis exercise i
Differences Between Download Scalable Fonts and Bitmap Fonts...14Downloadable Scalable Fonts ...15Bar Codes ...
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA^PRB
^XZ[^XZ - Indicates end of label format.]ReviewSave this fileon your harddrive, name it “EXER3.ZPL” Copy the fileto the printer. Compare your results
þExercise #4 - Slew Instruction,Form Feed Instruction andPrinting Entire Formats in ReverseThis exercise illustrates the slew and form feed (slew to h
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA[^XA
^FO20,160^AF^FDSLEW EXAMPLE^FS[^FO - Set field origin relative to label home. ][^AF - Select font “F.”][^FD - Start of field data.][SLEW EXAMPLE - Act
^FO20,160^AF^FDSLEW EXAMPLE^FS[^FO - Set field origin relative to label home. ][^AF - Select font “F.”][^FD - Start of field data.][SLEW EXAMPLE - Act
ReviewSave this file on your harddrive, name it “EXER4.ZPL” Copy the fileto the printer. Compare your results with those shown below.If your labels do
þExercise#5- Using Serialized FieldsThis exercise discusses the instructions and parameters required toproduce serialized fields as part of a label fo
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA[^XA
ReviewSave this file to your computer’s harddrive, name it “EXER5.ZPL”Copy the file to the printer. Compare your results with those shownbelow.A total
þExercise #4 - Slew Instruction, Form Feed Instruction andPrinting Entire Formats in Reverse ...43þExercise#5-Using Serialized Fields ...
þExercise #6 - Stored FormatsThis exercise illustrates the instructions and parameters required touse stored formats.The ZPL II instructions sent to t
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA[^XA
^FN1^FDZEBRA^FS[^FN1 - Indicate following data should be insertedin area allocated for field number 1.][^FD - Indicate start of field data.][ZEBRA - F
^XZ[^XZ- Indicates end of format.]ReviewSave this file to your computer’s harddrive, name it “EXER6.ZPL”Copy the file to the printer. Compare your res
þExercise #7 - Erasing Stored FormatsThis exercise illustrates the instructions required to erase any storedformats saved in the printer memory.The ZP
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA[^XA
[NO FORMAT TO RECALL - Field data.][^FS - End of field data.]^XZ[^XZ- Indicates end of format.]ReviewSave this file to your computer’s harddrive, name
þExercise #8 - Using Variable Data FieldsThis exercise illustrates the instructions and parameters required toproduce serialized fields as part of a l
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA^MCY
^XA[^XA - Indicates start of label format.]^FO20,10^AF^FVCUBS^FS[^FO - Set field origin relative to label home. ][^AF - Select font “F.”][^FV - Indica
Set Dots/Millimeter ...78Changing Delimiters and Instruction Prefixes ...79Communication Diagnostics Instructions ..
^XZ[^XZ - End of format.]^XA^MCY^XZ[^XA - Indicates start of label format.][^MCY - Map Clear ][^XZ - End of format.]CHAPTER 4 61ZPL II Programming Exe
ReviewSave this file to your computer’s harddrive, name it “EXER8.ZPL”Copy the file to the printer. Compare your results with those shownbelow.A total
þExercise #9 - Graphic Boxes, Graphic Symbols andMultiple Elements on One LabelThis exercise illustrates the instructions and parameters required topr
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets ( [ ] )
^FO120,306^A0N,89^FDProgramming^FS[^FO - Set field origin relative to label home.][^A0 - Select default font “0”, normal orientation,character height
^FO377,216^GSN,55,40^FDA^FS[^FO - Set field origin relative to label home.][^GSN,55,40 - Set graphic symbol with normal orientationto be height of 55
ReviewSave this file on your computer’s harddrive, name it “EXER9.ZPL”Copy the file to the printer. Compare your results with those shownbelow.If your
þExercise # 10 - Deleting Graphic ImagesThis exercise illustrates how to delete a graphic image previouslystored in printer memory. Graphic images may
Programming InstructionsType the instructions (shown in bold) in the order given. An explana-tion of what each instruction does is in brackets.^XA[^XA
ReviewSave this file on your computer’s harddrive, name it “EXER10.ZPL”Copy the file to the printer. Compare your results with those shownbelow.If you
Appendix AZPL II Command Quick Reference Chart...339Appendix BASCII Code Chart...345
This chapter presents information and instructions for using moreadvanced techniques such as special effects, serialized data fields,control instructi
image from left to right. For more information, see the ^PM com-mand on page 301.Printing a Label Inverted 180 DegreesThe ^PO (Print Orientation) inst
To create a format do the following:Design the label.Replace variable data fields with field numbers.Allocate space for the size of the field.Give the
format, use ^FN in conjunction with the ^FD (Field Data) instruction.For more information, see the ^FN command on page 219.Field AllocateUse the ^FA (
Second, enter the following format and send it to the printer. The labelshown will be printed.Control InstructionsControl instructions may be sent fro
The ~JN (Head Test Fatal) instruction resets the printhead elementerror override, acting as a toggle for ~JO. Printer then goes into faultstatus (i.e.
Cancel/Clear InstructionsThe following instructions control the contents of the Zebra inputbuffer:The ~JA (Cancel All) instruction cancels all format
The ^PQ (Print Quantity) instruction gives control over severalprinting operations. It controls the number of labels to print, thenumber of labels pri
Changing Delimiters and Instruction PrefixesFor some applications, you may need to change the ZPL II delimiter(default “,”) the format instruction pre
Start PrintThe ^SP (Start Print) instruction allows a label to start printing at aspecified point before the entire label has been completely formatte
How Protocol Works ...359Request Packet Formats (from the Host computer) ...360Response From the Zebra Printer ...
If your printer is not equipped with an LCD Front Panel, use the fol-lowing steps to assign network IDs and chain multiple printers withinan RS-232C n
Graphic InstructionsIn addition to text and bar codes, three types of graphics can beprinted on a Zebra printer:Boxes and lines.ZPL II label formats s
Alternative Data Compression Scheme for ~DG and ~DBInstructionsThere is an alternative data compression scheme recognized by theZebra printer. This sc
Repeat ValuesSeveral repeat values can be used together to achieve any value desired.“vMB” or “MvB” will send 327 hexadecimal B’s to the printer.a com
Reducing Download Time of Graphic ImagesThere is a method of reducing the actual number of data bytes sent tothe printer when using the ~DG instructio
Transferring Objects Between Storage DevicesThe ^TO (Transfer Object) instruction is used to copy an object orgroup of objects from one storage device
The following are various examples of using the ^ID instruction.To delete just stored formats from DRAM:^XA^IDR:*.ZPL^XZTo delete formats and images n
Memory, Flash Cards, Font CardsZebra printers come with a variety of memory options. These includeDRAM, EPROM, PCMCIA, FLASH, SOCKET FLASH andBATTERY
NOTE: This command is only available in certain Zebra printersand based on the firmware installed in the printer. Please consultthe Command Quick Refe
Shortcuts and Alternate Schemes forWriting ZPL II ScriptsZPL II programming scripts can be written in a variety of ways. Thereare, however, more effic
15 Undeniable Reasons To Love Tiktokpornstar tiktokpornstar
What Do You Need To Know To Be All Set To Top Pornstars Kayleigh Wanless top pornstars kayleigh Wanless