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;

Set the pen width to 2 mm; specify a triangular

PD3500,2500,

line end, place the pen down, and draw from the

4000,2000;

current location to (3500,2500), then to

 

(4000,2000).

 

 

PU3500,2500;

Lift the pen and move to (3500,2500); set the

LA2,2,3,20;

line join to mitered/beveled and the miter limit to

PD3000,2500,

20; set the pen down and draw a line to

3000,2300;

(3000,2500), then to (3000,2300).

 

 

PU2500,2300;

Lift the pen and move it to (2500,2300); specify

LA1,4;

round line ends and draw a line to (3500,2300).

PD3500,2300;

 

 

 

PU2700,2100;

Lift the pen and move to (2700,2100), then set

PD3300,2100;

the pen down and draw a line to (3300,2100).

 

 

PU2900,1900;

Lift the pen and move to (2900,1900), then draw

PD3100,1900;

a line to (3100,1900).

 

 

?%0A

Enter the PCL mode.

 

 

?E

Send a reset to end the job and eject the page.

 

 

22-20The Line and Fill Attributes Group

EN

Page 584
Image 584
HP 5961-0509 manual Example Using the LA Command, LA1,4, PD3100,1900 Line to 3100,1900 ?%0A Enter the PCL mode