HP D640 Service Manual

HP D640 Cut Sheet Printer
Technical Reference 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
Copyrights and Trademark Credits
Adobe™, PostScript™, PostScript II, the PostScript Logo™, and ITC Zapf Dingbats are trademarks of Adobe Systems Incorporated which may be registered in certain jurisdictions.
Portions of the software in the PostScript Emulation Kit are Copyright © 1990-1998 Pipeline Associates, Inc. Certain portions protected by U.S. Patent No. 5,150,454.
PCL is a trademark of the Hewlett-Packard Company. CG Times, a product of Agfa Corporation, is based on T imes New Roman, a registered
trademark of Monotype Corporation PLC. Times Roman is a trademark of Linotype AG and its subsidiaries. Univers is a registered trademark of Linotype AG and its subsidiaries. Other product names mentioned in this manual may also be trademarks and are used
here for identification only.

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
3. Working with TIFF Images
About TIFF Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Printing TIFF Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Using the Control Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Using Commands in a Print Job . . . . . . . . . . . . . . . . . . . . . . . . 20
General Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Errors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
TIFF Structure and Fields . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Baseline TIFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Extended TIFF. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Unsupported Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
TIFF Images as Part of PCL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Introducing PCL Compression Method 10 . . . . . . . . . . . . . . . . 34
Transparency mode with TIFF . . . . . . . . . . . . . . . . . . . . . . . . . 36
Example of PCL compression method 10. . . . . . . . . . . . . . . . . 39
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

This manual is a supplement to the complete Hewlett-Packard
PJL T echnical Reference Library
recommends you order this documentation package, as it will aid you while using the
D640 Technical Reference Manual
The
between the D640’s implementation of PJL and PCL and implementations on other HP printers. As such, it is not an exhaustive reference for those languages, but a supplement to these books:
PCL 5 Printer Language Technical Reference Manual
l
l
Printer Job Language Technical Reference Manual
l
PCL 5 Comparison Guide
l
Printer Language Technical Quick Reference Guide.
This manual was written for experienced users, such as application developers and technical support personnel. Before using the manual, programmers should be familiar with the reference manuals mentioned above.
D640 Technical Reference Manual

Other D640 Manuals

