DRAWING EQUAL-SIZE PICTURES ON A PAGE
For more information see the PCL 5 Printer Language
Technical Reference Manual.
LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT
EcE Resets the printer.
Ec&l1O Selects landscape
orientation.
Ec%0B Enters HP-GL/2 mode,
using the default picture
frame size and anchor
point.
IN; Initializes HP-GL/2 mode.
IP500,500,5450,7500; Sets P1 to (500,500) and
P2 to (5450,7500).
SC0,10,0,15; Sets up user-unit scaling
to range from (0,0) to
(10,15).
SP1; Selects pen number 1.
Even though there is no
physical pen, the SP
command must be used to
enable printing.
PA0,0; Begins 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; Inputs a new P1 and
allows P2 to
automatically follow it.
PA 0,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 Enters PCL Mode.
EcE Resets the Printer to
complete the job and
eject the page.
Copyright Hewlett-Packard Co. 1993
The information contained herein is subject to change
without notice.
Hewlett-Packard shall not be liable for incidental or
consequential damages in connection with the use of this
material.