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

Select a pen width of 1.5 mm. Set the pen

, 4500,1800,3500,

down and draw a line from the current

1500,3500,2500;

position to (4500,2800), then (4500,1800),

 

next to (3500,1500), and then to

 

(3500,2500).

 

 

PW.8;PD2300,2900,

Set the pen width to .8 mm. Place the pen

2300,1900,3500,

down and print a line to (2300,2900), then

1500;

to (2300,1900), and finally to (3500,1500).

 

 

PW.5;PU2300,2900;

Set the pen width to .5 mm, lift the pen, and

PD3300,3200,4500,

move to (2300,2900). Set the pen down

2800;

and draw a line to (3300,3200) and then

 

another line to (4500,2800).

 

 

PW.25;PU4500,1800;

Set the pen width to .25 mm, lift the pen,

PD3500,2100;

and move to (4500,1800). Set the pen

 

down and print a line to (3500,2100).

 

 

22-30The Line and Fill Attributes Group

EN

Page 594
Image 594
HP 5961-0509 manual Example Using the PW Command, 22-30The Line and Fill Attributes Group