HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

23-60 The Character Group EN
z
Label 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.
Figure 23-32
Table 23-32 Example: Printing Text with the LB Command
E
C
E Reset the printer.
E
C
%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,
6,3,7,4148;SS;
Designate the 25-point Univers Bold font as
the standard font and select it.
LBThis is a Label.*; Prints “This is a Label.” in the currently
selected font.
E
C
%0A Enter the PCL mode.
E
C
E Send a reset to end the job and eject the
page.