Seite -21-
PCL Escape Sequences Examples
A typical ESC-Sequence to select a particular barcode could be:
<27>(s4p102h40v10,30b10,30s24670T
4p
Readable text below the codes, without start-stop-sign (*)
102h
Readable text in Univers normal
40v
The code size is 40pt; 40 / 72 * 2,54 cm
10,30b The small stroke bar is 10dots, the wide 30dots 10/600* 2,54 cm
10,30s The small space bar is 10dots, the wide 30dots 10/600* 2,54 cm
24670T Use Code 39 (3of9)
Normally you want to print the code at a special position in a special orientation and you
certainly want to return to the last printing position. Therefore you may need to send the
following sequences to the printer:
<27>&fS
Push cursor position (save)
<27>&a5000h2000V
Positioning in 1/720 units per inch
<27>&a90P
Rotate 90 degrees*
<27>(s4p102h40v10,20b10,20s24670T Select barcode
<27>(10U<27>(sp10hsb4099T
Select any font from PCL font list
<27>&aP
Original printing direction*
<27>&f1S
Pop cursor position (restore)
If you want to print the code in the current print direction, please leave out the *-marked
commands.
Permanent and secondary fonts switching can be used with barcode fonts. It is highly
recommended that a text font is used as primary font, and barcode font as secondary font.
(please refer to your PCL guide for all information on primary and secondary fonts).
Note:
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
- Barcode module barcodes can not be used from HPGL2 language
- Barcode module barcodes can not be used from PCL 6
Содержание T9114
Страница 29: ...Seite 29 Barcode Testpage...
Страница 30: ...Seite 30...