PCLPRINT
library enables you to print a graphics object
on a PCL
printer, such as the HP ThinkJet, HP DeskJet, and
HP LaserJet printers. When attached to the HOME
directory,
the library is named HPPRT.
(An |HPPRT|
menu
label is visible in the LIBRARY
menu). Two commands in the
library, HPON
and MAG,
add an extra sublist of
parameters as the fifth element in the HP 48 reserved variable
PRTPAR.
These parameters store information needed by your
HP 48 to print graphics objects to the PCL printer. In order of
occurrence in the sublist, the parameters are as follows:
MAG
command and has a default setting
of 2, which tells the library to expand each pixel in the graphics
object to a 2x2 square on the printer.
<esc>*r0A
", which tells the printer to start
printing raster graphics at the left margin. The only way to change
this is to edit PRTPAR
.
<esc>*rB<cr><lf>
," which tells the
printer to end raster graphics and execute a carriage-return and
linefeed. The only way to change this is to edit PRTPAR
.
PCLPRINT.LIB
file from the computer to
your calculator. The menu label |PCLPR|
will appear in
your HP 48 VAR
menu.
HOME
directory:
VAR
menu label |PCLPR|
to
recall the library to the stack.
STO
.
|HPPRT|
attaches itself and appears as a library in the
LIBRARY
menu.
PCLPR
in the
VAR
menu.
I/O SETUP
menu) and the
printer baud to match each other. Set the printer to use XON/XOFF
handshaking.
HPON
(press [RS]-[LIBRARY] |HPPRT|
|HPON|
).
MAG
and DPI
. (See
descriptions of these commands below.)
PRLCD
, PR1
, or
PRVAR
. ([ON]-[PRINT]
does not work and
should be avoided.)
HPOFF
(press [RS]-[LIBRARY]
|HPPRT| |HPOFF|
).
HPON
PRTPAR
. Also sets flag -34 and clears
flag -33 so that printing is directed to the wired serial
port, and modifies IOPAR
to enable transmit
pacing (XON/XOFF) and to set parity to "none."
HPOFF
HPOFF
does not change the sublist in
PRTPAR--the
magnification setting and other
changes are preserved for the next time you execute
HPON.
MAG
PRTPAR
. A
magnification of N causes one pixel in the graphics object to
be expanded to an NxN square on the printer.
(MAG 0 effectively disables printing.)
DPI
PR1
. (You can also edit the sublist in
PRTPAR
so that the end-sequence string contains a formfeed.
This would cause each graphics object to be printed on its own page.)
PCLPRINT.LIB
.
Note: This is a binary object.