zLabel Terminator— Terminates the LB command. You must use the special label terminator (refer to the DT command) to tell the printer to exit the label mode. If you do not use the label terminator, everything following the LB mnemonic is printed in the label, including other commands. The default label terminator is the non-printing end-of-text character ETX (decimal code 3). You can define a different terminator using the DT command.

Table 23-32 Example: Printing Text with the LB Command

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.

 

 

 

PA2500,2500;

Move to absolute location (2500,2500).

 

 

 

DT*;

Specify the asterisk (*) as the label

 

terminator.

 

 

 

SD1,21,2,1,4,25,5,0,

Designate the 25-point Univers Bold font as

6,3,7,4148;SS;

the standard font and select it.

 

 

 

LBThis is a Label.*;

Prints “This is a Label.” in the currently

 

selected font.

 

 

 

EC%0A

Enter the PCL mode.

ECE

Send a reset to end the job and eject the

 

page.

 

 

 

 

 

 

 

 

 

Figure 23-32

23-60The Character Group

EN

Page 672
Image 672
HP 5961-0509 manual Example Printing Text with the LB Command, 23-60The Character Group