EPL2 Programming Language

This document contains information about the basic features, command syntax and terminology of the EPL2 Programming Language for Zebra's desktop printers, Zebra Technologies Corporation.

For more information about EPL2 Programming Language see http://www.zebra.com : EPL2 Programmer’s Manual, Programming for Page Mode Printing.

Basic Command Syntax.

Each command consists of one or two ASCII (case sensitive) alpha characters to identify the specific command desired. Some commands require one or more additional parameters to supply the printer with sufficient information to complete the command.

N Command - Clear Image Buffer

This command clears the image buffer prior to building a new label image.

Syntax: N

Example

N clears the image buffer

A Command - ASCII Text

Prints an ASCII text string.

Syntax: Ap1,p2,p3,p4,p5,p6,p7,“DATA”
Parameters:
p1 = Horizontal start position (X) in dots.
p2 = Vertical start position (Y) in dots.
p3 = Rotation
p4 = Font selection
p5 = Horizontal multiplier, expands the text horizontally.
p6 = Vertical multiplier, expands the text vertically.
p7 = N for normal or R for reverse image
“DATA” = Represents a fixed data field.

Example

A10,10,0,4,1,1,N,"Test Object name"

A150,1,0,3,2,2,N,"ezFreezer"

P Command - Print

Use this command to print the contents of the image buffer.

Syntax Pp1, [p2]
Parameters:
p1 = Number of label sets
p2 = Number of copies of each label

Example

P1 prints one label set

Placing Elements in the Print Image.

Image elements are located in the image print buffer on a X-Y grid expressed in dots. The X value represents the width and the Y value represents the height of the grid. The point of origin (the starting point) for a non-rotated object is the upper left corner. As an object rotates, the point of origin rotates with the object.

Bar Codes.

All barcodes supported by the EPL2 language have associated industry specifications that the programmer should be aware of and adhere to. The programmer needs to consider barcode features and requirements when choosing and using a barcode for different applications.

B Command - Bar Code

Use this command to print standard barcodes.

Syntax: Bp1,p2,p3,p4,p5,p6,p7,p8,“DATA”
Parameters:
p1 = Horizontal start position (X) in dots
p2 = Vertical start position (Y) in dots
p3 = Rotation
p4 = BarCode selection
p5 = Narrow bar width in dots
p6 = Wide bar width in dots
p7 = Barcode height in dots
p8 = Print human readable code, Values: B=yes or N=no
“DATA” = Represents a fixed data field

Example

B10,90,0,3,3,7,100,B,"1234567890"

Some Real Examples:

Example #1
1
2 N
3 A400,360,3,3,1,1,N,
4 A440,360,3,3,1,1,N,
5 B10,400,0,3,3,7,60,B,
6 A530,350,3,2,7,3,N,"ezFreezer"
7 A700,310,3,3,3,1,N,"www.atgclabs.com"
8 P1
Example #2
1
2 N
5 B1,5,0,1,2,2,60,N,
6 A150,1,0,3,2,2,N,"ezFreezer"
7 A202,50,0,2,1,1,N,"www.atgclabs.com"
8 P1
Example #3
1
2 N
6 A10,0,0,4,2,2,N,"ezFreezer"
7 A60,50,0,4,1,1,R,"www.atgclabs.com"
8 P1
Example #4
1
2 N
3 A10,1,0,3,1,1,N,
4 A10,31,0,3,1,1,N,
5 B10,61,0,3,3,7,60,B,
6 A10,200,0,3,3,5,N,"ezFreezer"
7 A10,300,0,4,1,1,R,"www.atgclabs.com"
8 P1
Example #5
1
2 N
5 B1,5,0,3,3,7,40,B,"23423412"
8 P1

 
©2006-2010 ATGC Labs, LLC. Advanced software solutions to maximize laboratory efficiency.