

Customization › TCP/IP PrintDirect › LPR PCL5 Print Driver
LPR PCL5 Print Driver
Not all HP LaserJet-compatible printers have PJL support. To better utilize these non-PJL printers, specify PCL based automatic print formatting.
Activate this support by specifying TCPDRIV=PCL5 on the printer node definition; this does the following:
- Performs the same functions as the standard LPR printer driver
- If the F—auto format print driver option is specified using TCPDRIV, the following happens after the ESFU010X start separator exit call, but before the data file is sent:
- A PCL RESET command is sent.
- For both binary and text files, if the FORM PCL resource is found in the PCLLIB library, it is sent before the data file.
If the FORM resource is not found in PCLLIB, the file class is checked for simplex/duplex specification. If the file class is S, a Simplex print PCL command is added. If the file class is D, a Duplex print PCL command is added.
- FCB for text files:
If the FCB PCL resource is found in the PCLLIB library, it is sent. If the FCB resource is not found, formatting PCL commands are automatically built and sent based on the following algorithms:
- If no Max Print Position (MPP) is specified through the FCB extension and the LRECL of the file is less than 319, this LRECL is used as the MPP.
- If no Characters Per Inch (CPI) value is specified through the CHARS parameter or the FCB extension, the CPI defaults to 12 if the MPP is less than or equal to 90; if the MPP is greater than 90, the CPI is calculated as MPP/10.0.
- If MPP/CPI is less than 7.20, a portrait orientation PCL command is sent; otherwise a Landscape Orientation PCL command is sent; otherwise a Landscape Orientation PCL command is sent.
- For text files, the default maximum number of lines per page (MPL) is the number of lines per page in the FCB. For NOCC files with a LINECOUNT parameter specified, the MPL is the LINECOUNT value.
- A line spacing PCL command is sent to best match the current MPL.
- CHARS for text files:
Only the first CHARS in the CHARS set is used by the TCP/IP PCL5 print driver. If this CHARS PCL resource is found in the PCLLIB library, it is sent. If the CHARS resource is not found in PCLLIB, font selection PCL commands are automatically built and sent based on the following values:
|
Value
|
Font
|
|
CB00 to CB29
|
4099 Courier Bold
|
|
CE00 to CE29
|
4099 Courier
|
|
CI00 to CI29
|
4099 Courier Italic
|
|
CR00 to CR29
|
4099 Courier
|
|
GB00 to GB29
|
4099 Courier Bold
|
|
GL00 to GL29
|
4099 Courier
|
|
GT00 to GT29
|
4099 Courier
|
|
OB00 to OB29
|
4102 Letter Gothic Bold
|
|
OR00 to OR29
|
4102 Letter Gothic
|
|
PR00 to PR29
|
4099 Courier
|
|
RT00 to RT29
|
4099 Courier Bold
|
|
SI00 to SI29
|
4099 Courier Italic
|
|
ST00 to ST29
|
4099 Courier
|
|
LP17
|
0000 Line Printer 16.67/8.5
|
Other values produce unpredictable results.
- The value of the last two numeric characters is used as the CPI (pitch).
- PCL commands are sent to select the requested primary font family, (pitch, style, and stroke) and to select the symbol set Windows 3.1, Latin 1.
- A PCL RESET command is sent after the data file and before the ESFU010X end separator page exit call.
Notes:
- The PCL resources searched in PCLLIB are the file's FORM, FCB, and CHARS values prefixed with 'FORM', 'FCB2', and 'CHAR' respectively. Therefore, if a file is created with FORM=STD, FCB=8, and CHARS=CR12, the matching resource names in PCLLIB are 'FORMSTD', 'FCB28', and 'CHARCR12' respectively.
- A PCL resource member must contain valid PCL commands in EBCDIC preceded by an EBCDIC escape character (<esc>=X'27'). For example, when FCB=6 is a file attribute, you can add the PCL resource member FCB26 to the PCLLIB library, as follows:
<esc>&l0O
<esc>&l6D
- To support different printer capabilities, a PCL resource member can contain multiple sets of PCL commands selected by the device type of the printer node. These PCL command sets must be separated and identified by special DEVICE=device type statements. For example, enter the default PCL command set first, followed by a special PCL command set for device type 'HPLJ5SI':
<esc>&l0O
<esc>&l6D
DEVICE=HPLJ5SI
<esc>&l0O
<esc>&l8D
Copyright © 2015 CA Technologies.
All rights reserved.
 
|
|