The information in this manual supplements the following HP D640 documents:
PCL/
(Part #5021-0330). Hewlett-Packard
.
describes differences
Model D640 Installation Manual
l
l
Model D640 User Manual
l
Model D640 Enhanced Features Manual
l
Model D640 Technical Reference Manual
l
PostScript Emulation Manual for Model D640 Printers
Chapter 1: Introduction 1
2 Chapter 1: Introduction
2

Printing Options

Custom Paper Sizes

The D640 supports custom paper sizes. Use the Media Eject Length command to specify a custom paper length and the Page Width command to specify a custom width. These dimensions are relative to
the physical paper path, so it’s possible to specify a width value larger than the length value.
The optional custom paper tray (C5634A) has infinitely adjustable guides, which can accommodate paper as small as 3.94 by 7.2 inches (100 by 182 mm) and as large as 11.7 by 17 inches (297 by
431.8 mm). You can use one to three custom trays in any of the tray positions, but all custom trays installed must contain the same paper size.
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:

At the Control Panel

Step 1 For the custom tray location, set the PapSize tray setting to
custom. Step 2 Set the units in the Printing Menu to mm, or 1/100". Step 3 Set the customsize settings in the Configuration Menu to the
width and height of the paper. The values for width and height are the width and height of the paper,
expressed in the unit values specified in the units setting. For example, the customsize values for an 8.5 by 11 sheet would be 850 and 1100.
Step 4 Set any other settings, such as traylock, in the Configuration
Menu.
Chapter 2: Printing Options 3

In Your Print Job

Step 1 Define the Media Eject Length (the size of the paper in the
custom paper tray, left to right) by sending the PCL code:
Media Eject Length (see below). Step 2 Define the paper width (the size of the paper in the custom
paper tray, front to back) by sending the PCL code: Select
Custom Size (see below).

Media Eject Length <ESC> & f # f/F

Sets the length of paper, as measured from the left edge to the right edge of the paper in the custom paper tray. Command arguments include:
Value(#) Media eject length in decipoints (1/720 inch) Default Device dependent (should be taken from User Default
Environment) Range 0 to the maximum supported paper length (command is
ignored for other values and the current paper length is retained) Use this command to define the size of your paper when using the
custom paper tray, with the selection of <ESC>&l101A. The media eject length need not be the same as the physical page
size defined by Page Size (<ESC>&l#A) or Page Length (<ESC>&l#P). If the media eject length is shorter than the physical page size, the physical page image will be clipped to fit the media eject size. If the media eject length is longer than the physical page size, the excess length will appear after the page image (to the bottom and right of the page image so the page image is placed at the upper left edge).

Page Width <ESC> & f # g/G

Designates the width of the logical page for a given CMI. Command arguments include:
Value(#) Logical page width in decipoints (1/720 inch) Default Device dependent Range 0 to the maximum supported page width. For other values,
the command is ignored and the current paper length is retained. If a value of 0 is received, page width is set using the following criteria (in order of priority):
4 Chapter 2: Printing Options
• Control Panel setti ng (if applicable)
• The physical page width (if it can be sensed)
• 8.5 inches portrait, 11 inches landscape orientation.
The page width remains in effect until a new Page Width command is received or the printer is restarted.
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.

Select Custom Paper <ESC> & l 101A

Sets margins according to the physical size of the paper defined with the Media Eject Length and Page Width commands.

Paper Output Trays

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)

PCL and PJL Output Commands

See Table 6 on page 17 and Table 7 on page 17 for the PCL and PJL command definitions to select the output location and stacking direction.
Chapter 2: Printing Options 5

Example Paper Handling Configurations

When you are using the MPE/iX network spooler, built into MPE/iX version 5.5 and above, printing defaults to these options:
Landscape orientation
l
Banner page printed from tray1 (top tray)
l
File printed from tray2 (middle tray)
l
132 characters per line
l
60 lines per page
l
This table gives some examples of printer configurations for specific results and describes the Control Panel and npconfig.pub.sys settings to obtain them.
6 Chapter 2: Printing Options
Table 1 Paper Handling Configuration Examples
Printer and Environment
D640, no HCI Many users
D640, HCI Many users
D640, one user, preprinted forms
Result D640 Control Panel npconfig.pub.sys
• Duplex printing on plain paper
• MPE/iX banner page at beginning and end of each job
• Duplex printing on plain paper
• MPE/iX banner page at beginning of each job, printed on green paper.
• No end banner.
• Duplex printing on plain paper
• Legal and Ledger paper available
• MPE/iX banner page at beginning of each job, printed on blue paper
• No end banner
• Simplex printing on pre­printed forms
• No banner page at begin­ning or end
• No job separation
T est alignment and verify that forms work before production run.
intray = TRAY1 traylock.tray1 = UNLOCKED traylock.tray2 = UNLOCKED traylock.tray3 = UNLOCKED duplex = ON jamrecovery = ON jobseparate = NONE
intray = TRAY2 traylock.tray1 = LOCKED traylock.tray2 = UNLOCKED traylock.tray3 = UNLOCKED duplex = ON jamrecovery = ON jobseparate = NONE
Put green paper in tray1, white in tray2 and tray3
intray = HCI traylock.tray1 = LOCKED traylock.tray2 = UNLOCKED traylock.tray3 = UNLOCKED duplex = ON jamrecovery = ON jobseparate = NONE
Put blue letter paper in tray1, ledger in tray2, legal in tray3, white letter in HCI
intray = TRAY1 traylock.tray1 = UNLOCKED traylock.tray2 = UNLOCKED traylock.tray3 = UNLOCKED duplex = OFF jamrecovery = ON jobseparate = NONE
Put forms in trays face down, with top of form toward printer rear.
jam recovery = TRUE banner_header = TRUE banner_trailer = TRUE data_intray = 1 banner_intray = 1
jam recovery = TRUE banner_header = TRUE banner_trailer = FALSE data_intray = 4 banner_intray = 1
jam recovery = TRUE banner_header = TRUE banner_trailer = FALSE data_intray = 5 banner_intray = 1
jam recovery = TRUE banner_header = FALSE banner_trailer = FALSE data_intray = 1 banner_intray = 1
Chapter 2: Printing Options 7

Edge to Edge Printing

Typically, the D640 printer enforces a 1/6" unprintable area around the edge of any page. This is the factory default and produces the
best looking output. There may be some cases where you don’t want this border. The D640 supports edge-to-edge printing which allows you to extend printing to the edge of the physical page.
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>%-12345X@PJL ENTER LANGUAGE=PCL<EOL> <ESC>E <ESC>&l6A ;select ledger size <ESC>&a10W ;define page to be edge-to-edge 0x00 0x00 ;left offset is 0 0x00 0x00 ;top offset is 0 0x01 0x00 ;orientation is landscape 0x2F 0xD0 ;width is 0x2FD0 decipoints 0x1E 0xF0 ;height is 0x1EF0 decipoints <ESC>&l0E ;set top margin to 0 <ESC>&a0L ;set left margin to 0
8 Chapter 2: Printing Options
If you define text to start printing at location 0,0 it will print off of the logical page. This may or may not be on the physical page. Figure 1 describes the physical and logical page formats.
The following escape sequence allows you to define the logical page:
<ESC> & a # W[binary data]
Where # is the number of bytes of binary data following the terminator.
The default value for # is = NA. The range for # is = 4,10. The binary data describes the logical page format as shown below:
Table 2 Logical Page Format
Byte 15 (MSB) 8 7 0 (LSB) Byte
0 Left Offset 1 2 Top Offset 3 4 Orientation Reserved (0) 5 6Width7 8 Height 9
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.
Chapter 2: Printing Options 9
Height Logical page height is defined in decipoints. A zero height 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.
Either 4 or 10 bytes of binary data defining values in the specified range must be downloaded with this command. If more than 10 bytes are received, the excess number is disregarded. If the number of bytes received is less than 10 and greater than 4, the left and top offsets are changed and the remaining bytes are ignored.
Upon receipt of a valid, 4-byte command, the current logical page definition is updated with the new left and top offsets. The margins, print direction, and current active position (CAP) are retained relative to the new position of the logical page. (The only change to the current logical page is that now it is offset relative to the physical page.)
Upon receipt of a valid command with 10 or more bytes of binary data, the current logical page definition is discarded and the new definition is installed. The following actions take place with a new definition:
The macro overlay is disabled.
l
Any current raster graphics are closed.
l
The primary and secondary fonts are set for the selected
l
orientation. Print direction is set to zero and the orientation is set
l
appropriately. HMI, VMI, margins, and text length are set to their PCL defaults.
l
CAP is moved to (0,0).
l
CAP becomes floating.
l
The reference point used for tiling defaults to the upper-left corner of the current logical page. The tiles are printed based on the viewing orientation selected.
The picture frame is defaulted to the logical page bounds and the
l
anchor point is set to the upper left corner of the logical page. Any extra bytes specified with the command are disregarded.
l
The positions stored in the CAP stack are not changed with an
l
orientation change. Therefore, the positions are relative to the top left corner of the current orientation.
10 Chapter 2: Printing Options
The new logical page definition remains in effect until another
l
logical page is defined, or the logical page is defaulted by receipt of a reset, an orientation change, a page length, or a paper size command. The current logical page definition (PCL default or user defined) is part of the user and overlay environments. A graphic mark will appear on the page if and only if it falls within the printable area and the logical page boundaries. For HP-GL/2 mode, graphics must also be within the defined picture frame and user defined window.
Figure 1 Physical Page Formats
Chapter 2: Printing Options 11

Working with Multiple Copies

You can print multiple copies of a document using the following methods:
setting the printer’s control panel
l
(Copies, Mopies, and Auto-collate) using commands in a print job
l
For more information on setting the printer’s control panel to create multiple copies, see the
User Manual
To specify multiple copies in a print job, use the following commands:
Table 3 Commands for Multiple Copies
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-pag e basis . Each pa ge is printed n times. See illustration below.
PJL SET QTY = m Where m is the number of collated copies (mopies) spec ified for the
document. Copies are created on a document-by-document basis. A completed document is printed m times. See illustration below.
.
Multiple-page document
1
2
3
PJL SET COPIES = 2
1
1
2
2
3
3
PJL SET QTY = 2
1
2
3
1
2
3
12 Chapter 2: Printing Options
If you combine the PJL SET COPIES and PJL SET QTY commands in the same print job (and the auto-collate setting on front of the printer is off), the result is multiplicative. See illustration below.
PJL SET COPIES = 2 PJL SET QTY = 3
1
2
3
3 sets of documents are created. Each set has 2 copies of each page.
1
1
2
2
3
3
1
1
2
2
3
3
1
1
2
2
This combination of copies and mopies is useful if you’re simulating a multi-part form on the printer and you want multiple copies of the form.

CCITT Groups 3 and 4 Decompression

The D640 printer supports CCITT Groups 3 and 4 image decompression, commonly used for faxing data and images. You can send the printer these printer-specific commands and data compressed using CCITT Groups 3 and 4. The printer decompresses and prints the data.
Three new modes for transfer raster data are supported:
<ESC>*b#M
6 - CCITT G3 one-dimensional (modified Huffman)
l
7 - CCITT G3 two-dimensional (modified Read)
l
8 - CCITT G4 two-dimensional (modified Read)
l
3
3
The first four bytes of this command are a 32-bit unsigned integer that specifies the number of pixels per row. If these bytes are inadvertently transposed, the image may appear to be one long row of pixels.
Most standard PCL5 raster image commands, excluding Y offset <ESC>*b#Y commands, work with the new printer-specific command extensions.
Chapter 2: Printing Options 13
If possible, identify the compression method used on the data you’ll be decompressing and printing. With this information, you can more accurately select values for the printer-specific commands. If you cannot identify the type of compressed data, you will have to experiment with the commands when trying to decompress and print the image.
You may encounter CCITT compressed data where the data is reversed. For example, the first four bytes of the data file should contain a value representing the width of the image in pixels per row. A typical value might be Ox: 00 00 01 98, indicating a width of 408
pixels. If the bytes were swapped into “little endian” order, they would appear as Ox: 01 98 00 00, which would indicate a very wide picture.
The D640 supports a resolution of 200 dpi, so images scanned at this resolution print at their normal size.

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
Table 4 Image Position
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
14 Chapter 2: Printing Options

LaserJet Compatibility

The D640 printer is unique and different from the Hewlett-Packard
LaserJet family of printers in general, and from the LaserJet “Si” series in particular. While these two printer families share the same printer language (PCL and PJL), there are a number of physical differences to their hardware.
Hewlett-Packard has included features in the D640 printer to make it behave like a LaserJet 4Si, so your print jobs turn out like you would expect them to if you were printing to a 4Si. In many instances these features also provide compatibility with other LaserJet products such as the IIISi and/or 5Si.
This section covers the compatibility features associated with PCL commands.

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 se lect the HCI. The sa me command sele cts 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.
Chapter 2: Printing Options 15

Example Configuration

LaserJet IIISi / 4Si
UPPER TRAY contains paper for job separation.
l
HCI TRAY contains white paper.
l
This configuration provides 500 sheets in the upper tray (<ESC>&l1H), and 1500 sheets in the HCI tray (<ESC>&l4H). To match this configuration on the D640, set up the D640 as follows:
TRAY1 contains paper for job separation.
l
HCI contains white paper.
l
Set HCI-Alias = tray2.
l
This configuration provides 500 sheets in tray1 (<ESC>&l1H), and 3000 sheets in the HCI (<ESC>&l4H). You could also load paper for job separation in tray2 and tray3 to increase capacity to 1500 sheets.
If HCI-Alias is set to HCI, the values shown below in Table 5 are correct. If HCI-Alias is set to tray2, then you can send a job to either a 4Si or a D640.
Table 5 Tray Map for HCI-Alias = HCI
PCL IIISi, 4Si D640 5Si
<ESC>&l1H upper tray upper tray (tray1) upper tray (tray2) <ESC>&l4H <ESC>&l5H <ESC>&l8H
lower tray middle tray (tray2) n/a High Capacity Input High Capacity Input n/a lower tray (tray3) fold out tray (tray1)
lower tray (
tray3)
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)
16 Chapter 2: Printing Options

Paper Output

Refer to the tables below to convert jobs from the 4Si or 5Si to the D640.
Table 6 D640, 4Si, 5Si Output Paper Tray PCL Map
PCL 4Si D640 5Si
<ESC>&l1G top, face down top, face down top, face down <ESC>&l2G
<ESC>&l3G <ESC>&l4G <ESC>&l5G <ESC>&l6G
back, face up HCO, face down left side, face up
(not with HCO) n/a HCO, face up HCO, face up n/a N/A HCO #1, face down n/a N/A HCO #2, face down n/a N/A HCO #3, face down
Table 7 D640, 4Si, 5Si Output Paper Tray PJL Map
PJL Outbin 4Si D640 5Si
UPPER top, face down top, face down top, face down LOWER
HCO-D n/a HCO, face down n/a HCO-U n/a HCO, face up n/a OPTIONAL
OUTPUTBIN1 OPTIONAL
OUTPUTBIN2 OPTIONAL
OUTPUTBIN3
back, face up N/A left side, face up
(not with HCO)
n/a N/A HCO #1, face down
n/a N/A HCO #2, face down
n/a N/A HCO #3, face down
Chapter 2: Printing Options 17

Internal Fonts

Each of th e D640 inte rnal f onts is alm ost id entica l to t hose used i n the LaserJet 4Si. Due to advances in font technology since the development of the 4Si, some typefaces, treatments, and symbol sets are slightly different. (For example, if you print a very large question mark on each printer, you may notice differences in the shape.)
Each of the D640 printer’s 56 virtual font cartridges is almost identical to the corresponding font cartridge sold for the LaserJet IIISi and 4Si printers.
See Chapter 6 for more information about D640 fonts and virtual font cartridges.
18 Chapter 2: Printing Options
Working with TIFF
3
Images

About TIFF Images

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
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.
TIFF Revision 6.0
published by Aldus Corporation, June
.
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.

Printing TIFF Images

TIFF images can be printed using the following methods:
l setting the printer’s control panel to recognize TIFF files
(Emulation = TIFF or Auto). Auto is the recommended setting if you print files using more than one protocol (such as PCL or PS).
l using commands in a print job
Chapter 3: Working with TIFF Images 19

Using the Control Panel

On the printer’s control panel, you can explicitly select TIFF emulation. For details, see the
User Manual
.
When TIFF emulation is set, the following data items are valid:
A new TIFF file, starting with a 4-byte sequence $49492A00 or
l
$4D4D002A PJL commands
l
Any other type of data is treated as an error. On the printer’s control panel, you can also use the Auto emulation
setting to implicitly recognize TIFF files. If Auto emulation is set, the printer recognizes either of the following
sequences as valid TIFF file headers and enters TIFF emulation mode automatically, if this sequence is at the start of the print job.
$49492A00 or $4D4D002A
l

Using Commands in a Print Job

In addition to control panel settings, TIFF protocol can be selected by the PJL command:
@PJL ENTER LANGUAGE = TIFF
The following is a sample print job for a TIFF file:
<ESC>%-12345X@PJL JOB NAME="Sample.tif"<LF> <ESC>%-12345X@PJL SET CLIP=OFF<LF> <ESC>%-12345X@PJL ENTER LANGUAGE=TIFF<LF> < tif file goes here > <ESC><ESC><Bel> <ESC>%-12345X@PJL<LF> @PJL EOJ NAME="Sample.tif"<LF> <ESC>%-12345X
20 Chapter 3: Working with TIFF Images

General Rules

The following are some general rules to describe how the D640 printer processes TIFF data.
Each TIFF file is a self-contained unit, made up of one or more
l
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.
If a TIFF image contains multiple sub-files, the images contained
l
in the sub-files are placed on separate pages in the order the sub-files appear in the TIFF data stream.
If TIFF is the selected protocol:
l
• 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.
This can be a common situation. TIFF docu­ments are often cre­ated to take up the entire page. To prevent clipping of the image when you print, make sure Clip = Off is set in the Configuration menu. For best resul t s, t ry
This can be a common situation. TIFF docu­ments are often cre­ated to take up the entire page. To prevent clipping of the image when you print, make sure Clip = Off is set in the Configuration menu. For best results, try
Clip = On Clip = Off
Chapter 3: Working with TIFF Images 21
TIFF was designed as a file structure for random-access devices.
l
When used as a printer protocol, HP recommends the following ordering restrictions apply to allow sequential processing of the data. These include:
• Offset values should be greater than the file position of the offset. For example, If an offset resides at file position A within the TIFF data, its value should be greater than A.
• Within a file, all tag fields pertinent to the image should precede the image data.
• The ordering of components within each sub-file should be:
- Image file directory
- Data values identified by directory entry offsets
- Image data.
See page 23 for some example TIFF structures.
22 Chapter 3: Working with TIFF Images
Preferred structure of a TIFF file: In Example 1 and Example 2, all the image file directories
occur early in the file. This is a good structure for TIFF files sent to the D640 printer.
Image file header
Forward pointers are best
Example 1
II or MM
0x2A00 or 0x002A
Pointer to first image
file in directory
Image File Directory 0
Number of en tries
Entry # 1 Entry # 2
Entry #3
Pointer to Image Data
...
Size of Image Data
...
Entry #n
Pointer to next IFD
Image File Directory
Image file header
Forward pointers ar e best
Example 2
II or MM
0x2A00 or 0x002A
Pointer to first image
file in directory
Image File Directory 0
Number of entries
Entry # 1 Entry # 2
Entry #3
Pointer to Image Data
...
Size of Image Data
...
Entry #n
Pointer to next IFD
Image Data
Image File Directory
Image Data
Image Data
Image Data
Alternative structure for a TIFF file:
In the structure below, the image file directories appear
Image File Directory
Image Data
Image File Directory
Image Data
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).
Image file header
Backward pointers might not work. (They are not recommended.)
II or MM
0x2A00 or 0x002A
Pointer to first image
file in directory
Image Data
Image Data
Image Data
Image File Directory 0
Number of entries
Entry # 1 Entry # 2 Entry #3
Pointer to Image Data
...
Size of Image Data
...
Entry #n
Pointer to next IFD
Image File Directory
Image File Directory
Chapter 3: Working with TIFF Images 23

Errors

Errors in the TIFF file header or in directory offset values are considered major errors. The remainder of the TIFF file is ignored and the print job is abandoned.
For other errors, the processing of the current sub-file continues, but no image is printed. Subsequent sub-files are processed normally .
The following are the main categories of errors:
Absence of mandatory TIFF fields (directory entries)
l
Duplicate occurrences of tags in one directory
l
Wrong type for a significant TIFF field
l
Wrong number of values for a significant TIFF field
l
Value out of range for a significant TIFF field
l
Offset values less than the file position of the offset (for a
l
significant TIFF field)
If a TIFF field is not significant for the printer, its Type, Number, and Value are not checked for correctness.
The TIFF specifications (described in fields to appear in ascending tag order. The D640 printer does not enforce this requirement.
Note Y ou can use the error report setting on the D640 printer to print a report
of TIFF errors within a print job. See the information.
TIFF Revision 6.0
User Manual
) require TIFF
for more
24 Chapter 3: Working with TIFF Images
Loading...
+ 92 hidden pages