BEGIN DDIF
------------------------------------------------------------------------
-- DEVICE INFORMATION FILE for HP Laserjet III using HP-GL/2          --
------------------------------------------------------------------------
------------------------------------------------------------------------
-- ******** Attention all programmers: you must document any ******** --
-- ******** and all changes you make to this file at the top! ******* --
------------------------------------------------------------------------

-- COMMUNICATIONS PARAMETERS
--   +-- commications port number  0        = use default file name below
--   |				   1 to  4  = SERIAL ports COM1 to COM4 
--   |				  -1 to -3  = PARALLEL ports LPT1 to LPT3
--   |				  -4 to -6  = PARALLEL ports LPT1 to LPT3
--   |				              (using direct, hardware I/O)
--   |	 SERIAL PORT PARAMETERS (default = 9600 baud, none, 1 stop, 8 data)
--   |   +------------------------------------------- BAUD RATE   
--   |   |  +------------------------------ PARITY     0 =  9600	          
--   |   |  |  +---------------- STOP BITS   0 = NONE  1 =   300           
--   |   |  |  |  +-- DATA BITS   0 = 1	     1 = EVEN  2 =  1200           
--   |   |  |  |  |    0 = 8	  1 = 1	     2 = ODD   3 =  2400           
--   |   |  |  |  |    7 = 7	  2 = 2	 	       4 =  4800           
--   |   |  |  |  |    8 = 8			       5 =  9600           
--   |   |  |  |  |			               6 = 19200           
--   |   |  |  |  |			               7 = 38400           
--   |   |  |  |  |        			       8 = 57600
--   v   v  v  v  v
101  2 

-- WARNING: This version of HPGL2 does not support 7 data bits!

-- DEFAULT FILE NAME  to use if communication port is '0' (above)
-- and file name or port number is not given at plot time
19 PD_PLOT.LJ3

-- Paper sizes from the HP-GL/2 Product Comparison Guide
1  'A AY L LY X XY A4 A4Y ' -- Paper size names, in the order defined below
105 0  1 0  1 0  1  0   1 -- rotation flag for each paper size (1=rotated)

-- Paper size definitions (maximum 20 sizes, default size is line 201)
--   lower-left  |  upper-right
--     X      Y  |   X     Y
--  ====== ====== ====== ======
201      0      0  10837   8297   -- A               (10.67 x 8.16 in.)
202      0      0   8297  10837   -- AY (rotated)    (8.16 x 10.67 in.)
203      0      0  13885   8297   -- Legal           (13.67 x 8.16 in.)
204      0      0   8297  13885   -- LY (rotated)    (8.16 x 13.67 in.)
205      0      0  10329   7027   -- X executive     (10.17 x 6.91 in.)
206      0      0   7027  10329   -- XY (rotated)    (6.91 x 10.17 in.)
207      0      0  11538   8060   -- A4              (11.35 x 7.93 in.)
208      0      0   8060  11538   -- A4Y (rotated)   (7.93 x 11.35 in.)

--  +--+----------- Smallest, largest pen numbers
--  |  |  +-------- Do pen changing optimization  { good for plotters, }
--  |  |  | +------ Do pen movement optimization  { bad for printers!  }
--  V  V  V V
102 0 15  0 0           

--    +-----+------ X,Y plotter units per inch
--    V     V
103 1016  1016


104 38           -- Max pen speed

-- PREDEFINED COMMAND STRINGS
-- format for these must be as follows:
--    +-- string name, up to eight characters, ending with a space
--    |      +-- plotter commands up to 55 characters.  Any characters
--    |      |   allowable, control codes must be formatted in '#n#'-style
--    |      |   notation.  This data will be sent verbatim to the plotter
--    |      |   so any base conversion or bias must already be incorporated
--    v	     v
-- 'NAME     plotter command data'

20 'RESET    #27#E'
21 'OFFLINE  NR;'
22 'FEED     PG;'
23 'DUPLEX   #27#&l1S'
24 'SIMPLEX  #27#&l0S'
--25
--26
--27 
--28

-- PREFIX AND SUFFIX STRINGS:
-- data must be in quotes (single or double) names are case sensitive
-- EXAMPLE:  'RESET "some plotter data" DUPLEX'
-- NAME(s) of Predefined string(s) or data to send BEFORE PLOT
--29  'DUPLEX'
-- NAME(s) of Predefined string(s) or data to send AFTER PLOT
--30  'SIMPLEX'

END DDIF
END

