Note

 

In the examples in this chapter, the left column identifies the

 

 

command sequence data for the plot. If the label command text is too

 

 

wide for the column width, is it continued on a second line (which

 

 

might indicate a Carriage Return in the text). In actual use, the text

 

 

should be presented on one line, with no carriage-returns. If a

 

 

Carriage Return is required in the example, it is indicated as CR-LF.”

 

 

Table 23-2 Example: Printing Labels

 

 

 

 

 

 

 

 

ECE

Reset the printer.

 

 

EC%0B

Enter HP-GL/2 mode.

 

 

IN;

Initialize HP-GL/2 mode.

 

 

 

 

 

 

SP1;

Select pen number 1. Even though there

 

 

 

is no physical pen, the SP command must

 

 

 

be used to enable printing.

 

 

 

 

 

 

PA1500,2500;

Specify absolute plotting and move to

 

 

 

(1500,2500).

 

 

 

 

 

 

SD1,21,2,1,4,25,

Designate the 25-point Univers Italic font

 

 

5,1,6,0,7,52;

as the standard font.

 

 

 

 

 

 

DT*,1;

Define the asterisk character as the label

 

 

 

terminator (the 1 indicates the terminator

 

 

 

shouldn’t be printed).

 

 

 

 

 

 

SA;

Select the alternate font for printing. Since

 

 

 

an alternate font hasn’t been designated,

 

 

 

the default 11.5-point Stick font is

 

 

 

selected.

 

 

 

 

 

 

LBThis is the

Print the first line of text, followed by two

 

 

Stick Font Default)

Carriage Returns and two Line Feed

 

 

CR-LF CR-LF *;

control codes. Notice how the asterisk

 

 

 

terminates the label.

 

 

 

 

 

 

SS;

Select the standard font.

 

 

 

 

 

 

LBThis is Univers

Print the next line of text in the newly

 

 

Italic*;

specified font.

 

 

 

 

 

 

EC%0A

Enter the PCL mode.

 

 

ECE

Send a reset to end the job and eject the

 

 

 

page.

 

 

 

 

23-4The Character Group

EN

Page 616
Image 616
HP 5961-0509 manual Example Printing Labels, 23-4The Character Group