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

EN CP, Character Plot 23-27
PA5000,2500;
PD1500,2500;
PU;
Specify absolute plotting and move to
(5000,2500); set the pen down and draw
a line to (1500,2500); lift the pen.
CP5,.35; Move the pen 5 spaces to the right and .35
lines up so that the label is placed just above
the line.
DT$,1; Define a label terminator ($) and specify that
it does not print.
SD1,21,2,1,4,14,5,
0,6,3,7,4148;SS;
Designate a 14-point Univers Bold font and
select it.
LBABOVE THE
LINE$;
Print the first line of text. The label text is
shown on two lines due to the column width
restriction. When coding a single line label, it
should all be placed on one line.
PA2500,2500;
WG20,0,360;
Move the pen to (2500,2500) and draw a dot
marking the new Carriage Return point (360°
black-filled wedge with a diameter of 20 plu).
CP0,-.95 LBBELOW
THE LINECR-LF
WITH A NEAT$;
Print the second line; Carriage Return-Line
Feed; print the third line.
CP;LBMARGIN$; Print the fourth line. Notice how the CP
command without parameters functions as
a CR-LF.
E
C
%0A Enter the PCL mode.
E
C
E Send a reset to end the job and eject the
page.
Table 23-10 Example: Using the CP Command