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

EN PW, Pen Width 22-29
PW, Pen Width
This command specifies a new width for the logical pen. Subsequent
lines are drawn in this new width. Use PW to vary your lines and
enhance your drawings. Pen width can be specified as a fixed value
or relative to the distance between P1 and P2. The pen width units
are selected via the WU command (the default is metric-millimeters).
PW width[,pen;]
or
PW [;]
You may change the pen width as often as you like, without sending
another SP command. If the pen is down when you change the width,
the new width takes effect at the next line. If you use WU to change
the type of units used for the width parameter (metric or relative),
send the WU command before PW.
z No Parameters- Defaults the pen line width according to the
current units set by WU: 0.35 mm if metric; .1% of the diagonal
distance from P1 to P2 if relative.
z Width- Specifies the line width. When the parameter is zero, the
printer assumes the thinnest line width (1 dot wide).
Metric widths are scaled by the ratio of the size of the PCL
Picture Frame to the HP-GL/2 plot size. For example, if the
HP-GL/2 plot size is twice as large as the PCL Picture Frame,
“WU;PW.3;” sets the width of vectors to 0.15mm. (If the ratios
are different for the X and Y axes, the smaller ratio is used. If
the width is less than the thinnest available, then the thinnest
width is used.)
Parameter Format Functional Range Default
width clamped real -32768 to 32767 Dependent
1
1. Dependent on the mode set by the Pen Width Unit Selection (WU)
command: if mode is metric, default width is 0.35 mm; if mode is relative,
default width is 0.1% of the diagonal distance from P1 to P2.
pen integer 0 or 1 1 (Black)