home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 9 / novell-nsepro-1992-vol09.iso / download / print.txt < prev    next >
Text File  |  1992-03-16  |  15KB  |  300 lines

  1.                                  SNA NOTE
  2.  
  3. SNA NOTE 3-129   3287 Host Printer Emulation
  4.  
  5. APPLIES TO:  Novell 3270 Printer Support
  6.  
  7. SUPERSEDES: 3-13, 3-22, 3-47, 3-55,and 3-102
  8.  
  9. DATE: November 6, 1990  
  10.  
  11. The printer support provided with Novell's multi session 3270 products
  12. allows a PC attached printer to serve as a host addressable 3287 printer. 
  13. The printer data stream may be sent to a printer directly attached to a
  14. workstation customized for a printer session, or redirected to another
  15. printer on the LAN.
  16.  
  17. The following information is a consolidation of NOTES regarding printer
  18. support.  It is not intended to be a substitute for the instructions in the
  19. Gateway and Workstation manuals.
  20.  
  21. HOST CUSTOMIZATION
  22. Bind Considerations
  23. Configure the host in the same way as for a real 3287 printer.  The device
  24. must be LU Type 1 or LU Type 3.  Certain bytes in the bind must be set as
  25. noted below or the Gateway will reject the bind.  The bind is a SNA message
  26. from the host to a terminal or PC that establishes the protocols that will
  27. be used to run the session.  (The IBM Information Display System 3174
  28. Control Unit Functional Description (GA23-0218) has further information
  29. about the bind.) 
  30.  
  31.      Byte 6; Bit 1 must be set to 0 (counting from 0 as the left most bit). 
  32. This byte refers to common protocols.  The Novell Gateway does NOT support:
  33.              - "Function management header exchange", which is a part of
  34.                the data stream in SNA architecture.  
  35.              - Extended data stream capabilities with LU Type 1.
  36.  
  37.      Byte 9; must be non zero for LU Type 1.  This byte refers to primary
  38. to secondary pacing count, which defines the number of RUs (request units)
  39. that may be received by the 3174 before a pacing response must be returned
  40. to indicate readiness for another block of RUs.
  41.  
  42.      Because the printer is slower than the displays, care must be
  43. exercised in this setting pacing so that waiting RUs and/or chains are not
  44. stacked in the 3174 link buffers.  During the transmission of multiple
  45. chains, the 3174 uses printer buffers as an extension of the link buffer
  46. pool and pacing is based on total buffer capacity.  If the printer buffer
  47. becomes full and outbound data is received faster than the data can be
  48. printed, a sense code of X'0801' will be received. 
  49.  
  50.      The setting of pacing count is closely associated with the setting of
  51. MRU (Maximum RU size).  Pacing Count (PC) is commonly set to 1, but the
  52. following formula described can be used to calculate it more exactly for
  53. better performance.
  54.  
  55.      Refer to LU Type 1 pacing and "RU Lengths"in the SNA chapter of the
  56. IBM 3174 Control Unit Functional Description for further information.
  57.  
  58.  
  59.  
  60.  
  61.                            
  62.                     BUFF-336 
  63.              MRU<   ---------   -13  
  64.                        PC      
  65.                            
  66. MRU is the smallest multiple of 256, greater than or equal to the maximum
  67. RU size specified in byte 11 of the bind.  
  68. PC is the pacing count specified in Byte 9 in the bind.
  69. BUFF is the device buffer size.  The gateway supports a buffer size of
  70. 4096.  For a channel attached 3174 the RU size is further constrained to a
  71. maximum of 1536 bytes.  A sense code of X'1002' will occur if the bind RU
  72. size is exceeded.
  73.  
  74. Changing the Default Page Length for the Printer
  75. Because the host normally overrides operator settings for page length on
  76. the 3287, the best way to change the default page length for the printer is
  77. to add an FCB image to the system image library.  The FCB image is then
  78. pointed to by the FCB parameter of the SYSOUT DD JCL statement for the
  79. system program that is handling the printing, such as VPS or TSO.  Building
  80. a FCB image and adding it to the image library is explained in detail in
  81. the OS/VS2 system Programming Library Data Management Manual.  This task is
  82. usually managed by the systems programmer.
  83.  
  84. Escape Codes
  85. For each printer to be used, enter the escape sequence for both 6 and 8
  86. Lines Per Inch. It is important to enter these escape sequences in the
  87. correct place; 
  88.      LPT 1-5 for parallel printers
  89.      COM 1-4 for serial printers
  90.  
  91. The LPT and COM selections available will depend upon whether the
  92. Workstation Control Program is customized for LOCAL or LAN printing.  While
  93. holding down the ALT key, enter the appropriate escape sequences from your
  94. printer's manual.  To avoid interjecting unwanted spaces into print output
  95. do not use the space bar to move through the field.  Use the delete key to
  96. clear the field if necessary.
  97.  
  98. The escape sequence fields are nine characters in length, thereby providing
  99. the ability to add multiple escape sequences in addition to those for 6 and
  100. 8 LPI.  For example, the escape codes for compressed print could be
  101. included.  As the control program checks the escape sequences every time it
  102. is about to print; it will then always print the 3287 datastream in
  103. compressed mode until the escape sequence is changed.
  104.  
  105. NOVELL SOFTWARE PRINTER CONTROL PANEL
  106. After the workstation control program is loaded, the Novell software
  107. Printer Control Panel can be accessed by the appropriate key combination
  108. (see the NetWare Workstation User's Guide).  This screen is an image of the
  109. left half of the front panel of a 3287 printer (the one IBM refers to as
  110. Stage 2), plus the selector switches from the right side of the panel.  All
  111. printer interactions should be done via this panel.  To make any
  112. adjustments ,such as changing paper, press the "hold print" button on the
  113. Novell Software Panel, not the "offline" switch on the printer itself.
  114.  
  115. When the software Printer Panel appears, it will show "LPT 1" in the upper
  116. left hand corner.   Use the page down key to scroll through the possible
  117. Lpt or Com selections until the correct printer assignment appears.  With a
  118. 101 keyboard, use alt/page down (on numeric key pad) to change to the
  119. proper printer.
  120.  
  121.  
  122. Changing Line Length 
  123. The default line (maximum presentation position) on both a real 3287 and
  124. Novell's printer emulation is 132 characters.  This can be increased to up
  125. to 255 characters for LU Type 1 (for Workstations prior to Version 2.0, PTF
  126. 216 is required).   The line length can be specified in the LU Type 1 data
  127. stream using the Set Horizontal Format sequence.  This process is described
  128. in detail in the IBM "3287 Printer Models 1 and 2 Component Description"
  129. document.
  130.  
  131. The line length can also be set via the software Printer Control Panel;
  132. however, the maximum length which can be set there is 199 characters.  To
  133. change the line length follow this procedure:      
  134.      1. Press "Hold Print" (2)
  135.      2. Press "Set Alter" (4)
  136.      3. Use the letters "C", "D", and "E" to enter in the desired line
  137.      length.  "C" corresponds to hundreds, "D" to tens, and "E" to units. 
  138.      If "C" is pressed the Status Indicator box will blink.  This means the
  139.      hundreds column is set.  If the box is not blinking, then the length
  140.      is less than 100.      
  141.      4. Press "Set Param" (B) to save the new number.
  142.      5. Press "Enable Print" (3)
  143.      6. Press Host "On" (1)
  144.  
  145. Changing Lines Per Page
  146. The selector switches on the software Printer Control Panel can be used for
  147. setting the number of lines per page.  Page length can be set between 1 and
  148. 99 lines; 6 lines per inch is standard for an 8 1/2 x 11 inch page. 
  149. Because the host can override operator settings, setting the lines per page
  150. or the line length basically is just a means of setting the defaults (e.g.,
  151. 66 lines per page, 132 characters per line).  Refer to the IBM 3287 Printer
  152. Manual mentioned above for a further description of controls, SCS format,
  153. etc.
  154.  
  155. Printer Status Codes
  156. Error conditions from the physical printer are indicated in the "STATUS
  157. INDICATOR" box on the software Printer Control Panel.  The Workstation
  158. software is made aware of these conditions by examining the "status byte"
  159. that can be read from an I/O port.  Parallel printers can indicate two
  160. distinct error conditions to the PC: temporary error condition (out of
  161. paper or printer offline) or permanent error condition (printer powered
  162. off).
  163.  
  164. Serial printers can indicate the same two conditions; however, this is
  165. dependant upon the make of the printer and the exact wiring of the serial
  166. cable.  In order for the workstation to receive and distinguish both
  167. conditions, the printer must support the indication of these through the
  168. use of two distinct RS232C pins and the cable must be wired so that these
  169. signals are delivered to the standard pins on the PC end.  (See SERIAL
  170. PRINTER CABLING below for details.)
  171.  
  172. When the physical printer runs out of paper or is switched offline, the
  173. Workstation Control Program starts a one minute timer.  At that time, the
  174. status indicator in the software Printer Control Panel changes to "01."  If
  175. the physical printer returns to a ready condition before the timer expires,
  176. no sense code is sent to the host and further host data is held off (by not
  177. acknowledging the data already received).  If the printer is still not
  178. ready when the timer expires, then an x'0802' INTERVENTION REQUIRED is sent
  179. to the host, and the indicator in software Printer Control Panel changes to
  180. "31".
  181.  
  182. When the "hold print" button is pressed on the software Printer Control
  183. Panel, a ten minute timer is started.  If the one minute timer mentioned
  184. above is already running, it is cancelled and replaced with the new ten
  185. minute timer.  However, the indicator on the Printer Control Panel
  186. continues to read "01".  Here again, further host data is held off.  If the
  187. ten minute timer expires without the "enable print" button being pressed on
  188. the Printer Control Panel, an x'0802' sense code is sent to the host, and
  189. the indicator in the software Printer Control Panel changes to "08".  if
  190. the "enable print" button is successfully pressed before the timer expires,
  191. then no sense code is sent to the host.  However, if the physical printer
  192. is still not ready, then an attempt to press the "enable print" button will
  193. be ignored and, when the ten minute timer expires, the x"0802" sense code
  194. will be sent.  Thus, the "hold print" button effectively extends the time
  195. available to load paper or otherwise make the physical printer ready
  196. (online), from one minute to ten minutes.
  197.  
  198. It is possible to change the duration of these timers by using the
  199. following debug routine: For LU Type 3:
  200.      C> pczap iprtlu3.exe
  201.  
  202.      Command => s 0 '26C747350100'
  203.      Match at offset X' 285E'.
  204.  
  205.      Command => s 0 '26C747350a00'
  206.      Match at offset X' 286A'.
  207.  
  208.      Command => v 285E '26C747350100'
  209.      Data verifies.
  210.  
  211.      Command => r '26C74735nn00'.
  212.      (nn is the replacement for the one minute timer.  May be a number
  213. between 01-FF minutes.)      Replace completed.
  214.  
  215.      Command => v '286A '26C747350A00'
  216.      Data verifies.
  217.  
  218.      Command => r '26C74735nn00'
  219.      (nn is the replacement for the ten minute timer.  May be a number
  220. between 01-FF minutes.)      Replace completed.
  221.  
  222.      Command => exit
  223.  
  224. For LU Type 1:
  225.      C> pczap iprtlu1.exe
  226.  
  227.      Command => s 0 '26c747350100'
  228.      Match at offset X' 2A4A'.
  229.  
  230.      Command => s 0 '26C747350A00' 
  231.      Match at offset X' 2A56'.
  232.  
  233.      Command => v 2A4A '26C747350100' 
  234.      Data verifies.
  235.  
  236.      Command => r '26C74735nn00'
  237.      (nn is the replacement for the one minute timer.  May be a number
  238. between 00-FF minute.      Data replaced.
  239.  
  240.      Command => v 2A56 '26C747350A00'
  241.      Data verifies.
  242.  
  243.      Command => r '26C74735nn00'
  244.      (nn is the replacement for the ten minute timer.  May be a number
  245. between 00-FF minutes.      Replace completed.
  246.      Command => exit
  247.  
  248. If EITHER the physical printer is powered off or the "On/Off" switch on the
  249. software Printer Control Panel is changed from "ON" (1) to "0ff" (0), then
  250. an x'0831' POWER OFF sense code is sent to the host immediately.  If it was
  251. the physical printer that was powered off, the indicator in the software
  252. Printer Panel changes to "45".
  253. If the "cancel print" button is pressed on the software Printer Control
  254. Panel, then an x '0811' sense code is sent to the host.
  255.  
  256. SERIAL PRINTER CABLING CONSIDERATIONS
  257. The following information should be taken into consideration when
  258. installing a serial printer. 1.   Whenever the printer is placed in "HOST"
  259. mode the following signals are turned "ON" (+3 Vdc at      the interface)
  260. and remain "ON" continuously until the printer is returned to "LOCAL" mode:
  261.             Return To Send           (pin 4)
  262.             Data Terminal Ready      (pin 20)
  263.      These pins may be cabled to any pins on the printer as
  264. required/desired (or to nothing).
  265.  
  266. 2.   The serial printer driver interrogates two signals as follows (the pin
  267. numbers are the PC's):             Clear To Send            (pin 5)
  268.             Data Set Ready           (pin 6)
  269.  
  270. 3.   CTS is used for the handshaking protocol (i.e., online/offline, paper
  271. out, etc.).  This pin should      be cabled to whichever pin on the printer
  272. provides this signal.      Novell's SNA products also support the Xon/Xoff
  273. handshaking protocol.  In this case CTS is      assumed to be always "ON"
  274. (provided either by the printer or by strapping the PC's RTS or DTR     
  275. (see 1. above) to CTS).  No customization changes are required to support
  276. Xon/Xoff.
  277.  
  278.      Novell's SNA products do NOT support the "break" handshaking protocol
  279. (available on some printers)!  Any breaks received are ignored.
  280.  
  281.      Some printers (e.g., GE/Genicom) can be configured to use different
  282. handshaking protocols for different conditions.  For example, a connector
  283. pin for online/offline, X-on/X-off for paper faults, and breaks for other
  284. error conditions.  Novell SNA products do NOT support this!  All error
  285. conditions must be reported via one protocol (either a pin voltage or X-
  286. ON/X-off).
  287.  
  288. 4.   DSR is used to detect printer power on/off.  If the printer provides a
  289. power on signal via a connector pin, that pin should be cabled to the PC's
  290. DSR.
  291.  
  292.      Not all printers have this feature.  If you are using one that does
  293. not, one of the output signals (see 1. above) should be strapped to DSR. 
  294. Not doing this will cause device POWER OFF (sense code x'0831'), as opposed
  295. to INTERVENTION REQUIRED (sense code x'0802'), to be reported to the host
  296. whenever the printer goes offline or runs out of paper.  This is not
  297. catastrophic, but may be undesirable. 
  298.  
  299.  
  300.