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

  1.  
  2.                                EPSPRINT.TXT File      
  3.  
  4.                     (c)  Hewlett-Packard Company, 1990
  5.  
  6.  
  7. OVERVIEW
  8. --------
  9.  
  10. The EPSPRINT library enables you to print a graphics object on an Epson
  11. serial printer, such as the FX-80 and FX-85 printers.  When attached to the
  12. HOME directory, the library is named EPPRT.  (An {EPPRT} menu label is
  13. visible in the LIBRARY menu.)  Two commands in the library, EPON and MAG,
  14. add an extra sublist of parameters as the fifth element in the HP 48
  15. reserved variable PRTPAR.  These parameters store information needed by
  16. your HP 48 to print graphics objects to the Epson printer.  In order of
  17. occurrence in the sublist, they are as follows:
  18.  
  19.   o  The real number 1, which indicates Epson printer type.  
  20.  
  21.   o  A real number (1, 2, or 4), which represents the magnification.  This
  22.      is controlled by the MAG command and has a default setting of 2, which
  23.      tells the library to expand each pixel in the graphics object to a 2x2
  24.      square on the printer.
  25.  
  26.   o  A string containing the escape sequence sent before a graphics object
  27.      is printed.  The default begin sequence is "<esc>A<08>", which tells
  28.      the printer to set its line spacing to 8 dot rows.  The only way to
  29.      change this is to edit PRTPAR. 
  30.  
  31.   o  A string containing the escape sequence sent after a graphics object is
  32.      printed.  The default end sequence is "<esc>2", which sets the printer
  33.      to its default state of 6 lines per inch.  The only way to change this
  34.      is to edit PRTPAR. 
  35.  
  36.   o  A string containing the escape sequence sent before each line of
  37.      graphics data.  This sequence, which specifies the density of the
  38.      graphics, defaults to "<esc>K", telling the printer to do single-
  39.      density graphics.  The possible density sequences are as follows:
  40.  
  41.           <esc>K     Single density (60 DPI) graphics.  
  42.  
  43.           <esc>L     Double density (120 DPI) graphics. 
  44.  
  45.           <esc>Y     High-speed, double density (120 DPI) graphics. This
  46.                      setting has some restriction on the data printed.  
  47.  
  48.           <esc>Z     Quadruple density (240 DPI) graphics.  This setting
  49.                      has some restrictions on the data printed.  
  50.  
  51.      The only way to change the default sequence of <esc>K is to edit PRTPAR.
  52.  
  53.  
  54. PROCEDURE
  55. ---------
  56.  
  57. Here are the steps to follow to transfer the Library into your calculator and
  58. print an HP 48 graphics object on an Epson compatible printer:
  59.  
  60.  1.  Transfer the EPSPRINT.LIB file from the computer to your calculator.  The
  61.      menu label {EPSPR} will appear in your HP 48 VAR menu.
  62.  
  63.  2.  Attach the library to your HOME directory:
  64.  
  65.        A.  Press the VAR menu label {EPSPR} to recall the library to the
  66.            stack.
  67.  
  68.        B.  Enter the port number where you want the library to reside--0,
  69.            1, or 2.
  70.  
  71.        C.  Execute STO.
  72.  
  73.        D.  Turn the HP 48 off and then on again.  {EPPRT} attaches itself and
  74.            appears as a library in the LIBRARY menu.
  75.  
  76.  3.  Using the serial cable 25-pin adapter and a male/male converter (not
  77.      included), connect the HP 48 to the Epson printer.  
  78.  
  79.  4.  Set the HP 48 baud (using the I/O SETUP menu) and the printer baud to
  80.      match each other. Set the printer to use XON/XOFF handshaking.
  81.  
  82.  5.  Execute EPON (press [left-shift][LIBRARY] {EPPRT} {EPON}).
  83.  
  84.  6.  Optionally execute MAG. (See the description of MAG below.) 
  85.  
  86.  7.  Execute one of the HP 48 print commands for printing graphics objects--
  87.      PRLCD, PR1, or PRVAR. ([ON][PRINT] does not work and should be avoided.)
  88.  
  89.  8.  If you wish to switch back to printing on the HP 82240 Infrared Printer, 
  90.      execute EPOFF (press [left-shift][LIBRARY] {EPPRT} {EPOFF}).
  91.  
  92.  
  93. COMMAND SUMMARY
  94. ---------------
  95.  
  96. These commands are contained in the PCL library:
  97.  
  98.   o  EPON:  Enables special graphics printing and adds the previously
  99.      explained sublist to PRTPAR.  Also sets flag -34 and clears flag -33
  100.      so that printing is directed to the wired serial port, and modifies
  101.      IOPAR to enable transmit pacing (XON/XOFF) and to set parity to "none."
  102.  
  103.   o  EPOFF:  Disables special graphics printing and clears flag -34 (so
  104.      that printing will be directed to an HP 82240B printer).  EPOFF does not
  105.      change the sublist in PRTPAR--the magnification setting and other changes
  106.      are preserved for the next time you execute EPON.
  107.  
  108.   o  MAG:  Takes a real number from level 1 and puts it in the magnification
  109.      position in the sublist in PRTPAR.  Allowable arguments are 1, 2, or 4
  110.      (the sign is ignored).  A magnification of N causes one pixel in the
  111.      graphics object to be expanded to an NxN square on the printer. 
  112.  
  113.