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

22-20 The Line and Fill Attributes Group EN
The following example draws an electrical ground symbol using the
LA command.
Table 22-9 Example: Using the LA Command
?E Reset the printer.
?%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.
PA4000,3000; Specify absolute plotting and move the pen to
(4000,3000).
PW2;LA1,3;
PD3500,2500,
4000,2000;
Set the pen width to 2 mm; specify a triangular
line end, place the pen down, and draw from the
current location to (3500,2500), then to
(4000,2000).
PU3500,2500;
LA2,2,3,20;
PD3000,2500,
3000,2300;
Lift the pen and move to (3500,2500); set the
line join to mitered/beveled and the miter limit to
20; set the pen down and draw a line to
(3000,2500), then to (3000,2300).
PU2500,2300;
LA1,4;
PD3500,2300;
Lift the pen and move it to (2500,2300); specify
round line ends and draw a line to (3500,2300).
PU2700,2100;
PD3300,2100;
Lift the pen and move to (2700,2100), then set
the pen down and draw a line to (3300,2100).
PU2900,1900;
PD3100,1900;
Lift the pen and move to (2900,1900), then draw
a line to (3100,1900).
?%0A Enter the PCL mode.
?E Send a reset to end the job and eject the page.