Typical HP-GL/2 PlotCommand Sequence

Before we discuss the actual commands and how they operate, we will demonstrate the general sequence in which these commands are used to print HP-GL/2 files.

The following command sequence is usually followed when creating HP-GL/2 images:

z Send the job control and page control commands, and any other PCL commands that you wish to send before drawing the HP-GL/2 image. (See Chapters 3, 4, and 5 for job control and page control information.)

 

z Specify the PCL Picture Frame dimensions using the EC*c#X

 

 

(Picture Frame Horizontal Size) and E *c#Y (Picture Frame

 

 

C

 

 

Vertical Size) commands. These commands determine the

 

 

boundary of the window in which you place or draw your image.

 

 

The PCL Picture Frame represents the maximum boundary for

 

 

your HP-GL/2 drawing.

 

z

Specify the picture frame anchor point using the E *c0T

 

 

C

 

 

(Set Picture Frame Anchor Point) command. This command

 

 

determines the position on the logical page where the upper

 

 

left corner of the PCL Picture Frame is placed. Receipt of this

 

 

command establishes the PCL picture frame anchor point at

 

 

the PCL current cursor position.

 

z If importing an existing plot, defined in absolute units, specify

 

 

the HP-GL/2 plot size using the E E *c#K (Horizontal HP-GL/2

 

 

C C

 

 

Plot Size) and E *c#L (Vertical HP-GL/2 Plot Size). This plot size

 

 

C

 

 

represents the size of the original HP-GL/2 image. If you are

 

 

creating a drawing within an application, do not send these

 

 

commands.

 

z

Enter HP-GL/2 mode using the E %#B command.

 

 

C

 

z Send HP-GL/2 commands (IN;SP1;. . .).

 

z Exit HP-GL/2 mode by sending the EC%#A (Enter PCL Mode)

 

 

command.

 

z Send more PCL commands if desired or issue an ECE command

 

 

to end the job and eject the page.

 

Whenever a printer reset (E E) is sent at the beginning of a job,

Note

 

 

C

precede it with a UEL (EC%–12345X) command; whenever a printer reset is sent at the end of a job, follow it with a UEL command.

EN

Typical HP-GL/2 PlotCommand Sequence 18-5

Page 401
Image 401
HP 5961-0509 manual Typical HP-GL/2 PlotCommand Sequence