home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 3.ddi / DEF / HPLASER3.DEF < prev    next >
Encoding:
Text File  |  1991-07-22  |  4.0 KB  |  97 lines

  1. BEGIN DDIF
  2. ------------------------------------------------------------------------
  3. -- DEVICE INFORMATION FILE for HP Laserjet III using HP-GL/2          --
  4. ------------------------------------------------------------------------
  5. ------------------------------------------------------------------------
  6. -- ******** Attention all programmers: you must document any ******** --
  7. -- ******** and all changes you make to this file at the top! ******* --
  8. ------------------------------------------------------------------------
  9.  
  10. -- COMMUNICATIONS PARAMETERS
  11. --   +-- commications port number  0        = use default file name below
  12. --   |                   1 to  4  = SERIAL ports COM1 to COM4 
  13. --   |                  -1 to -3  = PARALLEL ports LPT1 to LPT3
  14. --   |                  -4 to -6  = PARALLEL ports LPT1 to LPT3
  15. --   |                              (using direct, hardware I/O)
  16. --   |     SERIAL PORT PARAMETERS (default = 9600 baud, none, 1 stop, 8 data)
  17. --   |   +------------------------------------------- BAUD RATE   
  18. --   |   |  +------------------------------ PARITY     0 =  9600              
  19. --   |   |  |  +---------------- STOP BITS   0 = NONE  1 =   300           
  20. --   |   |  |  |  +-- DATA BITS   0 = 1         1 = EVEN  2 =  1200           
  21. --   |   |  |  |  |    0 = 8      1 = 1         2 = ODD   3 =  2400           
  22. --   |   |  |  |  |    7 = 7      2 = 2                4 =  4800           
  23. --   |   |  |  |  |    8 = 8                   5 =  9600           
  24. --   |   |  |  |  |                           6 = 19200           
  25. --   |   |  |  |  |                           7 = 38400           
  26. --   |   |  |  |  |                           8 = 57600
  27. --   v   v  v  v  v
  28. 101  2 
  29.  
  30. -- WARNING: This version of HPGL2 does not support 7 data bits!
  31.  
  32. -- DEFAULT FILE NAME  to use if communication port is '0' (above)
  33. -- and file name or port number is not given at plot time
  34. 19 PD_PLOT.LJ3
  35.  
  36. -- Paper sizes from the HP-GL/2 Product Comparison Guide
  37. 1  'A AY L LY X XY A4 A4Y ' -- Paper size names, in the order defined below
  38. 105 0  1 0  1 0  1  0   1 -- rotation flag for each paper size (1=rotated)
  39.  
  40. -- Paper size definitions (maximum 20 sizes, default size is line 201)
  41. --   lower-left  |  upper-right
  42. --     X      Y  |   X     Y
  43. --  ====== ====== ====== ======
  44. 201      0      0  10837   8297   -- A               (10.67 x 8.16 in.)
  45. 202      0      0   8297  10837   -- AY (rotated)    (8.16 x 10.67 in.)
  46. 203      0      0  13885   8297   -- Legal           (13.67 x 8.16 in.)
  47. 204      0      0   8297  13885   -- LY (rotated)    (8.16 x 13.67 in.)
  48. 205      0      0  10329   7027   -- X executive     (10.17 x 6.91 in.)
  49. 206      0      0   7027  10329   -- XY (rotated)    (6.91 x 10.17 in.)
  50. 207      0      0  11538   8060   -- A4              (11.35 x 7.93 in.)
  51. 208      0      0   8060  11538   -- A4Y (rotated)   (7.93 x 11.35 in.)
  52.  
  53. --  +--+----------- Smallest, largest pen numbers
  54. --  |  |  +-------- Do pen changing optimization  { good for plotters, }
  55. --  |  |  | +------ Do pen movement optimization  { bad for printers!  }
  56. --  V  V  V V
  57. 102 0 15  0 0           
  58.  
  59. --    +-----+------ X,Y plotter units per inch
  60. --    V     V
  61. 103 1016  1016
  62.  
  63.  
  64. 104 38           -- Max pen speed
  65.  
  66. -- PREDEFINED COMMAND STRINGS
  67. -- format for these must be as follows:
  68. --    +-- string name, up to eight characters, ending with a space
  69. --    |      +-- plotter commands up to 55 characters.  Any characters
  70. --    |      |   allowable, control codes must be formatted in '#n#'-style
  71. --    |      |   notation.  This data will be sent verbatim to the plotter
  72. --    |      |   so any base conversion or bias must already be incorporated
  73. --    v         v
  74. -- 'NAME     plotter command data'
  75.  
  76. 20 'RESET    #27#E'
  77. 21 'OFFLINE  NR;'
  78. 22 'FEED     PG;'
  79. 23 'DUPLEX   #27#&l1S'
  80. 24 'SIMPLEX  #27#&l0S'
  81. --25
  82. --26
  83. --27 
  84. --28
  85.  
  86. -- PREFIX AND SUFFIX STRINGS:
  87. -- data must be in quotes (single or double) names are case sensitive
  88. -- EXAMPLE:  'RESET "some plotter data" DUPLEX'
  89. -- NAME(s) of Predefined string(s) or data to send BEFORE PLOT
  90. --29  'DUPLEX'
  91. -- NAME(s) of Predefined string(s) or data to send AFTER PLOT
  92. --30  'SIMPLEX'
  93.  
  94. END DDIF
  95. END
  96.  
  97.