HP PCL/PJL reference (PCL 5 Printer Language) - Technical Reference Manual Part II

EN Typical HP-GL/2 PlotCommand Sequence 18-5
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
E
C
*c#X
(Picture Frame Horizontal Size) and
E
C
*c#Y (Picture Frame
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
C
*c0T
(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
C
E
C
*c#K (Horizontal HP-GL/2
Plot Size) and
E
C
*c#L (Vertical HP-GL/2 Plot Size). This plot size
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
C
%#B command.
z Send HP-GL/2 commands (IN;SP1;. . .).
z Exit HP-GL/2 mode by sending the
E
C
%#A (Enter PCL Mode)
command.
z Send more PCL commands if desired or issue an
E
C
E command
to end the job and eject the page.
Note Whenever a printer reset (
E
C
E) is sent at the beginning of a job,
precede it with a UEL (
E
C
%–12345X) command; whenever a printer
reset is sent at the end of a job, follow it with a UEL command.