home *** CD-ROM | disk | FTP | other *** search
/ Piper's Pit BBS/FTP: ibm 0020 - 0029 / ibm0020-0029 / ibm0028.tar / ibm0028 / HPLINK.ZIP / PCLPRINT.TXT < prev    next >
Encoding:
Text File  |  1990-02-02  |  4.7 KB  |  115 lines

  1.  
  2.                               PCLPRINT.TXT File      
  3.  
  4.                    (c)  Hewlett-Packard Company, 1990
  5.  
  6.  
  7. OVERVIEW
  8. --------
  9.  
  10. The PCLPRINT library enables you to print a graphics object on a PCL
  11. printer, such as the HP ThinkJet, HP DeskJet, and HP LaserJet printers.
  12. When attached to the HOME directory, the library is named HPPRT.  (An
  13. {HPPRT} menu label is visible in the LIBRARY menu).  Two commands in the
  14. library, HPON and MAG, add an extra sublist of parameters as the fifth
  15. element in the HP 48 reserved variable PRTPAR.  These parameters store
  16. information needed by your HP 48 to print graphics objects to the PCL
  17. printer.  In order of occurrence in the sublist, the parameters are as
  18. follows:
  19.  
  20.   o  The real number 0, which indicates PCL printer type.  
  21.  
  22.   o  A real number, which represents the magnification.  This is controlled
  23.      by the MAG command and has a default setting of 2, which tells the
  24.      library to expand each pixel in the graphics object to a 2x2 square on
  25.      the printer.
  26.  
  27.   o  A string containing the escape sequence sent before a graphics object
  28.      is printed.  The default begin sequence is "<esc>*r0A", which tells
  29.      the printer to start printing raster graphics at the left margin.  The
  30.      only way to change this is to edit PRTPAR.
  31.  
  32.   o  A string containing the escape sequence sent after a graphics object is
  33.      printed.  The default end sequence is "<esc>*rB<cr><lf>", which tells
  34.      the printer to end raster graphics and execute a carriage-return and 
  35.      linefeed.  The only way to change this is to edit PRTPAR.
  36.  
  37.  
  38. PROCEDURE
  39. ---------
  40.  
  41. Here are the steps to follow to transfer the Library into your calculator and
  42. print an HP 48 graphics object on a PCL printer:
  43.  
  44.  1.  Transfer the PCLPRINT.LIB file from the computer to your calculator.  The
  45.      menu label {PCLPR} will appear in your HP 48 VAR menu.
  46.  
  47.  2.  Attach the library to your HOME directory:
  48.  
  49.        A.  Press the VAR menu label {PCLPR} to recall the library to the
  50.            stack.
  51.  
  52.        B.  Enter the port number where you want the library to reside--0,
  53.            1, or 2.
  54.  
  55.        C.  Execute STO.
  56.  
  57.        D.  Turn the HP 48 off and then on again.  {HPPRT} attaches itself and
  58.            appears as a library in the LIBRARY menu.
  59.  
  60.  3.  Using the serial cable 25-pin adapter and a male-male gender converter
  61.      (not included), connect the HP 48 to the PCL printer. 
  62.  
  63.  4.  Set the HP 48 baud (using the I/O SETUP menu) and the printer baud to
  64.      match each other. Set the printer to use XON/XOFF handshaking.
  65.  
  66.  5.  Execute HPON (press [left-shift][LIBRARY] {HPPRT} {HPON}).
  67.  
  68.  6.  Optionally execute MAG and DPI. (See descriptions of these commands
  69.      below.) 
  70.  
  71.  7.  Execute one of the HP 48 print commands for printing graphics objects--
  72.      PRLCD, PR1, or PRVAR. ([ON][PRINT] does not work and should be avoided.)
  73.  
  74.  8.  If you wish to switch back to printing on the HP 82240 Infrared Printer, 
  75.      execute HPOFF (press [left-shift][LIBRARY] {HPPRT} {HPOFF}).
  76.  
  77.  
  78. COMMAND SUMMARY
  79. ---------------
  80.  
  81. These commands are contained in the PCL library:
  82.  
  83.   o  HPON:  Enables special graphics printing and adds the previously
  84.      explained sublist to PRTPAR.  Also sets flag -34 and clears flag -33
  85.      so that printing is directed to the wired serial port, and modifies
  86.      IOPAR to enable transmit pacing (XON/XOFF) and to set parity to "none."
  87.  
  88.   o  HPOFF:  Disables special graphics printing and clears flag -34 (so
  89.      that printing will be directed to an HP 82240B printer).  HPOFF does not
  90.      change the sublist in PRTPAR--the magnification setting and other changes
  91.      are preserved for the next time you execute HPON.
  92.  
  93.   o  MAG:  Takes a real number from level 1 and puts it in the magnification
  94.      position in the sublist in PRTPAR.  A magnification of N causes one pixel
  95.      in the graphics object to be expanded to an NxN square on the printer.
  96.      (MAG 0 effectively disables printing.)
  97.  
  98.   o  DPI:  Takes a real number from level one and sends an escape sequence
  99.      to set the printer to that number of dots per inch.  This command only
  100.      works for the HP DeskJet and HP LaserJet printers.
  101.  
  102.  
  103. SPECIAL NOTE FOR THE HP LASERJET
  104. --------------------------------
  105.  
  106. Since the HP LaserJet printer won't print until it gets a whole page of
  107. data, you need to send a formfeed character (character number 12) to print
  108. a graphics object of less than one page.  You can do this by putting a
  109. string containing a formfeed character in level 1 and executing PR1.  (You
  110. can also edit the sublist in PRTPAR so that the end-sequence string
  111. contains a formfeed.  This would cause each graphics object to be printed
  112. on its own page.)
  113.  
  114.  
  115.