HP D640 Tech Manual
HP D640 Tech Manual
Hewlett-Packard Company
C5630-90030
E1098
Notice
Hewlett-Packard makes no warranty of any kind with regard to this material, including,
but not limited to, the implied warranties of merchantability and fitness for a particular
purpose. Hewlett-Packard shall not be liable for errors contained herein or for
incidental or consequential damages in connection with the furnishing, performance, or
use of this material.
Hewlett-Packard assumes no responsibility for the use or reliability of its software on
equipment that is not furnished by Hewlett-Packard.
This document contains proprietary information which is protected by copyright. All
rights are reserved. No part of this document may be photocopied, reproduced, or
translated to another language without the prior written consent of Hewlett-Packard
Company. The information contained in this document is subject to change without
notice.
Printing History
The dates on the title page change only when a new edition is published.
Edition 2.0. . . . . . . . . . . . . . .October 1998
Copyright ©1998 Hewlett-Packard Company
All rights reserved.
October 1998
Please address any comments or questions to:
Publications Manager
System Peripherals Operation
HP D640 Printers - MS 44MC
Hewlett-Packard Company
19111 Pruneridge Avenue
Cupertino, CA 95014
ii
Contents
1. Introduction
Other D640 Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2. Printing Options
Custom Paper Sizes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
At the Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
In Your Print Job . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Media Eject Length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Page Width . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Select Custom Paper . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Paper Output Trays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
PCL and PJL Output Commands . . . . . . . . . . . . . . . . . . . . . . . . 5
Example Paper Handling Configurations . . . . . . . . . . . . . . . . . . 6
Edge to Edge Printing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Working with Multiple Copies. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
CCITT Groups 3 and 4 Decompression. . . . . . . . . . . . . . . . . . . . . . 13
Image Position. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
LaserJet Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Paper Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Example Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Paper Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Internal Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
iii
4. Using the Printer’s Hard Disk
Data Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Printer Data Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
User Data Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
File System Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Long Filenames. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Lowercase in Filenames . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Default Drive . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Commands to Read/Write to Hard Disk. . . . . . . . . . . . . . . . . . . . . . 43
Initialize . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Make Directory on Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
Store a PCL Print File on the Internal Hard Disk . . . . . . . . . . . . 45
Delete a File From Disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Using a Disk File in a PCL Job . . . . . . . . . . . . . . . . . . . . . . . . . 47
Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
5. Control Codes
PCL Comparison . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
HP-GL/2 Graphics (Vector Graphics) . . . . . . . . . . . . . . . . . . . . . . . 62
PJL Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
PJL Environment Variables and Commands . . . . . . . . . . . . . . . . . . 70
PJL Error Codes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
6. Printer Fonts
Built-In Fonts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Virtual Font Cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Activating a Font Cartridge Using PJL . . . . . . . . . . . . . . . . . . . 88
Creating Your Own Font Cartridge . . . . . . . . . . . . . . . . . . . . . . 88
List of Font Cartridges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Arabic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Cyrillic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
Greek. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Hebrew . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 90
Latin 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Latin 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Barcodes 3 of 9 OCR-A. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Barcodes & More. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Brilliant Presentations I, Compelling
Publications II . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
CG Times Scalable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
CG Triumvirate Condensed. . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Courier 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Courier Document 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Courier Portrait & Landscape . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Decorative Words I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
iv
Distinctive Documents I, Compelling
Publications I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
EAN/UPC/OCR-B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Forms Landscape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Forms Portrait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Forms, Etc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Garamond Scalable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Great Start. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
HP Global Text . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
HP Pretty Faces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Interleave 2 of 5 Barcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
International 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
International Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
ITC Avant Garde . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
ITC Lubalin Graph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Legal Courier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Legal Elite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Letter Gothic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Letter Gothic Portrait and Landscape . . . . . . . . . . . . . . . . . . . 103
Math Elite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Math Times Roman . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Memo 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Microsoft . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Microsoft 1A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Multi-Barcode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
PC Courier 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
Persuasive Presentations . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Polished Worksheets. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
Premiere Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Presentations 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Prestige Elite . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108
Prestige Portrait and Landscape . . . . . . . . . . . . . . . . . . . . . . . 109
Pro Collection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Scalable Courier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Tax 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Text Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Times Roman Helvetica Report 1 . . . . . . . . . . . . . . . . . . . . . . 111
Times Roman Portrait and Landscape . . . . . . . . . . . . . . . . . . 111
Times Roman Proportional 1. . . . . . . . . . . . . . . . . . . . . . . . . . 111
Times Roman Proportional 2. . . . . . . . . . . . . . . . . . . . . . . . . . 112
Word Perfect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Word Perfect Scalable. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
v
vi
1 Introduction
Chapter 1: Introduction 1
2 Chapter 1: Introduction
2 Printing Options
Note Paper sizes longer than 215 mm in length feed at 21 pages per minute.
Other sizes feed at 40 pages per minute.
To use custom size paper in a print job, there are several steps:
Note Use this command in conjunction with the Media Eject Length
command (<ESC>&f#F) to fully define a variable logical page size.
Both the Media Eject Length and Page Width commands should be
transmitted at the beginning of a page prior to any printable data.
Otherwise, when the command is sent, the current page is closed and
printed.
The D640 printer currently has two output locations: the upper tray
(standard) or the optional high capacity output stacker (HCO).
There are several differences between the upper tray and the output
stacker. The upper tray holds up to 400 sheets, stacking them face-
down only. There is no offset stacking. The HCO holds up to 3000
sheets, stacked face up or face down, and it supports offset stacking.
Both output locations can use the job separation feature of the printer.
The default output is the top tray. You can specify that the jobs are
separated by a special sheet of paper, usually of a different color or
size. This feature allows effective job separation in the top tray.
Use the jobseparate setting from the Printing Menu. Alternatively, you
can give the PJL command:
@ PJL DEFAULT SEPARATOR=TRAY3
(or tray2 or tray1 or HCI or OFF)
D640, HCI • Duplex printing on plain intray = HCI jam recovery = TRUE
Many users paper traylock.tray1 = LOCKED banner_header = TRUE
• Legal and Ledger paper traylock.tray2 = UNLOCKED banner_trailer = FALSE
available traylock.tray3 = UNLOCKED data_intray = 5
duplex = ON banner_intray = 1
• MPE/iX banner page at
beginning of each job, jamrecovery = ON
printed on blue paper jobseparate = NONE
• No end banner
Put blue letter paper in tray1,
ledger in tray2, legal in tray3,
white letter in HCI
D640, one • Simplex printing on pre- intray = TRAY1 jam recovery = TRUE
user, printed forms traylock.tray1 = UNLOCKED banner_header = FALSE
preprinted • No banner page at begin- traylock.tray2 = UNLOCKED banner_trailer = FALSE
forms ning or end traylock.tray3 = UNLOCKED data_intray = 1
• No job separation duplex = OFF banner_intray = 1
jamrecovery = ON
jobseparate = NONE
Test alignment and verify that
forms work before production Put forms in trays face down,
run. with top of form toward
printer rear.
Note The print quality is not consistent within 1/6" of any edge. This is
especially true for the trailing edge of the second side in duplex printing.
For this reason, Hewlett-Packard cannot guarantee print quality within
this 1/6" area. Your Hewlett-Packard warranty and service contract
does not cover service calls related to printing within this 1/6" area.
The quality and squareness of the paper determine print quality when
printing close to the physical paper edge. In general, you may
experience degraded print quality within 0.25 inches of any paper
edge. When printing in duplex you may need to compensate for
shrinkage and curl that may occur when the first side is printed.
Lighter weight and recycled papers tend to shrink more than heavier
weight paper.
For edge-to-edge printing, first turn off the clip setting in the
Configuration Menu or send the appropriate PJL command. Then, set
the logical page size to the physical page size using PCL commands.
(See example below.)
@PJL SET CLIP=OFF<EOL> ;allow printing near edges
<ESC>%-12345X
<ESC>E
Left Offset Specifies (in integer decipoints) the location of the left
edge of the logical page with respect to the left side of the physical
page in the selected viewing orientation. The range of values is
-32767 to 32767.
Top Offset Specifies (in integer decipoints) the location of the top
edge of the logical page with respect to the top edge of the physical
page in the selected viewing orientation. The range of values is
-32767 to 32767.
Orientation This is the viewing orientation of the logical page with
respect to the physical page. Values may be 0 (portrait), 1
(landscape), 2 (reverse portrait), or 3 (reverse landscape). All other
values reset the logical page definition leaving the logical page as it
was previously defined.
Reserved Byte A byte which must be present in the data stream
and must be equal to zero.
Width Logical page width is defined in decipoints. A zero width
causes the logical page definition to be ignored. The logical page may
be larger than the physical page. The range of values is 1 to 65535.
PJL SET COPIES = n Where n is the number of copies specified for each page of a
document. Copies are created on a page-by-page basis. Each page is
printed n times. See illustration below.
PJL SET QTY = m Where m is the number of collated copies (mopies) specified for the
document. Copies are created on a document-by-document basis. A
completed document is printed m times. See illustration below.
1 1 1
2 1 2
3 3
2
2
1
3 2
3 3
1 1 1
1 1 1
2 2 2
2 2 2
3 3 3
3 3 3
Image Position
The decompressed image will be placed within the PCL 5 default
margins unless edge-to-edge printing is selected. Use the printer-
specific edge-to-edge commands, along with the following cursor
positioning command:
<ESC>*p0x0Y cursor position at 0, 0
Command Action
<ESC>*r0F presentation mode zero
<ESC>*t300R 300 dpi resolution
<ESC>*r800T image height = 800
<ESC>*r1664S image width = 1664
<ESC>&l0O portrait orientation
<ESC>*r1A use current cursor position
<ESC>*b8M use CCITT4 Group 4 (MMR) decompression mode
<ESC>*b9604W raster block data length = 9604 bytes
<data> raster data
<ESC>*rC end raster image
Paper Input
The D640 has three paper input trays, while the LaserJet 4Si has two,
and the LaserJet5Si has three.
The IIISi and 4Si printers have a high-capacity input (HCI) unit
available as an option. Jobs set up for this environment use the PCL
<ESC>&l4H command to select the HCI. The same command selects
tray2 on the D640.
HCI selection compatibility is provided through the HCI-Alias Control
Panel setting. HCI-Alias enables paper selection compatibility
between a LaserJet IIISi (or 4Si) with an HCI and a D640 with an HCI.
With HCI-Alias = tray2 (normally the LaserJet 4Si’s high capacity
input) the PCL command <ESC>&l4H causes the D640 to pick paper
from the HCI. You can also set HCI-Alias = HCI to pick paper from
tray1, tray2, tray3, or the HCI in response to the PCL commands
shown in Table 5.
You can also set the default paper tray (used if there is no paper size
or paper source command embedded in the print job) from the
Control Panel or via PJL commands. Use the intray setting in the
Printing Menu, or the PJL command:
@PJL SET MEDIASOURCE=TRAY1
(or TRAY2 or TRAY3 or HCI)
The D640 printer supports TIFF emulation which enables your printer
to recognize and print bi-level, monochrome TIFF images. Previously,
TIFF images had to be part of a larger PCL or PostScript (PS)
document to be printed.
TIFF support for the D640 printer conforms to the specifications
described in TIFF Revision 6.0 published by Aldus Corporation, June
1992. The information in this chapter assumes you are familiar with
TIFF Revision 6.0.
The D640 printer supports relevant parts of Baseline TIFF and
selected elements of Extended TIFF. There are no private fields or
values required by the printer.
Note The TIFF standard does not contain any elements to indicate the
termination of data. Therefore, termination of a TIFF file must be
indicated by PJL universal escape sequences or the printer’s I/O
timeout configuration.
The following are some general rules to describe how the D640
printer processes TIFF data.
l Each TIFF file is a self-contained unit, made up of one or more
sub-files. Each sub-file describes a single rectangular image. The
image may be a complete page, or it may be a part of a page.
During TIFF emulation, the printer cannot switch into any other
protocol, except at the boundaries of individual TIFF files.
l If a TIFF image contains multiple sub-files, the images contained
in the sub-files are placed on separate pages in the order the
sub-files appear in the TIFF data stream.
l If TIFF is the selected protocol:
• Images are placed with respect to the physical page, with zero
margins.
• If a sub-file doesn’t have positioning information, the image is
placed at the edge of the page.
• If a sub-file has positioning information, the commands are
interpreted as absolute displacements from the edge of the
physical page.
• The Clip setting for the document determines if the image is
printed to the edge of the page.
II or MM II or MM
Image file Image file
header 0x2A00 or 0x002A header 0x2A00 or 0x002A
Pointer to first image Pointer to first image
file in directory file in directory
Image File Directory 0 Image File Directory 0
Number of entries Number of entries
Entry # 1 Entry # 1
Entry # 2 Entry # 2
Entry #3 Entry #3
... ...
Forward Pointer to Image Data Forward Pointer to Image Data
Size of Image Data pointers are Size of Image Data
pointers are ... ...
best Entry #n best Entry #n
Pointer to next IFD Pointer to next IFD
Alternative structure for a TIFF file: In the structure below, the image file directories appear
after the image data. This file may not be printable because of the backward pointer. With this structure, the
D640 printer can handle only small TIFF files (one small image).
II or MM
Image file
header 0x2A00 or 0x002A
Pointer to first image
file in directory
Image Data
Image Data
Image Data
Backward pointers Image File Directory 0
might not work. Number of entries
(They are not Entry # 1
Entry # 2
recommended.) Entry #3
...
Pointer to Image Data
Size of Image Data
...
Entry #n
Pointer to next IFD
Note You can use the error report setting on the D640 printer to print a report
of TIFF errors within a print job. See the User Manual for more
information.
This section includes a full list of baseline and extended TIFF fields
with comments on their interpretation by the D640 printer.
The following conventions are used to describe the TIFF fields.
l Fields marked with * are significant for the processing of image
data by the printer.
l Fields marked with ** have no default value. These fields are
mandatory. If any of these fields are missing from the TIFF data,
an error occurs.
l The first line of the TIFF definition lists the name of the field. The
second line provides the tag number in hex, the type of values,
and the number values for the field. For example:
Name
Tag,Type,N
l Comments about the field are listed to the right of the field name.
Baseline TIFF
The following is a list of extended TIFF fields which are accepted by
the D640 printer.
Structure
Image File Header Bytes 0-1 in the file can be either $4949 indicating little-endian
data format (Intel standard) or $4D4D indicating big-endian data
format (Motorola standard).
Multiple IFDs The D640 printer can read multiple IFDs and process multiple
images. Each image is printed on a separate page.
Baseline fields
* Compression Compression scheme used for the image data. The following
0103,Short,1 compression modes are supported by the D640 printer:
baseline TIFF
extended TIFF
For value 1, pixels with low column values are stored in high-
order bits of the byte. The most significant bit in a byte is the
earliest in the raster line for uncompressed data as well as the
earliest in compression code for compressed data.
For value 2, pixels with low column values are stored in low-order
bits of the byte.
FreeByteCounts For each string of contiguous unused bytes in a TIFF file, the
0121,Long,1 number of bytes in the string.
The presence of unused bytes is not recommended.
FreeOffsets For each string of contiguous unused bytes in a TIFF file, the byte
0120,Long,1 offset of the string.
GrayResponseCurve For grayscale data, the optical density of each possible pixel
0123,Short,2^bps value.
HostComputer The computer and/or operating system used to create the image.
013C,ASCII
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Tr MP Red
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Default = 0.
* Orientation The orientation of the image with respect to the rows and
0112,Short,1 columns.
Default = 1.
1 0th row is the visual top and 0th column is the visual left of
the image.
2 0th row is the visual top and 0th column is the visual right of
the image.
3 0th row is the visual bottom and 0th column is the visual right
of the image.
4 0th row is the visual bottom and 0th column is the visual left
of the image.
5 0th row is the visual left and 0th column is the visual top of
the image.
6 0th row is the visual right and 0th column is the visual top of
the image.
7 0th row is the visual right and 0th column is the visual bottom
of the image.
8 0th row is the visual left and 0th column is the visual bottom
of the image.
** PhotometricInterpretation The color space of the image data. Only the two values below are
0106,Short,1 accepted.
* RowsPerStrip The number of rows per strip. The default is the value given by
0116,Short/Long,1 ImageLength resulting in a single-strip image.
** StripByteCounts For each strip, the number of bytes in the strip after compression.
0117,Short/
Long,StripsPerImage This field is mandatory, except for uncompressed data, where it
can be computed from ImageWidth and RowsPerStrip.
Threshholding For black and white TIFF files that represent shades of gray, the
0107,Short,1 technique used to convert gray to black and white pixels.
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Fill Unc 2D
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Unc 0
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
DocumentName The name of the document from which the image was scanned.
010D,ASCII,1
PageName The name of the page from which the image was scanned.
011D,ASCII,1
PageNumber The page number of the page from which the image was
0129,Short,2 scanned. PageNumber_0 is the page number, with the first page
numbered 0. PageNumber_1 is the total number of pages in the
document. If PageNumber_1=0, the total number of pages in the
document is not available.
Unsupported Functions
0 Uncompressed (row-based)
1 Run-length encoding (row-based)
2 TIFF rev 4.0 “PackBits” encoding (row-based)
3 Delta row encoding (row-based)
4 Unencoded (block-based)
5 Adaptive encoding (block-based)
6 CCITT G3 one-dimensional encoding (block-based)
7 CCITT G3 two-dimensional encoding (block-based)
8 CCITT G4 encoding (block-based)
10 Tagged Image File Format (TIFF) rev 6.0 (block-based)
Note Only the first image from the TIFF data is printed, any others will be
ignored.
The image is rendered as the TIFF file describes it, and then the
image is clipped (not scaled) to the boundaries specified by the PCL
commands for raster width and height. Further, the image will be
treated just as any other PCL raster image when used with the
Transparency Modes.
Pattern
Source
Destination
Scaled
Text
Raster
Area fill
Source Transparency Mode = 0 (transparent)
Pattern Transparency Mode =1 (opaque)
Scaled
Text
Raster
Area fill
Data Directories
The D640 printer now includes the following file system conventions.
Long Filenames
The file system for the D640 printer supports a long filename
convention similar (but not identical) to long filenames in
MS Windows.
Long filenames can include any combination of the following:
l name stems longer than 8 characters (for example,
longername.ext)
l extensions longer than 3 characters (for example, name.grp1)
l names containing more than one extension or dot “.” (for
example, name.rev21.tif)
l names containing special characters (for example,
name:new.user or ?name.+)
Before you create files with long names, consider the following:
l HP strongly recommends that characters used in filenames be
confined to the ASCII printing set – excluding characters used as
punctuation symbols or wildcards.
The following printing characters are excluded in DOS and MS
Windows:
Operating system Excluded Characters
DOS . " / \ [ ] : ; | = , ? * + < >
Windows 95 or NT " / \ : | ? * < >
Lowercase in Filenames
The D640 printer supports filenames that include both lowercase and
uppercase letters. Filenames are no longer converted to uppercase.
As with MS Windows, case is not significant for matching names. Two
strings which differ only in case are considered to be the same name.
(For example, name.ext and NaME.Ext).
This rule applies to both standard and long filenames.
Default Drive
The default drive is now the printer’s internal hard disk, C: (HDD),
instead of the printer’s floppy disk, A: (FDD).
However, this default should not be assumed. A drive specifier should
always be included to indicate the internal hard drive. Otherwise, this
might lead to incompatibility between printer protocol sent across the
network and printer protocol executed from disk.
You can read, write, and delete files on the printer’s hard disk with
PJL commands. Reading from mass storage is different for each
emulation/personality.
Note Currently, there are no security features built into the hard disk filing
system. HP does not recommend storing sensitive files on the internal
hard disk.
l Files may contain fonts, macros, symbol-sets, user-defined
patterns, or ordinary print data.
l File names can contain up to 100 characters. See “File System
Conventions” on page 42 for a detailed description.
Initialize
This command initializes a floppy diskette for use with the D640.
Diskettes must already be formatted on the PC in IBM-PC compatible
format.
@PJL FSINIT VOLUME = "volume name" <LF>
If a password has been set, it must have been given prior to issuing
this command.
binary data<UEL>
Note Do not store a font or macro with a PCL ID number embedded in it.
The ID number should be assigned by the job stream when it retrieves
the macro from disk.
Byte Content
1 Operation Byte (UB)
2
... File Identifier Name (ASCxx)
#
File Identifier Name (ASCxx) – The File Identifier Name is ASCII data.
The D640 requires the full pathname of the file, including the volume
name. Files and directories can contain the letters A..Z, a..z, and the
numerals 0..9. For example: C:\PCL5\USER\MyFile.pcl. Do not use
quotation marks around the filename.
NAME = "C:\PCL5\USER\Macro"<LF>
<ESC>E<ESC>&f95Y<ESC>&n19W<0x04>c:\PCL5\USER\Macro→
<ESC>E →
<ESC>%-12345X@PJL FSDELETE→
NAME = "c:\PCL5\USER\Macro"<LF>
The following is a list of utilities included with the D640 function code.
These utilities are located on your printer’s hard disk in the
C:\Maint\Util directory. Use these utilities only when directed by your
support representative.
Name Description
LASERSET.xx For support use only.
ALL_EDGE.xx Shows edge-to-edge printing capability for the selected media
source.
FILECHK.PCL Searches the hard disk and lists any duplicates files found in the
same directory. Files with names that differ only by case are
considered duplicates (for example, Font2a.TIF and FONT2A.TIF).
This utility is useful for locating files that cannot be recognized by
the printer’s new file system.
CAPTURE.100 Sets a 100-Mbyte limit for capturing files on the printer’s hard disk.
This is the default for a captured file. (For more information on
capturing files, see the User Manual.)
CAPTURE.1_4 Sets a 1.4-Mbyte limit for capturing files on the printer’s hard disk.
This utility is useful for creating small capture files to copy to the
printer’s floppy disk.
CAPTURE.C2A Copies all captured files (*.dat) from the printer’s hard disk to the
floppy disk. No more than 1.4 Mbytes can be copied to the floppy
disk. Insert a blank, formatted floppy disk before selecting.
EVENTLOG.C2A Performs the following sequence:
l prints a Maintenance Report
l updates the eventlog.pcl file on the printer’s hard disk
l copies the file to the floppy disk.
The eventlog.pcl file is a plain-text file located in the C:\MAINT
directory. the file contains an ongoing record of printer events.
Insert a blank, formatted floppy disk before selecting.
Reports & Eventlog.C2A A utility that:
l prints a Setup and Maintenance Report
l copies a print file of the Setup Report and the Maintenance
Report to floppy disk
l copies the eventlog.pcl file to floppy disk.
This utility is useful for sending complete information to your
service provider. Insert a blank, formatted floppy disk before
selecting.
This chapter includes charts that compare control codes for the D640
printer with control codes for other LaserJet printers. For further
details on PCL and PJL control codes, see the following manuals:
l PCL 5 Printer Language Technical Reference Manual
l Printer Job Language Technical Reference Manual
l PCL 5 Comparison Guide
l Printer Language Technical Quick Reference Guide
All are available as part of the PCL/PJL Technical Reference Library,
HP part number 5021-0330.
PCL Comparison
Table 22 Macros
Table 37 PJL
Built-In Fonts
The Model D640 printer comes with built-in fonts and virtual font
cartridges. Table 45 below lists the built-in fonts.
a. ITC Zapf Dingbats are available on the D640 Decorative Words built-in cartridge.
@PJL EOJ...
This section lists the virtual font cartridges available on the D640
printer. It includes the fonts available in each cartridge.
Arabic
B3428AA #ARG D640 name: “Arabic”
Cyrillic
B3428AA #ACB D640 name: “Cyrillic”
Letter Gothic Normal, Bold, Italic, fixed scale 12G PC-8 Latin/Greek
Bold Italic 12N ISO 8859/7 Latin/Greek
Hebrew
D640 name: “Hebrew”
Letter Gothic Normal, Bold, Italic fixed scale 02N ISO 8859/2 Latin 2
17U PC-852, Latin 2
Univers Normal, Bold, Italic, prop scale 02N ISO 8859/2 Latin 2
Bold Italic 17U PC-852, Latin 2
Latin 5
B3428AA #AB8 D640 name: "Latin_5"
Courier Normal, Bold, Italic, fixed scale 05N ISO 8859/9 Latin 5
Bold Italic 09T PC-8 Turkish
Letter Gothic Normal, Bold, Italic fixed scale 05N ISO 8859/9 Latin 5
09T PC-8 Turkish
Univers Normal, Bold, Italic prop scale 05N ISO 8859/9 Latin 5
09T PC-8 Turkish
Barcodes 3 of 9 OCR-A
92286W1 36596A #0W1 D640 name: "OCRA"
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[12 pt]
EAN/UPC [10 mil] Medium Upright prop bitmap 08Y UPC/EAN Barcode
USPS ZIP [12 pt] Medium Upright prop bitmap 15Y USPS Zip
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[12 pt]
15U Pi Font
CG Times Scalable
C2050A #D01 36596B #D01 D640 name: "CGTIMES"
CG Triumvirate Condensed
C2050A #D16 36596B #D16 D640 name: "CGTRMVCD"
Courier 1
92286A 36596A #00A D640 name: "COURIER1"
Courier [12 pt] Italic fixed bitmap 00N ISO 8859/1 Latin 1
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
Line Printer [08.4 pt] Medium Upright fixed bitmap 08U Roman-8
Decorative Words I
C2050A #D84 36596B #D84 D640 name: "DECWORD1"
ITC Zapf Dingbats Medium Upright prop scale 09L Ventura ITC Zapf Dingbats
10L PS ITC Zapf Dingbats
11L ITC Zapf Dingbats Series 100
12L ITC Zapf Dingbats Series 200
13L ITC Zapf Dingbats Series 300
ITC Zapf Dingbats Medium Upright prop scale 09L Ventura ITC Zapf Dingbats
10L PS ITC Zapf Dingbats
11L ITC Zapf Dingbats Series 100
12L ITC Zapf Dingbats Series 200
13L ITC Zapf Dingbats Series 300
Stymie Bold, Bold Italic, prop scale See Table 46 on page 93.
Italic, Medium
Upright
Letter Gothic [09.5 pt] Medium Upright fixed bitmap 00E Roman extensions
Letter Gothic [09.5 pt] Medium Upright fixed bitmap 08U Roman-8
Letter Gothic [09.5 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
Letter Gothic [14 pt] Medium Upright fixed bitmap 00E Roman extensions
Letter Gothic [14 pt] Medium Upright fixed bitmap 08U Roman-8
Letter Gothic [14 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[12 pt]
Forms Landscape
92286V 36596A #00V D640 name: "FORMSLSC"
Letter Gothic [09.5 pt] Medium Upright fixed bitmap 00E Roman extensions
08U Roman-8
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[12 pt]
Letter Gothic [09.5 pt] Medium Upright fixed bitmap 00E Roman extensions
08U Roman-8
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[12 pt]
Forms, Etc.
C2053A #C05 36596A #C05 D640 name: "FORMSETC"
Line Draw (Line Prtr) Bold fixed bitmap 02L Tax Line Draw
[12 pt]
aUnivers [06 pt, 08 pt] Medium Upright prop bitmap 08U Roman-8
10U PC-8 Code Page 437
12U PC-850 Multilingual
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Garamond Scalable
C2050A #D14 36596B #D14 D640 name: "GARAMOND"
Letter Gothic [03.6 pt] Medium Upright fixed bitmap 08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
Letter Gothic [12 pt] Bold, Italic, Medium fixed bitmap 00N ISO 8859/1 Latin 1
Upright 07J DeskTop
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
HP Global Text
C2053A #C08 36596A #C08 D640 name: "HPGLOTEXT"
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Hobo [14 pt, 30 pt] Medium Upright prop bitmap 00U ISO6: ASCII
12U PC-850 Multilingual
Microstyle [18 pt] Medium Upright prop bitmap 00U ISO6: ASCII
12U PC-850 Multilingual
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Interleave 2 of 5 Barcode
N/A 36596A #689 D640 name: "ILV25BAR"
Line Printer Medium Upright fixed bitmap 00D ISO 60: Danish/Norwegian
[08.4 pt] 00E Roman extensions
00F ISO 25: French
00G HP German
00I ISO 15: Italian
00S ISO 11: Swedish for Names
00U ISO6: ASCII
01E ISO 4: United Kingdom
01S HP Spanish
08U Roman-8
International Collection
92286 IC 36596A #0IC D640 name: "INTRCOLL"
CG Times [10 pt] Bold, Italic, Medium prop bitmap 08U Roman-8
Upright 10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
Letter Gothic[12 pt] Bold, Italic, Medium fixed bitmap 00N ISO 8859/1 Latin 1
Upright 07J DeskTop
00U ISO6: ASCII
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
Letter Gothic[14 pt] Medium Upright fixed bitmap 00N ISO 8859/1 Latin 1
07J DeskTop
00U ISO6: ASCII
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
Prestige Elite[10 pt] Bold, Italic, Medium fixed bitmap 00N ISO 8859/1 Latin 1
Upright 07J DeskTop
00U ISO6: ASCII
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
12U PC-850 Multilingual
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Legal Courier
92286H 36596A #00H D640 name: "LGLCOUR"
Line Draw [12 pt] Medium Upright fixed bitmap 00B Line Draw-7
Prestige Elite [07 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
01U Legal
Legal Elite
92286G 36596A #00G D640 name: "LGLELITE"
Prestige Elite [07 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
01U Legal
Prestige Elite [10 pt] Bold, Italic, Medium fixed bitmap 00U ISO6: ASCII
Upright 01U Legal
Math Elite
92286J 36596A #00J D640 name: "MTHELITE"
Prestige Elite [10 pt] Bold fixed bitmap 00E Roman extensions
00U ISO6: ASCII
08U Roman-8
Prestige Elite [10 pt] Medium Upright fixed bitmap 00A Math-7
00E Roman extensions
00Q Math-8A
00U ISO6: ASCII
01Q Math-8B
02Q Pi Font-A
08M Math-8
08U Roman-8
15U Pi Font
Times Roman [10 pt] Bold, Italic prop bitmap 00E Roman extensions
00U ISO6: ASCII
08U Roman-8
Times Roman [10 pt] Medium Upright prop bitmap 00A Math-7
00E Roman extensions
00Q Math-8A
00U ISO6: ASCII
01Q Math-8B
02Q Pi Font-A
08M Math-8
08U Roman-8
15U Pi Font
Memo 1
92286Q 36596A #00Q D640 name: "MEMO1"
Letter Gothic [12 pt] Bold, Medium fixed bitmap 08U Roman-8
Upright
Helvetica [10 pt, 12 pt] Bold, Italic, Medium prop bitmap 00U ISO6: ASCII08U
Upright Roman-811Q ECMA-94
Line Printer [08.4 pt] Medium Upright fixed bitmap 00U ISO6: ASCII08U
Roman-8
Times Roman [08 pt] Medium Upright prop bitmap 00U ISO6: ASCII08U
Roman-8
Times Roman Bold, Italic, Medium prop bitmap 00U ISO6: ASCII
[10 pt, 12 pt] Upright
Times Roman [14 pt] Bold prop bitmap 00U ISO6: ASCII
Microsoft 1A
92286Z 36596A #00Z D640 name: "MSOFT1A"
This cartridge is identical to the Microsoft cartridge listed above.
Multi-Barcode
N/A 36596A #741 D640 name: "MULTIBAR"
EAN/UPC [10 mil] Medium Upright prop bitmap 08Y UPC/EAN Barcode
USPS ZIP [12 pt] Medium Upright prop bitmap 15Y USPS Zip
PC Courier 1
92286Y 36596A #00Y D640 name: "PCCOUR"
Line Printer [08.5 pt] Medium Upright fixed bitmap 08QPC-8 subset 09QPC-8
subset B
Letter Gothic [14 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
01U Legal
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[14 pt] 04Q PC Line
Polished Worksheets
C2053A #C03 36596A #C03 D640 name: "POLIWORK"
Letter Gothic [12 pt] Bold, Italic, Medium fixed bitmap 00N ISO 8859/1 Latin 1
Upright 01U Legal
08U Roman-8
10 U PC-8 Code Page 437
11 U PC-8 Danish/Norwegian
12 U PC-850 Multilingual
Presentations [16 pt] Bold fixed bitmap 00N ISO 8859/1 Latin 1
01U Legal
08U Roman-8
Prestige Elite [10 pt] Bold, Italic, Medium fixed bitmap 00N ISO 8859/1 Latin 1
Upright 01U Legal
08U Roman-8
10 U PC-8 Code Page 437
11 U PC-8 Danish/Norwegian
12 U PC-850 Multilingual
Dom Casual Medium Upright prop scale See Table 46 on page 93.
Presentations 1
92286R 36596A #00R D640 name: "PRESENT1"
Line Draw (Line Prtr) Medium Upright fixed bitmap 00B Line Draw-7
[14 pt]
Prestige Elite
92286D 36596A #00D D640 name: "PRESTIGE"
Pro Collection
92286PC 36596A #0PC D640 name: "PROCOLLE"
Helvetica [08 pt] Medium Upright prop bitmap 00U ISO6: ASCII
Helvetica [10 pt, 12 pt] Bold, Italic, Medium prop bitmap 00U ISO6: ASCII
Upright
Letter Gothic [12 pt] Bold, Italic, Medium fixed bitmap 00U ISO6: ASCII
Upright
Line Printer [08.5 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
Prestige Elite [07 pt] Medium Upright fixed bitmap 00U ISO6: ASCII
01U Legal
Prestige Elite [10 pt] Bold, Italic, Medium fixed bitmap 00U ISO6: ASCII
Upright 01U Legal
Times Roman Bold, Italic, Medium prop bitmap 00U ISO6: ASCII
[08 pt, 10 pt, 12 pt] Upright 01U Legal
Scalable Courier
N/A 36596B #433 D640 name: "SCALCOUR"
Helvetica [08 pt] Bold, Medium prop bitmap 00U ISO6: ASCII
Upright
Line Draw [12 pt] Semi Bold fixed bitmap 00B Line Draw-7
a. The D640 has a bold font, the cartridge has semi-bold. Some applications may print differently.
Text Equations
C2053A #C07 36596A #C07 D640 name: "TEXTEQUA"
(CG Times [10 pt] Bold, Italic, Medium prop bitmap 08U Roman-8
Upright
(CG Times [10 pt] Medium Upright prop bitmap 00A Math-7
08M Math-8
15U Pi Font
Prestige Elite [07 pt] Medium Upright fixed bitmap 08M Math-8
08U Roman-8
Prestige Elite [10 pt] Bold, Italic, Medium fixed bitmap 08U Roman-8
Upright
Prestige Elite [10 pt] Medium Upright fixed bitmap 00A Math-7
08M Math-8
00U Pi Font
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Times Roman [08 pt] Medium Upright prop bitmap 00N ISO 8859/1 Latin 1
08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
Times Roman [12 pt] Bold, Italic, Medium prop bitmap 00N ISO 8859/1 Latin 1
Upright 08U Roman-8
10U PC-8 Code Page 437
11U PC-8 Danish/Norwegian
Times Roman [08 pt] Semi Light prop bitmap 00U ISO6: ASCII
Times Roman [10 pt] Bold, Italic, Medium prop bitmap 00U ISO6: ASCII
Upright
Line Printer [08.4 pt] Medium Upright fixed bitmap 00E Roman extensions
00U ISO6: ASCII
08U Roman-8
Times Roman [08 pt] Medium Upright prop bitmap 00E Roman extensions
00U ISO6: ASCII
08U Roman-8
Times Roman [10 pt] Bold, Italic, Medium prop bitmap 00E Roman extensions
Upright 00U ISO6: ASCII
08U Roman-8
Word Perfect
C2053A #C01 36596A #C01 D640 name: "WORDPERF"
(CG Times [08, 10, 12, Bold, Italic, Medium prop bitmap 07J DeskTop
14 pt] Upright
(Univers [14, 18, 24 pt] Medium Upright prop bitmap 07J DeskTop
a. The D640 has a scalable font and the cartridge has a bitmap. Some applications may print differently.
Index 115
P R U
page size 5 random-access device 22 unprintable area 8
PageName 33 related documents 1 unsupported functions 33
PageNumber 33 Reports & Eventlog.C2A 51 utilities
paper trays 15 ResolutionUnit 29 ALL_EDGE.22 51
custom 3 RowsPerStrip 30 CAPTURE.1_4 51
default 5, 16 CAPTURE.100 51
paper, custom sizes 3 S CAPTURE.C2A 51
PCL commands SamplesPerPixel 30 EVENTLOG.C2A 51
Job Control 54 separator page 5 FILECHK.PCL 51
Media Eject Length 3, 4, 5 LASERSET.22 51
settings
output location 5 Clip 21 Reports & Eventlog.C2A 51
Page Width 4 customsize 3
Page Width Command 3 X
intray 16
Select Custom Paper 5 jobseparate 5 XPosition, YPosition 33
stacking directions 5 PapSize 3 XResolution, YResolution 31
PCL Compression Method 10
traylock 3
34– 39 units 3
PCL documents, TIFF images in shrinkage 8
19, 34
Software 30
PCL escape sequence 19 storing, macros 48
PCL5 Comparison Guide 53 StripByteCounts 30
PCL5 Reference Manual 53, 66,
StripOffsets 30
70 SubfileType 30
PhotometricInterpretation 29
physical page size 8
PJL commands T
How To Create Your Own Font T4 Options or T6 Options 32
Cartridge 88 Threshholding 30
output location 5 TIFF
stacking direction 5 baseline elements 19, 25– 31
PJL ENTER LANGUAGE 20 component ordering 22
PJL FSINIT VOLUME 44 errors 24
PJL FSMKDIR NAME 44 extended elements 19, 32– 33
PJL SET COPIES 12 processing rules 21
PJL SET QTY 12 structure 22– 33
PlanarConfiguration 29 sub-files 21
PostScript documents, TIFF unsupported functions 33
images in 19 TIFF images
PostScript example 50 clipping 21
print job emulation 19
abandoning 24 in PCL 34– 39
PCL commands in 12 introduction 19
PJL commands in 20 tiling 10
sample 20 transparency mode 28, 35
print quality 8 source and pattern 36– 38
printer, control panel 12, 19
printing
off the logical page 9
TIFF images 19
116 Index