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

EN Drawing Lines 20-3
In the following example, note that the PA (Plot Absolute) command
specifies absolute plotting, and the coordinate pair (0,0) sets the
beginning pen location.
Figure 20-1 Drawing lines
Table 20-2 Example: Drawing Lines
E
C
E
Reset the printer.
E
C
%ØB
Enter HP-GL/2 mode.
IN;
Initialize HP-GL/2 mode.
SP1;
Select pen number 1 (black). You must
use the SP command to be able to print
HP-GL/2 images.
PA0 ,0;
Begin absolute plotting from coordinate (0,0).
PD2500,0,0,1500,0,0;
Specify Pen Down and draw lines between
the points.
E
C
%ØA
Enter the PCL mode.
E
C
E
Send a reset to end the job and eject the
page.