In the following example, note that the PA (Plot Absolute) command specifies absolute plotting, and the coordinate pair (0,0) sets the beginning pen location.

Table 20-2 Example: Drawing Lines

ECE

Reset the printer.

EC%ØB

Enter HP-GL/2 mode.

IN;

Initialize HP-GL/2 mode.

 

 

SP1;

Select pen number 1 (black). You must

 

use the SP command to be able to print

 

HP-GL/2 images.

 

 

PA0,0;

Begin absolute plotting from coordinate (0,0).

 

 

PD2500,0,0,1500,0,0;

Specify Pen Down and draw lines between

 

the points.

 

 

EC%ØA

Enter the PCL mode.

ECE

Send a reset to end the job and eject the

 

page.

 

 

Figure 20-1 Drawing lines

EN

Drawing Lines 20-3

Page 463
Image 463
HP 5961-0509 manual Example Drawing Lines, Ec%Øb, Ec%Øa