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

22-30 The Line and Fill Attributes Group EN
z
Pen- Specifies the pen number to which the new width applies. If
the pen parameter is not specified, the printer applies the width to
both pens. Specifying pen numbers other than 0 or 1 causes the
printer to ignore the command.
Note Pen width does not set the width of lines for drawing labels (unless
the stroke weight value is set to 9999 [Stick/Arc fonts only]). The width
of character lines is determined by the stroke weight attribute of the
Alternate Font Definition (AD) or Standard Font Definition (SD)
commands.
A PW command remains in effect until another PW command or a
WU command is executed. PW is not defaulted by the Default Values
(DF) command.
Table 22-14 Example: Using the PW 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.
PA3500,2500; Specify absolute plotting and move the pen
to (3500,2500).
PW1.5;PD4500,2800
, 4500,1800,3500,
1500,3500,2500;
Select a pen width of 1.5 mm. Set the pen
down and draw a line from the current
position to (4500,2800), then (4500,1800),
next to (3500,1500), and then to
(3500,2500).
PW.8;PD2300,2900,
2300,1900,3500,
1500;
Set the pen width to .8 mm. Place the pen
down and print a line to (2300,2900), then
to (2300,1900), and finally to (3500,1500).
PW.5;PU2300,2900;
PD3300,3200,4500,
2800;
Set the pen width to .5 mm, lift the pen, and
move to (2300,2900). Set the pen down
and draw a line to (3300,3200) and then
another line to (4500,2800).
PW.25;PU4500,1800;
PD3500,2100;
Set the pen width to .25 mm, lift the pen,
and move to (4500,1800). Set the pen
down and print a line to (3500,2100).