beautypg.com

AMT Datasouth Codewriter 4500 Series User Manual

Page 87

background image

Applications Overview

77

Printing a Bar Code

Label Output

PAL Command Sequence

/Sans12.00pt findfont
12 scalefont
setfont
72 72 moveto
(Hello World!) show
72 68 moveto
144 68 lineto
30 30 moveto
258 30 lineto
258 258 lineto
30 258 lineto
closepath
stroke
72 90 moveto
90 rotate
(Hello World!) show
-90 rotate
100 100 moveto
(BARCODE123)
/Code39 _barcode

Hello World!

1 "

1 "

Hello World!

*BARCODE123*

1 _showpages

Purpose: Demonstrate how to print a bar code. This example builds on the previous
example by placing a bar code near the center of the label.
Moveto - Position the drawing cursor at the desired location
Position cursor at desired location for bar code.
(BARCODE123) – String object defining the barcode content.
The parentheses delimit the text string and are not part of the barcode. The actual bar
code value in this case is BARCODE123, i.e. parentheses not included.
_barcode – Place the specified bar code on the label
The type of bar code is referenced by a ‘/’ followed by the name of the bar code type. For
a list of supported bar codes, see
Table 8.

This manual is related to the following products: