BarDIMM Pro & BarDIMM Box – Intelligent Barcode Printing System
©2004-2006 Jetmobile
Page 30
19- PCL Escape Sequences Examples
A valid PCL escape sequence to select a barcode is like the following:
<Esc>(s4p102h40v10,30b10,30s24670T
24670T
Symbology: code 39, not encoding spaces before/after data
4p
Readable text below bars, without start/stop chars(
*
)
102h
Caption text in Univers Regular
40v
Bars height: 40 points
40/72=0.555 inches
40*2.54/72=1.41 cm
10,30b
Thin bars are 10 dots wide, thick bars are 30 dots wide
10,30s
Thin spaces are 10 dots wide, thick spaces are 30 dots wide
Barcode Rotation:
To rotate a barcode, you can use regular PCL rotation commands. It is recommended you
save the cursor position before activating the barcode, and restore that position after the
barcode. Here is an example (sequences should be entered without carriage return):
<Esc>&fS
Save cursor position
<Esc>&a1000h1000V
Cursor positioning
<Esc>&a90P
90° rotation
<Esc>(s4p102h40v10,30b10,30s24670T
Select Barcode
JETMOBILEBARDIMM
Barcode Data
<Esc>(10U<Esc>(sp10hsb4099T
Switch back to Courier 10cpi font
<Esc>&aP
No more rotation
<Esc>&lf1S
Restore saved cursor position
Other Information
Permanent and secondary fonts switching can be used with barcode fonts. It is highly
recommended that a text font be used as primary font, and barcode font as secondary font.
(please refer to your PCL developer’s guide for all information on primary and secondary
fonts).
Complete sequences samples are available at
, in the FAQ section.
You will also find in that FAQ some links to PCL training guides.
Warning:
If barcodes are generated using a font-like sequence, they are still not PCL fonts.
Therefore, some limitation on font sequences apply:
- No font ID can be linked to a barcode
- BarDIMM barcodes cannot be used from HPGL2, Postscript or PCL6 languages