AMT Datasouth 4500 Series manual Label OutputPAL Command Sequence, Hello World

Models: 4500 Series

1 94
Download 94 pages 29.62 Kb
Page 82
Image 82

Applications Overview

Printing Text on a Label

Label OutputPAL Command Sequence

/Sans12.00pt findfont

12 scalefont setfont

72 72 moveto

(Hello World!) show

1 _showpages

Hello World!

1 "

1 "

Purpose: Demonstrate how to print simple text on a label.

findfont - Establish the font to use

The fontname is preceded by a “/”. In this example, a Sans Serif 12 point font was chosen. See Table 7 for supported fonts.

scalefont – Scale the selected font’s size in points

It is typical to use the value indicated in the selected font. In this example, since Sans12.00pt was the selected font, the scaling was set to 12. Optionally, the command may be used to scale the font to a different size (e.g. 13 or 11)

setfont - Set the current font to the scaled font defined by the scalefont operator This font will be used for all subsequent text unless another font is chosen.

moveto - Position the drawing cursor at the desired location

Moves the cursor position 1 inch to the right and 1 inch from the bottom (see box on next page for description of coordinate system).

show – Place the text on the label

The text to be printed is enclosed by parentheses. The lower left-hand corner of the text is placed at the current cursor position. In this example the cursor position is established with the moveto command as described above.

_showpages - Print the created label

The “1” in the example indicates that one label is to be printed. If printing 10 labels, the command would be 10 _showpages.

72

Page 82
Image 82
AMT Datasouth 4500 Series manual Label OutputPAL Command Sequence, Hello World