home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p120 / 3.ddi / DEF / HPGL2.DEF < prev    next >
Encoding:
Text File  |  1991-09-24  |  5.0 KB  |  112 lines

  1. BEGIN DDIF
  2. ------------------------------------------------------------------------
  3. -- DEVICE INFORMATION FILE for Generic HP-GL/2 plotter devices        --
  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.HP2
  35.  
  36. -- Paper sizes from the HP-GL/2 Product Comparison Guide
  37. -- Paper size names, in the order defined below
  38. 1  'A AY B C CY D DY E A4 A4Y A3 A2 A2Y A1 A1Y A0 PJA PJB PJA4 PJA3 '  
  39. -- rotation flag for each paper size (1=rotated)
  40. 105 0  1 0 0 1  0  1 0  0   1  0  0   1  0   1  0   0   0    0    0    
  41.  
  42. -- Paper size definitions (maximum 20 sizes, default size is line 201)
  43. --   lower-left  |  upper-right
  44. --     X      Y  |   X     Y
  45. --  ====== ====== ====== ======
  46. 201      0      0   8936   7356   -- A               ( 8.80 X  7.24 in.)
  47. 202      0      0   6396   9896   -- AY  (rotated)   ( 6.30 x  9.74 in.)
  48. 203      0      0  15032   9896   -- B               (14.80 x  6.30 in.)
  49. 204      0      0  21072  15032   -- C               (20.74 x 14.80 in.)
  50. 205      0      0  15032  21072   -- CY  (rotated)   (14.80 x 20.74 in.)
  51. 206      0      0  32304  21072   -- D               (31.80 x 20.72 in.)
  52. 207      0      0  20112  33264   -- DY  (rotated)   (19.80 x 32.74 in.)
  53. 208      0      0  42464  33264   -- E               (41.80 x 32.74 in.)
  54. 209      0      0   9640   7120   -- A4              ( 9.49 x  7.01 in.)
  55. 210      0      0   6160  10600   -- A4Y (rotated)   ( 6.06 x 10.43 in.)
  56. 211      0      0  14560  10600   -- A3              (14.33 x 10.43 in.)
  57. 212      0      0  22480  14560   -- A2              (22.13 x 14.33 in.)
  58. 213      0      0  14560  22480   -- A2Y (rotated)   (14.33 x 22.13 in.)
  59. 214      0      0  31400  22480   -- A1              (30.91 x 22.13 in.)
  60. 215      0      0  21520  32360   -- A1Y (rotated)   (21.18 x 31.85 in.)
  61. 216      0      0  45320  32360   -- A0              (44.61 x 31.85 in.)
  62. 217      0      0  10894   8303   -- PJA             (10.72 x 8.17 in.)
  63. 218      0      0  16871  10832   -- PJB             (16.61 x 10.66 in.)
  64. 219      0      0  11594   8122   -- PJA4            (11.41 x 7.99 in.)
  65. 220      0      0  16397  11193   -- PJA3            (16.14 x 11.02 in.)
  66.  
  67. --  +--+----------- Smallest, largest pen numbers
  68. --  |  |  +-------- Do pen changing optimization  { good for plotters, }
  69. --  |  |  | +------ Do pen movement optimization  { bad for printers!  }
  70. --  V  V  V V
  71. 102 0 15  1 1
  72.  
  73. --    +-----+------ X,Y plotter units per inch
  74. --    V     V
  75. 103 1016  1016
  76.  
  77.  
  78. 104 38           -- Max pen speed
  79.  
  80. -- PREDEFINED COMMAND STRINGS
  81. -- format for these must be as follows:
  82. --    +-- string name, up to eight characters, ending with a space
  83. --    |      +-- plotter commands up to 55 characters.  Any characters
  84. --    |      |   allowable, control codes must be formatted in '#n#'-style
  85. --    |      |   notation.  This data will be sent verbatim to the plotter
  86. --    |      |   so any base conversion or bias must already be incorporated
  87. --    v         v
  88. -- 'NAME     plotter command data'
  89.  
  90. 20 'RESET    #27#E'
  91. 21 'OFFLINE  NR;'
  92. 22 'FEED     PG;'
  93. 23 'HPGL2ON  #27#%-1B'
  94. 24 'HPGL2OFF #27#%A'
  95. --25
  96. --26
  97. --27 
  98. --28
  99.  
  100. -- PREFIX AND SUFFIX STRINGS:
  101. -- data must be in quotes (single or double) names are case sensitive
  102. -- EXAMPLE:  'RESET "some plotter data" DUPLEX'
  103. -- NAME(s) of Predefined string(s) or data to send BEFORE PLOT
  104. 29  'HPGL2ON'
  105. -- NAME(s) of Predefined string(s) or data to send AFTER PLOT
  106. 30  'HPGL2OFF'
  107.  
  108. END DDIF
  109. END
  110.  
  111.  
  112.