Table 19-3 Example: Drawing Equal-Size Pictures on a Page

ECE

Reset the printer.

EC&l1O

Select landscape orientation.

EC%0B

Enter HP-GL/2 mode, using the

 

default picture frame size and anchor

 

point.

 

 

IN;

Initialize HP-GL/2 mode.

 

 

IP500,500,5450,7500;

Set P1 to be (500,500) and P2 to be

 

(5450,7500).

 

 

SC0,10,0,15;

Set up user-unit scaling to range from

 

(0,0) to (10,15).

 

 

SP1;

Select pen number 1. Even though

 

there is no physical pen, the SP

 

command must be used to enable

 

printing.

 

 

PA0,0;

Begin absolute plotting from the

 

origin (0,0).

 

 

PD10,0,10,15,0,15,0,0;PU;

Pen Down and print from (0,0) to

 

(10,0) to (10,15) to (0,15) to (0,0);

 

then Pen Up.

 

 

IP5550,500

Input a new P1 and allow P2 to

 

automatically track it.

 

 

PA0,0;

Begin absolute plotting from the new

 

origin.

 

 

PD10,0,10,15,0,15,0,0;PU;

Pen Down and print from (0,0) to

 

(10,0) to (10,15) to (0,15) to (0,0);

 

then Pen Up.

 

 

EC%0A

Enter PCL Mode.

ECE

Reset the printer to complete the job

 

and eject the page.

 

 

EN

Using Scaling Effectively 19-11

Page 425
Image 425
HP 5961-0509 Example Drawing Equal-Size Pictures on a, EC&l1O Select landscape orientation, Enter HP-GL/2 mode, using