Applies to version: 2019.1.x and above; authors: Wojciech Mleczko, Krystyna Gawryał
Introduction
WEBCON BPS supports barcodes as a method of identifying documents and workflow instances. Using barcodes allows to automate the process of scanning and registering paper documents. Stickers with barcodes simplify archiving documents, and based on barcode labels it is possible to quickly find the right workflow instance in the system. The main part of the configuration is preparing label templates.
Creating new template using Zebra Designer
Note: the label template wizard is available if the driver for the barcode printer is installed on your computer.
Select your preferred unit of measure. You can choose from cm, in, mm, and dot.
If you want use the standard font size (without scaling), select the smallest size.
The default barcode type used in BPS is Code 128. To set barcode options, click on the Barcode tab.
The barcode width depends on the X dimension value. An explanation of how this value affects the printout can be found later in this article.
EPL language
The generated file contains printer commands in EPL language. Below is a brief description of the basic commands used for printing.
Default print template in BPS (for the Main printer) is as follows:
I8,B,001
rY
JF
WY
S1
D14
R24,0
ZB
UN
q448
Q151,28
N
A20,20,0,2,1,1,N,"Date: 2023-06-12"
A20,40,0,2,1,1,N,"Author: Jan Kowalski"
B40,60,0,1,3,9,56,N,"0000000999"
A30,120,0,2,1,1,N,"00000033"
P1
The first part contains printer setup commands. The Second part is the information about printable elements.
Printer setup commands:
Character set selection. The first parameter sets the number of bits, the second selects the printer's code page, and the third is the country code.
In this case, it is set to: 8 bit, Windows-1250 printer code page, country code USA
Double buffer mode. Y – enables double buffer mode.
Enables the “Top Of Form Backup” feature. F – ejects the label tape after printing, so that the label can be torn off.
Enables escape sequence. The Y value means that the escape sequence is supported.
Select the print speed. Higher value means higher print speed.
Select the print density. Higher value means darker printout.
Set the reference point. Value given in dots. Defines place from which printing starts.
Set print direction. The B value sets printing from bottom of the image buffer.
Disable error reporting.
Set the label width (in dots).
Set the form length. The first parameter (151) defines the label width, the second (28) defines the length of gaps between labels. Values expressed in dots.
Clear image buffer.
Print image buffer.
If your print result is not satisfying, you can try to modify the speed, density, label width, label length or gap length.
Label content is defined in lines:
A20,20,0,2,1,1,N,"Date: 2023-06-12"
A20,40,0,2,1,1,N,"Author: Jan Kowalski"
B40,60,0,1,3,9,56,N,"0000000999"
A30,120,0,2,1,1,N,"00000033"
Lines starting with “A” generate text on label. Parameters for A command:
1) horizontal start position
2) vertical start position
3) rotation
4) font selection
5) horizontal multiplier
6) vertical multiplier
7) print mode (normal or reverse image)
8) data field
Lines starting with “B” generate text on label. Parameters for B command:
1) horizontal start position
2) vertical start position
3) rotation
4) barcode selection
5) narrow bar width
6) wide bar width
7) barcode height
8) print human readable code
9) data field
Examples of standard fonts and font sizes (Zebra 5 font supports only capital letters):
The sample printout contains three lines of text:
The font is Zebra 1, but horizontal and vertical multipliers are used here, as set by the parameters 5) and 6) in the EPL code. In the first line the multiplier value was set to 3, in the second – to 4, in the third – to 5. Using multipliers, you can generate bigger text with bigger character gap length. It all depend on the preferences. You can ether use multipliers or increase/decrease the font size.
Barcode width can be modified by changing narrow bar width:
Narrow bar width (X dimension) values can be set as indicated in the figure above.
What is the dot size?
The printer ZDesigner GC420d (EPL) used here has resolution 203 dpi, so 8 dots are equal to 1 mm (40 mils).
Full EPL language specification is available at https://www.zebra.com/us/en.html